Added new signal types for kernel events:
- SIGKMESS: new kernel message (sent to TTY, IS, or LOG) - SIGKSTOP: MINIX is shut down (sent to TTY-> switch to primary console) - SIGKSIG: kernel signals pending (sent to PM) Renamed SYS_SETPRIORITY to SYS_NICE.
This commit is contained in:
@@ -27,7 +27,7 @@ OBJECTS = \
|
||||
$(LIBSYS)(sys_getinfo.o) \
|
||||
$(LIBSYS)(sys_irqctl.o) \
|
||||
$(LIBSYS)(sys_segctl.o) \
|
||||
$(LIBSYS)(sys_setpriority.o) \
|
||||
$(LIBSYS)(sys_nice.o) \
|
||||
$(LIBSYS)(sys_umap.o) \
|
||||
$(LIBSYS)(sys_physcopy.o) \
|
||||
$(LIBSYS)(sys_vircopy.o) \
|
||||
@@ -89,8 +89,8 @@ $(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_nice.o): sys_nice.c
|
||||
$(CC1) sys_nice.c
|
||||
|
||||
$(LIBSYS)(sys_segctl.o): sys_segctl.c
|
||||
$(CC1) sys_segctl.c
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
/*===========================================================================*
|
||||
* sys_getinfo *
|
||||
*===========================================================================*/
|
||||
PUBLIC int sys_getinfo(request, val_ptr, val_len, key_ptr, key_len)
|
||||
PUBLIC int sys_getinfo(request, ptr, len, ptr2, len2)
|
||||
int request; /* system info requested */
|
||||
void *val_ptr; /* pointer where to store it */
|
||||
int val_len; /* max length of value to get */
|
||||
void *key_ptr; /* pointer to key requested */
|
||||
int key_len; /* length of key */
|
||||
void *ptr; /* pointer where to store it */
|
||||
int len; /* max length of value to get */
|
||||
void *ptr2; /* second pointer */
|
||||
int len2; /* length or process nr */
|
||||
{
|
||||
message m;
|
||||
|
||||
m.I_REQUEST = request;
|
||||
m.I_PROC_NR = SELF; /* always store values at caller */
|
||||
m.I_VAL_PTR = val_ptr;
|
||||
m.I_VAL_LEN = val_len;
|
||||
m.I_KEY_PTR = key_ptr;
|
||||
m.I_KEY_LEN = key_len;
|
||||
m.I_VAL_PTR = ptr;
|
||||
m.I_VAL_LEN = len;
|
||||
m.I_VAL_PTR2 = ptr2;
|
||||
m.I_VAL_LEN2 = len2;
|
||||
|
||||
return(_taskcall(SYSTASK, SYS_GETINFO, &m));
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "syslib.h"
|
||||
|
||||
/*===========================================================================*
|
||||
* sys_xit *
|
||||
* sys_nice *
|
||||
*===========================================================================*/
|
||||
PUBLIC int sys_setpriority(int proc, int prio)
|
||||
PUBLIC int sys_nice(int proc, int prio)
|
||||
{
|
||||
message m;
|
||||
|
||||
m.m1_i1 = proc;
|
||||
m.m1_i2 = prio;
|
||||
return(_taskcall(SYSTASK, SYS_SETPRIORITY, &m));
|
||||
return(_taskcall(SYSTASK, SYS_NICE, &m));
|
||||
}
|
||||
Reference in New Issue
Block a user