this repo has no description
1
fork

Configure Feed

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

Implement sys_mkdirat()

+28
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 151 151 stat/statfs.c 152 152 stat/fstatfs.c 153 153 stat/mkdir.c 154 + stat/mkdirat.c 154 155 stat/mkfifo.c 155 156 stat/rmdir.c 156 157 stat/common.c
+18
src/kernel/emulation/linux/stat/mkdirat.c
··· 1 + #include "mkdirat.h" 2 + #include "common.h" 3 + #include "../base.h" 4 + #include "../errno.h" 5 + #include <linux-syscalls/linux.h> 6 + #include "../common_at.h" 7 + 8 + long sys_mkdirat(int fd, const char* path, unsigned int mode) 9 + { 10 + int ret; 11 + 12 + ret = LINUX_SYSCALL(__NR_mkdirat, atfd(fd), path, mode); 13 + 14 + if (ret < 0) 15 + return errno_linux_to_bsd(ret); 16 + 17 + return 0; 18 + }
+7
src/kernel/emulation/linux/stat/mkdirat.h
··· 1 + #ifndef LINUX_MKDIRAT_H 2 + #define LINUX_MKDIRAT_H 3 + 4 + long sys_mkdirat(int fd, const char* path, unsigned int mode); 5 + 6 + #endif 7 +
+2
src/kernel/emulation/linux/syscalls.c
··· 114 114 #include "stat/lstat.h" 115 115 #include "stat/statfs.h" 116 116 #include "stat/mkdir.h" 117 + #include "stat/mkdirat.h" 117 118 #include "stat/mkfifo.h" 118 119 #include "stat/rmdir.h" 119 120 #include "stat/getfsstat.h" ··· 356 357 [472] = sys_unlinkat, 357 358 [473] = sys_readlinkat, 358 359 [474] = sys_symlinkat, 360 + [475] = sys_mkdirat, 359 361 [500] = sys_getentropy, 360 362 }; 361 363