this repo has no description
1
fork

Configure Feed

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

Implement sys_fchownat()

+27
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 45 45 unistd/close.c 46 46 unistd/fchdir.c 47 47 unistd/fchown.c 48 + unistd/fchownat.c 48 49 unistd/fchmod.c 49 50 unistd/fchmodat.c 50 51 unistd/getegid.c
+2
src/kernel/emulation/linux/syscalls.c
··· 13 13 #include "unistd/close.h" 14 14 #include "unistd/fchdir.h" 15 15 #include "unistd/fchown.h" 16 + #include "unistd/fchownat.h" 16 17 #include "unistd/fchmod.h" 17 18 #include "unistd/fchmodat.h" 18 19 #include "unistd/setgid.h" ··· 344 345 [465] = sys_renameat, 345 346 [466] = sys_faccessat, 346 347 [467] = sys_fchmodat, 348 + [468] = sys_fchownat 347 349 [469] = sys_fstatat, 348 350 [470] = sys_fstatat64, 349 351 [500] = sys_getentropy,
+17
src/kernel/emulation/linux/unistd/fchownat.c
··· 1 + #include "chown.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + #include "../common_at.h" 6 + 7 + long sys_fchownat(int fd, const char* path, int uid, int gid, int flag) 8 + { 9 + int ret; 10 + 11 + ret = LINUX_SYSCALL(__NR_fchownat, atfd(fd), path, uid, gid, atflags_bsd_to_linux(flag)); 12 + 13 + if (ret < 0) 14 + ret = errno_linux_to_bsd(ret); 15 + 16 + return ret; 17 + }
+7
src/kernel/emulation/linux/unistd/fchownat.h
··· 1 + #ifndef LINUX_FCHOWNAT_H 2 + #define LINUX_FCHOWNAT_H 3 + 4 + long sys_fchownat(int fd, const char* path, int uid, int gid, int flag); 5 + 6 + #endif 7 +