projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
only use memcpy realloc to shrink if an exact-sized free chunk exists
[oweals/musl.git]
/
src
/
stat
/
mknod.c
1
#include <sys/stat.h>
2
#include <fcntl.h>
3
#include "syscall.h"
4
5
int mknod(const char *path, mode_t mode, dev_t dev)
6
{
7
#ifdef SYS_mknod
8
return syscall(SYS_mknod, path, mode, dev);
9
#else
10
return syscall(SYS_mknodat, AT_FDCWD, path, mode, dev);
11
#endif
12
}