this repo has no description
1
fork

Configure Feed

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

Add dummy __pthread_canceled() syscall impl

+32
+1
src/kernel/emulation/linux/CMakeLists.txt
··· 217 217 bsdthread/workq_kernreturn.c 218 218 bsdthread/workq_open.c 219 219 bsdthread/pthread_kill.c 220 + bsdthread/__pthread_canceled.c 220 221 psynch/psynch_mutexwait.c 221 222 psynch/psynch_mutexdrop.c 222 223 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 +
+2
src/kernel/emulation/linux/syscalls.c
··· 139 139 #include "bsdthread/bsdthread_create.h" 140 140 #include "bsdthread/bsdthread_terminate.h" 141 141 #include "bsdthread/disable_threadsignal.h" 142 + #include "bsdthread/__pthread_canceled.h" 142 143 #include "hfs/stub.h" 143 144 #include "xattr/getattrlistbulk.h" 144 145 #include "xattr/getattrlistat.h" ··· 316 317 [328] = sys_pthread_kill, 317 318 [329] = sys_sigprocmask, // __pthread_sigmask 318 319 [331] = sys_disable_threadsignal, 320 + [333] = sys_pthread_canceled, 319 321 [334] = sys_semwait_signal, 320 322 [336] = sys_proc_info, 321 323 [338] = sys_stat64,