this repo has no description
1
fork

Configure Feed

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

Add sys_mkfifo()

+32
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 89 89 stat/statfs.c 90 90 stat/fstatfs.c 91 91 stat/mkdir.c 92 + stat/mkfifo.c 92 93 stat/rmdir.c 93 94 stat/common.c 94 95 synch/semwait_signal.c
+22
src/kernel/emulation/linux/stat/mkfifo.c
··· 1 + #include "mkfifo.h" 2 + #include "common.h" 3 + #include "../base.h" 4 + #include "../errno.h" 5 + #include <asm/unistd.h> 6 + 7 + #define LINUX_S_IFIFO 0010000 8 + 9 + long sys_mkfifo(const char* path, unsigned int mode) 10 + { 11 + int ret; 12 + 13 + // TODO: handle case conversion 14 + 15 + ret = LINUX_SYSCALL(__NR_mknod, path, mode | LINUX_S_IFIFO, 0); 16 + 17 + if (ret < 0) 18 + return errno_linux_to_bsd(ret); 19 + 20 + return 0; 21 + } 22 +
+7
src/kernel/emulation/linux/stat/mkfifo.h
··· 1 + #ifndef LINUX_MKFIFO_H 2 + #define LINUX_MKFIFO_H 3 + 4 + long sys_mkfifo(const char* path, unsigned int mode); 5 + 6 + #endif 7 +
+2
src/kernel/emulation/linux/syscalls.c
··· 72 72 #include "stat/lstat.h" 73 73 #include "stat/statfs.h" 74 74 #include "stat/mkdir.h" 75 + #include "stat/mkfifo.h" 75 76 #include "stat/rmdir.h" 76 77 #include "stat/getfsstat.h" 77 78 #include "stat/fstatfs.h" ··· 138 139 [121] = sys_writev, 139 140 [123] = sys_fchown, 140 141 [124] = sys_fchmod, 142 + [132] = sys_mkfifo, 141 143 [134] = sys_shutdown, 142 144 [136] = sys_mkdir, 143 145 [137] = sys_rmdir,