get/setpriority() and fsync() system calls
This commit is contained in:
@@ -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
13
lib/syslib/sys_setpriority.c
Executable 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));
|
||||
}
|
||||
Reference in New Issue
Block a user