mirror of
https://github.com/tailix/libkernaux.git
synced 2025-04-07 17:32:45 -04:00
Main: libc/include/stdlib.h> Implement stubs for "exit" and "abort"
This commit is contained in:
parent
300bd833b0
commit
0446478ce4
2 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,7 @@ EXTRA_DIST = autogen.sh CONTRIBUTING.md sha256sums.txt
|
|||
SUBDIRS = include
|
||||
|
||||
if WITH_LIBC
|
||||
# FIXME: after "make clean" libc is not rebuiling
|
||||
SUBDIRS += libc
|
||||
endif
|
||||
|
||||
|
|
|
@ -6,6 +6,18 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
// TODO: stub
|
||||
void exit(const int status __attribute__((unused)))
|
||||
{
|
||||
for (;;);
|
||||
}
|
||||
|
||||
// TODO: stub
|
||||
void abort()
|
||||
{
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
int atoi(const char *str)
|
||||
{
|
||||
while (isspace(*str)) ++str;
|
||||
|
|
Loading…
Add table
Reference in a new issue