chiark / gitweb /
[PATCH] Update to version 117 of klibc (from version 108)
[elogind.git] / klibc / klibc / open.c
1 /*
2  * open.c
3  *
4  * The open syscall is weird, because it's defined as a varadic
5  * function, but implementing it as such generally sucks for
6  * performance.  Thus we generate it as a 3-argument function,
7  * but with explicit __cdecl assuming the __cdecl convention is
8  * independent of being varadic.
9  */
10
11 #define __IN_OPEN_C
12 #include <unistd.h>
13 #include <fcntl.h>
14 #include <sys/stat.h>
15 #include <sys/syscall.h>
16
17 __cdecl _syscall3(int,open,const char *,file,int,flags,mode_t,mode)