4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-03-01 12:35:44 +08:00
Jeff Johnston c62adaccc7 2002-04-25 Jeff Johnston <jjohnstn@redhat.com>
*  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.
2002-04-25 22:12:10 +00:00

17 lines
643 B
C

/* libc/sys/linux/sched.c - Process scheduling functions */
/* Copyright 2002, Red Hat Inc. */
#include <time.h>
#include <sched.h>
#include <machine/syscall.h>
_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);