this repo has no description
1
fork

Configure Feed

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

Implement sys_renameat()

+30
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 73 73 unistd/getgid.c 74 74 unistd/getppid.c 75 75 unistd/rename.c 76 + unistd/renameat.c 76 77 unistd/getpgrp.c 77 78 unistd/getdtablesize.c 78 79 unistd/setpgid.c
+2
src/kernel/emulation/linux/syscalls.c
··· 47 47 #include "unistd/getgid.h" 48 48 #include "unistd/getppid.h" 49 49 #include "unistd/rename.h" 50 + #include "unistd/renameat.h" 50 51 #include "unistd/getpgrp.h" 51 52 #include "unistd/getdtablesize.h" 52 53 #include "unistd/setpgid.h" ··· 338 339 [461] = sys_getattrlistbulk, 339 340 [463] = sys_openat, 340 341 [464] = sys_openat_nocancel, 342 + [465] = sys_renameat, 341 343 [469] = sys_fstatat, 342 344 [470] = sys_fstatat64, 343 345 [500] = sys_getentropy,
+20
src/kernel/emulation/linux/unistd/renameat.c
··· 1 + #include "renameat.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + #include "../../../../../platform-include/sys/errno.h" 6 + #include "../common_at.h" 7 + 8 + extern char* strcpy(char* dst, const char* src); 9 + 10 + long sys_renameat(int oldfd, const char* oldpath, int newfd, const char* newpath) 11 + { 12 + int ret; 13 + 14 + ret = LINUX_SYSCALL(__NR_renameat, atfd(oldfd), oldpath, atfd(newfd), newpath); 15 + 16 + if (ret < 0) 17 + return errno_linux_to_bsd(ret); 18 + 19 + return 0; 20 + }
+7
src/kernel/emulation/linux/unistd/renameat.h
··· 1 + #ifndef LINUX_RENAMEAT_H 2 + #define LINUX_RENAMEAT_H 3 + 4 + long sys_renameat(int oldfd, const char* oldpath, int newfd, const char* newpath); 5 + 6 + #endif 7 +