From e4accff6545a956f2c74fdfacc6ae44730f4554c Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Sun, 15 Aug 1999 17:25:56 +0000 Subject: [PATCH] Provide wrappers for sched_{s|g}etscheduler. We need to convert the policy argument. PR: 12006 --- sys/alpha/linux/syscalls.master | 7 ++++--- sys/i386/linux/syscalls.master | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/sys/alpha/linux/syscalls.master b/sys/alpha/linux/syscalls.master index 80776539aa9..d90bee4ffa5 100644 --- a/sys/alpha/linux/syscalls.master +++ b/sys/alpha/linux/syscalls.master @@ -1,4 +1,4 @@ - $Id: syscalls.master,v 1.19 1999/08/14 17:14:13 marcel Exp $ + $Id: syscalls.master,v 1.20 1999/08/14 18:19:00 marcel Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; System call name/number master file (or rather, slave, from LINUX). @@ -224,8 +224,9 @@ 154 NOPROTO POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); } 155 NOPROTO POSIX { int sched_getparam (pid_t pid, struct sched_param *param); } -156 NOPROTO POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } -157 NOPROTO POSIX { int sched_getscheduler (pid_t pid); } +156 STD POSIX { int linux_sched_setscheduler(pid_t pid, int policy, \ + const struct sched_param *param); } +157 STD POSIX { int linux_sched_getscheduler(pid_t pid); } 158 NOPROTO POSIX { int sched_yield (void); } 159 NOPROTO POSIX { int sched_get_priority_max (int policy); } diff --git a/sys/i386/linux/syscalls.master b/sys/i386/linux/syscalls.master index 80776539aa9..d90bee4ffa5 100644 --- a/sys/i386/linux/syscalls.master +++ b/sys/i386/linux/syscalls.master @@ -1,4 +1,4 @@ - $Id: syscalls.master,v 1.19 1999/08/14 17:14:13 marcel Exp $ + $Id: syscalls.master,v 1.20 1999/08/14 18:19:00 marcel Exp $ ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 ; System call name/number master file (or rather, slave, from LINUX). @@ -224,8 +224,9 @@ 154 NOPROTO POSIX { int sched_setparam (pid_t pid, const struct sched_param *param); } 155 NOPROTO POSIX { int sched_getparam (pid_t pid, struct sched_param *param); } -156 NOPROTO POSIX { int sched_setscheduler (pid_t pid, int policy, const struct sched_param *param); } -157 NOPROTO POSIX { int sched_getscheduler (pid_t pid); } +156 STD POSIX { int linux_sched_setscheduler(pid_t pid, int policy, \ + const struct sched_param *param); } +157 STD POSIX { int linux_sched_getscheduler(pid_t pid); } 158 NOPROTO POSIX { int sched_yield (void); } 159 NOPROTO POSIX { int sched_get_priority_max (int policy); }