this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add sys_fchmodat()

+26
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 46 46 unistd/fchdir.c 47 47 unistd/fchown.c 48 48 unistd/fchmod.c 49 + unistd/fchmodat.c 49 50 unistd/getegid.c 50 51 unistd/setgid.c 51 52 unistd/setuid.c
+2
src/kernel/emulation/linux/syscalls.c
··· 14 14 #include "unistd/fchdir.h" 15 15 #include "unistd/fchown.h" 16 16 #include "unistd/fchmod.h" 17 + #include "unistd/fchmodat.h" 17 18 #include "unistd/setgid.h" 18 19 #include "unistd/setegid.h" 19 20 #include "unistd/seteuid.h" ··· 342 343 [464] = sys_openat_nocancel, 343 344 [465] = sys_renameat, 344 345 [466] = sys_faccessat, 346 + [467] = sys_fchmodat, 345 347 [469] = sys_fstatat, 346 348 [470] = sys_fstatat64, 347 349 [500] = sys_getentropy,
+16
src/kernel/emulation/linux/unistd/fchmodat.c
··· 1 + #include "fchmodat.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + #include "../common_at.h" 6 + 7 + long sys_fchmodat(int fd, const char* path, int mode, int flag) 8 + { 9 + int ret; 10 + 11 + ret = LINUX_SYSCALL(__NR_fchmodat, atfd(fd), path, mode, atflags_bsd_to_linux(flag)); 12 + if (ret < 0) 13 + ret = errno_linux_to_bsd(ret); 14 + 15 + return ret; 16 + }
+7
src/kernel/emulation/linux/unistd/fchmodat.h
··· 1 + #ifndef LINUX_FCHMODAT_H 2 + #define LINUX_FCHMODAT_H 3 + 4 + long sys_fchmodat(int fd, const char* path, int mode, int flag); 5 + 6 + #endif 7 +