get/setpriority() and fsync() system calls

This commit is contained in:
Ben Gras
2005-07-01 18:01:33 +00:00
parent 7a31b9aa12
commit 3dcb2886ff
11 changed files with 130 additions and 4 deletions

View File

@@ -26,6 +26,7 @@ OBJECTS = \
$(LIBSYS)(sys_irqctl.o) \
$(LIBSYS)(sys_eniop.o) \
$(LIBSYS)(sys_segctl.o) \
$(LIBSYS)(sys_setpriority.o) \
$(LIBSYS)(sys_umap.o) \
$(LIBSYS)(sys_physcp.o) \
$(LIBSYS)(sys_vircp.o) \
@@ -88,6 +89,9 @@ $(LIBSYS)(sys_irqctl.o): sys_irqctl.c
$(LIBSYS)(sys_eniop.o): sys_eniop.c
$(CC1) sys_eniop.c
$(LIBSYS)(sys_setpriority.o): sys_setpriority.c
$(CC1) sys_setpriority.c
$(LIBSYS)(sys_segctl.o): sys_segctl.c
$(CC1) sys_segctl.c

13
lib/syslib/sys_setpriority.c Executable file
View File

@@ -0,0 +1,13 @@
#include "syslib.h"
/*===========================================================================*
* sys_xit *
*===========================================================================*/
PUBLIC int sys_setpriority(int proc, int prio)
{
message m;
m.m1_i1 = proc;
m.m1_i2 = prio;
return(_taskcall(SYSTASK, SYS_SETPRIORITY, &m));
}