From 83bac1e6a530f17df4459c612f60adfda5b0817b Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Fri, 1 Jul 2005 17:58:57 +0000 Subject: [PATCH] Callnumbers and prototypes for get/setpriority() and fsync(). --- include/minix/callnr.h | 5 ++++- include/minix/com.h | 3 ++- include/minix/syslib.h | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/minix/callnr.h b/include/minix/callnr.h index 1ed0d6b49..bd75731d7 100755 --- a/include/minix/callnr.h +++ b/include/minix/callnr.h @@ -1,4 +1,4 @@ -#define NCALLS 87 /* number of system calls allowed */ +#define NCALLS 90 /* number of system calls allowed */ #define EXIT 1 #define FORK 2 @@ -75,3 +75,6 @@ #define FREEMEM 84 /* to PM */ #define SELECT 85 /* to FS */ #define FCHDIR 86 /* to FS */ +#define FSYNC 87 /* to FS */ +#define GETPRIORITY 88 /* to PM */ +#define SETPRIORITY 89 /* to PM */ diff --git a/include/minix/com.h b/include/minix/com.h index 51954ada3..c319ad9b6 100755 --- a/include/minix/com.h +++ b/include/minix/com.h @@ -232,7 +232,8 @@ # define SYS_PHYSCOPY 31 /* sys_physcopy(src_addr,dst_addr,count) */ # define SYS_VIRVCOPY 32 /* sys_virvcopy(vec_ptr, vec_size) */ # define SYS_PHYSZERO 33 /* sys_physzero(addr,count) */ -#define NR_SYS_CALLS 34 /* number of system calls */ +# define SYS_SETPRIORITY 34 /* sys_setpriority(which,who,prio) */ +#define NR_SYS_CALLS 35 /* number of system calls */ /* Field names for SYS_SEGCTL. */ #define MEM_CHUNK_BASE m4_l1 /* physical base address */ diff --git a/include/minix/syslib.h b/include/minix/syslib.h index 3266d855d..d34f4f1ff 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -50,6 +50,7 @@ _PROTOTYPE( int sys_getmap, (int proc, struct mem_map *ptr) ); _PROTOTYPE( int sys_times, (int proc_nr, clock_t *ptr) ); _PROTOTYPE( int sys_getuptime, (clock_t *ticks) ); _PROTOTYPE( int sys_trace, (int req, int proc, long addr, long *data_p) ); +_PROTOTYPE( int sys_setpriority, (int proc, int prio) ); /* A system server can directly exit itself with the sys_xit call. The * status argument is here to resemble exit(2), but not passed to kernel.