Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/i386/openat.S

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 9 months ago) by niro
File size: 530 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * arch/i386/openat.S
3 *
4 * Handle the openat() system call - oddball due to the varadic
5 * prototype, which forces the use of the cdecl calling convention,
6 * and the need for O_LARGEFILE.
7 */
8
9 #include <asm/unistd.h>
10
11 /* <asm/fcntl.h>, despite the name, isn't assembly-safe */
12 #define O_LARGEFILE 0100000
13
14 #ifdef __NR_openat /* Don't build if kernel headers too old */
15
16 .globl openat
17 .type openat,@function
18
19 openat:
20 orl $O_LARGEFILE,12(%esp)
21 pushl $__NR_openat
22 jmp __syscall_varadic
23
24 .size openat,.-openat
25
26 #endif