this repo has no description
1
fork

Configure Feed

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

Add sys_poll()

+35
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 58 58 unistd/getppid.c 59 59 unistd/rename.c 60 60 select/select.c 61 + select/poll.c 61 62 process/vfork.c 62 63 process/fork.c 63 64 process/wait4.c
+22
src/kernel/emulation/linux/select/poll.c
··· 1 + #include "poll.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include <stddef.h> 5 + #include <asm/unistd.h> 6 + 7 + long sys_poll(struct pollfd* fds, unsigned int nfds, int timeout) 8 + { 9 + return sys_poll_nocancel(fds, nfds, timeout); 10 + } 11 + 12 + long sys_poll_nocancel(struct pollfd* fds, unsigned int nfds, int timeout) 13 + { 14 + int ret; 15 + 16 + ret = LINUX_SYSCALL(__NR_poll, fds, nfds, timeout); 17 + if (ret < 0) 18 + ret = errno_linux_to_bsd(ret); 19 + 20 + return ret; 21 + } 22 +
+9
src/kernel/emulation/linux/select/poll.h
··· 1 + #ifndef LINUX_POLL_H 2 + #define LINUX_POLL_H 3 + 4 + struct pollfd; 5 + long sys_poll(struct pollfd* fds, unsigned int nfds, int timeout); 6 + long sys_poll_nocancel(struct pollfd* fds, unsigned int nfds, int timeout); 7 + 8 + #endif 9 +
+3
src/kernel/emulation/linux/syscalls.c
··· 101 101 #include "xattr/setxattr.h" 102 102 #include "xattr/fsetxattr.h" 103 103 #include "select/select.h" 104 + #include "select/poll.h" 104 105 #include "psynch/psynch_mutexwait.h" 105 106 #include "psynch/psynch_mutexdrop.h" 106 107 ··· 203 204 [227] = sys_copyfile, 204 205 [228] = sys_fgetattrlist, 205 206 [229] = sys_fsetattrlist, 207 + [230] = sys_poll, 206 208 [234] = sys_getxattr, 207 209 [235] = sys_fgetxattr, 208 210 [236] = sys_setxattr, ··· 245 247 [412] = sys_writev_nocancel, 246 248 [414] = sys_pread_nocancel, 247 249 [415] = sys_pwrite_nocancel, 250 + [417] = sys_poll_nocancel, 248 251 }; 249 252