move msghdr and cmsghdr out of bits/socket.h
[musl.git] / src / stat / chmod.c
blobd4f53c564e14701ea360a7159037c39838266d9f
1 #include <sys/stat.h>
2 #include <fcntl.h>
3 #include "syscall.h"
5 int chmod(const char *path, mode_t mode)
7 #ifdef SYS_chmod
8 return syscall(SYS_chmod, path, mode);
9 #else
10 return syscall(SYS_fchmodat, AT_FDCWD, path, mode);
11 #endif