ulib Add quit() utility

This commit is contained in:
2025-09-20 12:20:26 +02:00
parent 97bc0aa05b
commit a8005917eb
3 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,7 @@ SRCFILES := $(call GRABSRC, \
dlmalloc \ dlmalloc \
sync \ sync \
args \ args \
util \
) )
CFLAGS += -isystem $(ROOT)/share -isystem $(ROOT)/ulib -isystem $(ROOT)/std/include \ CFLAGS += -isystem $(ROOT)/share -isystem $(ROOT)/ulib -isystem $(ROOT)/std/include \

6
ulib/util/util.c Normal file
View File

@ -0,0 +1,6 @@
#include <system/system.h>
#include <sysdefs/processctl.h>
void quit(void) {
processctl(-1, PCTL_KILL, 0, 0, 0);
}

View File

@ -11,4 +11,6 @@
*(X); \ *(X); \
}) \ }) \
void quit(void);
#endif // ULIB_UTIL_UTIL_H_ #endif // ULIB_UTIL_UTIL_H_