Initial commit - work done up through 11 Feb 2020
This commit is contained in:
commit
2bc7401904
27 changed files with 478 additions and 0 deletions
15
stdlib/abort.c
Executable file
15
stdlib/abort.c
Executable file
|
@ -0,0 +1,15 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
__attribute__((__noreturn__))
|
||||
void abort(void) {
|
||||
#if defined(__is_libk)
|
||||
/* TODO: Add proper kernel panic */
|
||||
printf("kernel: panic: abort()\n");
|
||||
#else
|
||||
/* TODO: Abnormally terminate process like by SIGABRT */
|
||||
printf("abort()\n");
|
||||
#endif
|
||||
while(1) {}
|
||||
__builtin_unreachable();
|
||||
}
|
2
stdlib/abort.libk.d
Executable file
2
stdlib/abort.libk.d
Executable file
|
@ -0,0 +1,2 @@
|
|||
stdlib/abort.libk.o: stdlib/abort.c include/stdio.h include/sys/cdefs.h \
|
||||
include/stdlib.h
|
Loading…
Add table
Add a link
Reference in a new issue