Something went wrong. Try again.
Cider Isn't Darwin Emulation, Really
Something went wrong. Try again.
1234567891011121314151617181920212223#include "pthread_canceled.h"#include "../base.h"#include "../errno.h"#include <linux-syscalls/linux.h>#include <stddef.h>#include "../mach/lkm.h"#include "../../../../external/lkm/api.h"#include "bsdthread_create.h"#include <sys/errno.h>
long sys_pthread_canceled(int action){ if (action == 0 && !uses_threads()) return -EINVAL;
int ret = lkm_call(NR_pthread_canceled, (void*)(long) action); if (ret < 0) ret = errno_linux_to_bsd(ret);
return ret;}