📄 reqsyscalls.c
字号:
/* EL/IX level 1 and 2 libraries don't have the following syscalls, but we need them due to our threading model based on processes */#include <time.h>#include <sched.h>#include <sys/wait.h>#include <machine/syscall.h>#define __NR___waitpid __NR_waitpid#define __NR___sched_getparam __NR_sched_getparam#define __NR___sched_getscheduler __NR_sched_getscheduler#define __NR___sched_setscheduler __NR_sched_setscheduler_syscall2(int,__sched_getparam,pid_t,pid,struct sched_param *,sched);_syscall1(int,__sched_getscheduler,pid_t,pid);_syscall3(int,__sched_setscheduler,pid_t,pid,int,policy,const struct sched_param *,sched);/* we want __libc____waitpid defined to support __waitpid which is defined in wrapsyscall.c */_syscall3_base(pid_t,__waitpid,pid_t,pid,int *,wait_stat,int,options)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -