From c62adaccc729931a72a2b16aab9a93d1b5e1eb46 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 25 Apr 2002 22:12:10 +0000 Subject: 2002-04-25 Jeff Johnston * libc/sys/linux/Makefile.am: Add support for sched.c. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sched.c: New file. * libc/sys/linux/sys/types.h: Add struct timespec. --- newlib/libc/sys/linux/sched.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 newlib/libc/sys/linux/sched.c (limited to 'newlib/libc/sys/linux/sched.c') diff --git a/newlib/libc/sys/linux/sched.c b/newlib/libc/sys/linux/sched.c new file mode 100644 index 000000000..6a23260ba --- /dev/null +++ b/newlib/libc/sys/linux/sched.c @@ -0,0 +1,16 @@ +/* libc/sys/linux/sched.c - Process scheduling functions */ + +/* Copyright 2002, Red Hat Inc. */ + +#include +#include +#include + +_syscall2(int,sched_getparam,pid_t,pid,struct sched_param *,sched); +_syscall1(int,sched_get_priority_max,int,policy); +_syscall1(int,sched_get_priority_min,int,policy); +_syscall1(int,sched_getscheduler,pid_t,pid); +_syscall2(int,sched_rr_get_interval,pid_t,pid,struct timespec *,interval); +_syscall2(int,sched_setparam,pid_t,pid,const struct sched_param *,sched); +_syscall3(int,sched_setscheduler,pid_t,pid,int,policy,const struct sched_param *,sched); +_syscall0(int,sched_yield); -- cgit v1.2.3