this repo has no description
1
fork

Configure Feed

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

Implement sys_getsid()

+26
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 40 40 mman/msync.c 41 41 kqueue/kqueue.c 42 42 kqueue/kevent.c 43 + unistd/getsid.c 43 44 unistd/fsync.c 44 45 unistd/sync.c 45 46 unistd/fdatasync.c
+2
src/kernel/emulation/linux/syscalls.c
··· 7 7 #include "mman/mman.h" 8 8 #include "mman/madvise.h" 9 9 #include "mman/msync.h" 10 + #include "unistd/getsid.h" 10 11 #include "unistd/flock.h" 11 12 #include "unistd/sync.h" 12 13 #include "unistd/fsync.h" ··· 310 311 [303] = sys_psynch_cvbroad, 311 312 [304] = sys_psynch_cvsignal, 312 313 [305] = sys_psynch_cvwait, 314 + [310] = sys_getsid, 313 315 [327] = sys_issetugid, 314 316 [328] = sys_pthread_kill, 315 317 [329] = sys_sigprocmask, // __pthread_sigmask
+16
src/kernel/emulation/linux/unistd/getsid.c
··· 1 + #include "getsid.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <linux-syscalls/linux.h> 5 + 6 + long sys_getsid(int pid) 7 + { 8 + int ret; 9 + 10 + ret = LINUX_SYSCALL(__NR_getsid, pid); 11 + if (ret < 0) 12 + ret = errno_linux_to_bsd(ret); 13 + 14 + return ret; 15 + } 16 +
+7
src/kernel/emulation/linux/unistd/getsid.h
··· 1 + #ifndef LINUX_GETSID_H 2 + #define LINUX_GETSID_H 3 + 4 + long sys_getsid(int pid); 5 + 6 + #endif 7 +