mirror of
https://github.com/fluencelabs/musl
synced 2025-05-12 07:17:32 +00:00
support for these was recently added to sysmacros.h. note that the syscall argument is a long, despite dev_t being 64-bit, so on 32-bit archs the high bits will be lost. it appears the high bits are just glibc silliness and not part of the kernel api, anyway, but it's nice that we have them there for future expansion if needed.
8 lines
161 B
C
8 lines
161 B
C
#include <sys/stat.h>
|
|
#include "syscall.h"
|
|
|
|
int mknodat(int fd, const char *path, mode_t mode, dev_t dev)
|
|
{
|
|
return syscall(SYS_mknodat, fd, path, mode, dev);
|
|
}
|