this repo has no description
1
fork

Configure Feed

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

Implement sys_faccessat()

+27
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 59 59 unistd/ftruncate.c 60 60 unistd/truncate.c 61 61 unistd/access.c 62 + unistd/faccessat.c 62 63 unistd/readlink.c 63 64 unistd/symlink.c 64 65 unistd/link.c
+2
src/kernel/emulation/linux/syscalls.c
··· 25 25 #include "unistd/pwrite.h" 26 26 #include "unistd/getpid.h" 27 27 #include "unistd/access.h" 28 + #include "unistd/faccessat.h" 28 29 #include "unistd/lseek.h" 29 30 #include "unistd/truncate.h" 30 31 #include "unistd/ftruncate.h" ··· 340 341 [463] = sys_openat, 341 342 [464] = sys_openat_nocancel, 342 343 [465] = sys_renameat, 344 + [466] = sys_faccessat, 343 345 [469] = sys_fstatat, 344 346 [470] = sys_fstatat64, 345 347 [500] = sys_getentropy,
+17
src/kernel/emulation/linux/unistd/faccessat.c
··· 1 + #include "faccessat.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + #include "../common_at.h" 6 + 7 + long sys_faccessat(int fd, const char* filename, int amode, int flag) 8 + { 9 + int ret; 10 + 11 + ret = LINUX_SYSCALL(__NR_faccessat, atfd(fd), filename, amode, 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/faccessat.h
··· 1 + #ifndef LINUX_FACCESSAT_H 2 + #define LINUX_FACCESSAT_H 3 + 4 + long sys_faccessat(int fd, const char* filename, int amode, int flag); 5 + 6 + #endif 7 +