this repo has no description
1
fork

Configure Feed

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

Merge remote-tracking branch 'origin/master' into newlkm

+40
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 222 222 bsdthread/workq_kernreturn.c 223 223 bsdthread/workq_open.c 224 224 bsdthread/pthread_kill.c 225 + bsdthread/__pthread_canceled.c 225 226 psynch/psynch_mutexwait.c 226 227 psynch/psynch_mutexdrop.c 227 228 psynch/psynch_cvwait.c
+22
src/kernel/emulation/linux/bsdthread/__pthread_canceled.c
··· 1 + #include "__pthread_canceled.h" 2 + #include "../base.h" 3 + #include "../errno.h" 4 + #include "../signal/duct_signals.h" 5 + #include "../../../../../platform-include/sys/errno.h" 6 + #include <stddef.h> 7 + #include "../simple.h" 8 + 9 + long sys_pthread_canceled(int action) 10 + { 11 + switch (action) 12 + { 13 + case 0: // has the thread been canceled with __pthread_markcancel? 14 + // return 0 if yes 15 + return -EAGAIN; 16 + case 1: // enable cancellation 17 + break; 18 + case 2: // disable cancellation 19 + break; 20 + } 21 + } 22 +
+7
src/kernel/emulation/linux/bsdthread/__pthread_canceled.h
··· 1 + #ifndef PTHREAD_CANCELED_H 2 + #define PTHREAD_CANCELED_H 3 + 4 + long sys_pthread_canceled(int action); 5 + 6 + #endif 7 +
+7
src/kernel/emulation/linux/ioctl/termios.c
··· 206 206 *retval = __real_ioctl(fd, LINUX_TCFLSH, queue); 207 207 return IOCTL_HANDLED; 208 208 } 209 + case BSD_TIOCISATTY: 210 + { 211 + struct linux_termios in; 212 + 213 + *retval = __real_ioctl(fd, LINUX_TCGETS, &in) == 0; 214 + return IOCTL_HANDLED; 215 + } 209 216 default: 210 217 __simple_printf("Passing thru unhandled ioctl 0x%x on fd %d\n", cmd, fd); 211 218 __builtin_trap();
+1
src/kernel/emulation/linux/ioctl/termios.h
··· 84 84 #define BSD_TIOCSETD BSD_IOW('t', 27, int) 85 85 #define BSD_TIOCIXON BSD_IO('t', 129) 86 86 #define BSD_TIOCIXOFF BSD_IO('t', 128) 87 + #define BSD_TIOCISATTY 0x2000745E 87 88 88 89 #define BSD_TIOCSBRK BSD_IO('t', 123) 89 90 #define BSD_TIOCCBRK BSD_IO('t', 122)
+2
src/kernel/emulation/linux/syscalls.c
··· 144 144 #include "bsdthread/bsdthread_create.h" 145 145 #include "bsdthread/bsdthread_terminate.h" 146 146 #include "bsdthread/disable_threadsignal.h" 147 + #include "bsdthread/__pthread_canceled.h" 147 148 #include "hfs/stub.h" 148 149 #include "xattr/getattrlistbulk.h" 149 150 #include "xattr/getattrlistat.h" ··· 321 322 [328] = sys_pthread_kill, 322 323 [329] = sys_sigprocmask, // __pthread_sigmask 323 324 [331] = sys_disable_threadsignal, 325 + [333] = sys_pthread_canceled, 324 326 [334] = sys_semwait_signal, 325 327 [336] = sys_proc_info, 326 328 [338] = sys_stat64,