Initial commit - work done up through 11 Feb 2020

This commit is contained in:
Gitea 2020-02-11 23:17:24 -06:00
commit 2bc7401904
27 changed files with 478 additions and 0 deletions

15
stdlib/abort.c Executable file
View 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
View file

@ -0,0 +1,2 @@
stdlib/abort.libk.o: stdlib/abort.c include/stdio.h include/sys/cdefs.h \
include/stdlib.h