overhaul pthread cancellation
[musl] / src / fcntl / open.c
1 #include <fcntl.h>
2 #include <unistd.h>
3 #include <stdarg.h>
4 #include "syscall.h"
5 #include "libc.h"
6
7 int open(const char *filename, int flags, ...)
8 {
9         mode_t mode;
10         va_list ap;
11         va_start(ap, flags);
12         mode = va_arg(ap, mode_t);
13         va_end(ap);
14         return syscall_cp(SYS_open, filename, flags|O_LARGEFILE, mode);
15 }
16
17 LFS64(open);