Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reqsyscalls.c « linuxthreads « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 714a8ba3670ed62f7c174a95db080a2fb3809172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* 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)