Welcome to mirror list, hosted at ThFree Co, Russian Federation.

open.s « go32 « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6dae45e3190dbe8f4a982dc321e34d532ca5b45b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# /* This is file OPEN.S */
# /*
# ** Copyright (C) 1991 DJ Delorie
# **
# ** This file is distributed under the terms listed in the document
# ** "copying.dj".
# ** A copy of "copying.dj" should accompany this file; if not, a copy
# ** should be available from where this file was obtained.  This file
# ** may not be distributed without a verbatim copy of "copying.dj".
# **
# ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
# ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# */

	.data
	.globl	__fmode
__fmode:
	.long	0x4000

	.text
	.globl _open
_open:
	testl	$0xc000,8(%esp)
	jnz	L0
	andl	$0xc000,__fmode
	movl	__fmode,%eax
	orl	%eax,8(%esp)
L0:
	movb	$2,%al
	jmp	turbo_assist