⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 open.s

📁 klibc精简化的c程序库
💻 S
字号:
/* * arch/i386/open.S * * Handle the open() system call - oddball due to the varadic * prototype, which forces the use of the cdecl calling convention, * and the need for O_LARGEFILE. */#include <asm/unistd.h>/* <asm/fcntl.h>, despite the name, isn't assembly-safe */#define O_LARGEFILE     0100000	.globl	open	.type	open,@functionopen:#ifdef _REGPARM	movl	4(%esp),%eax	movl	8(%esp),%edx	movl	12(%esp),%ecx	orl	$O_LARGEFILE,%edx#else	orl	$O_LARGEFILE,8(%esp)#endif	pushl	$__NR_open	jmp	__syscall_common	.size	open,.-open

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -