projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
1a2d95350fbe8f2c4bbd94e02a4068467038f364
[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
int r;
10
mode_t mode;
11
va_list ap;
12
va_start(ap, flags);
13
mode = va_arg(ap, mode_t);
14
va_end(ap);
15
CANCELPT_BEGIN;
16
r = syscall(SYS_openat, fd, filename, flags|O_LARGEFILE, mode);
17
CANCELPT_END;
18
return r;
19
}
20
21
LFS64(openat);