Callnumbers and prototypes for get/setpriority() and fsync().

This commit is contained in:
Ben Gras 2005-07-01 17:58:57 +00:00
parent 9cf24c3233
commit 83bac1e6a5
3 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,4 @@
#define NCALLS 87 /* number of system calls allowed */ #define NCALLS 90 /* number of system calls allowed */
#define EXIT 1 #define EXIT 1
#define FORK 2 #define FORK 2
@ -75,3 +75,6 @@
#define FREEMEM 84 /* to PM */ #define FREEMEM 84 /* to PM */
#define SELECT 85 /* to FS */ #define SELECT 85 /* to FS */
#define FCHDIR 86 /* to FS */ #define FCHDIR 86 /* to FS */
#define FSYNC 87 /* to FS */
#define GETPRIORITY 88 /* to PM */
#define SETPRIORITY 89 /* to PM */

View file

@ -232,7 +232,8 @@
# define SYS_PHYSCOPY 31 /* sys_physcopy(src_addr,dst_addr,count) */ # define SYS_PHYSCOPY 31 /* sys_physcopy(src_addr,dst_addr,count) */
# define SYS_VIRVCOPY 32 /* sys_virvcopy(vec_ptr, vec_size) */ # define SYS_VIRVCOPY 32 /* sys_virvcopy(vec_ptr, vec_size) */
# define SYS_PHYSZERO 33 /* sys_physzero(addr,count) */ # 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. */ /* Field names for SYS_SEGCTL. */
#define MEM_CHUNK_BASE m4_l1 /* physical base address */ #define MEM_CHUNK_BASE m4_l1 /* physical base address */

View file

@ -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_times, (int proc_nr, clock_t *ptr) );
_PROTOTYPE( int sys_getuptime, (clock_t *ticks) ); _PROTOTYPE( int sys_getuptime, (clock_t *ticks) );
_PROTOTYPE( int sys_trace, (int req, int proc, long addr, long *data_p) ); _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 /* 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. * status argument is here to resemble exit(2), but not passed to kernel.