ulib Add quit() utility
This commit is contained in:
@ -13,6 +13,7 @@ SRCFILES := $(call GRABSRC, \
|
||||
dlmalloc \
|
||||
sync \
|
||||
args \
|
||||
util \
|
||||
)
|
||||
|
||||
CFLAGS += -isystem $(ROOT)/share -isystem $(ROOT)/ulib -isystem $(ROOT)/std/include \
|
||||
|
6
ulib/util/util.c
Normal file
6
ulib/util/util.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <system/system.h>
|
||||
#include <sysdefs/processctl.h>
|
||||
|
||||
void quit(void) {
|
||||
processctl(-1, PCTL_KILL, 0, 0, 0);
|
||||
}
|
@ -11,4 +11,6 @@
|
||||
*(X); \
|
||||
}) \
|
||||
|
||||
void quit(void);
|
||||
|
||||
#endif // ULIB_UTIL_UTIL_H_
|
||||
|
Reference in New Issue
Block a user