repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
prefer new socket syscalls, fallback to SYS_socketcall only if needed
[musl.git]
/
src
/
stat
/
mkdir.c
blob
32625b7de32768dc45916b76c0d063af89e1203c
1
#include <sys/stat.h>
2
#include <fcntl.h>
3
#include
"syscall.h"
4
5
int
mkdir
(
const char
*
path
,
mode_t mode
)
6
{
7
#ifdef SYS_mkdir
8
return
syscall
(
SYS_mkdir
,
path
,
mode
);
9
#else
10
return
syscall
(
SYS_mkdirat
,
AT_FDCWD
,
path
,
mode
);
11
#endif
12
}