projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add legacy sys/ttydefaults.h header
[oweals/musl.git]
/
src
/
fcntl
/
openat.c
1
#include <fcntl.h>
2
#include <unistd.h>
3
#include <stdarg.h>
4
#include "syscall.h"
5
#include "libc.h"
6
7
int openat(int fd, 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_openat, fd, filename, flags|O_LARGEFILE, mode);
15
}
16
17
LFS64(openat);