projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make pthread_create return EAGAIN on resource failure, as required by POSIX
[oweals/musl.git]
/
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
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_open(filename, flags, mode);
17
CANCELPT_END;
18
return r;
19
}
20
21
LFS64(open);