mirror of https://github.com/tailix/libkernaux.git
Main: libc/include/: Add <setjmp.h> and <stdlib.h>
This commit is contained in:
parent
e0900b0777
commit
8eb2c1987f
|
@ -2,6 +2,7 @@ nobase_include_HEADERS = \
|
||||||
ctype.h \
|
ctype.h \
|
||||||
errno.h \
|
errno.h \
|
||||||
inttypes.h \
|
inttypes.h \
|
||||||
|
setjmp.h \
|
||||||
stdlib.h \
|
stdlib.h \
|
||||||
string.h \
|
string.h \
|
||||||
sys/types.h
|
sys/types.h
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
#ifndef _SETJMP_H
|
||||||
|
#define _SETJMP_H 1
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
|
typedef int jmp_buf;
|
||||||
|
|
||||||
|
int setjmp(jmp_buf env);
|
||||||
|
void longjmp(jmp_buf env, int val);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
|
@ -5,8 +5,19 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#define EXIT_SUCCESS 0
|
||||||
|
#define EXIT_FAILURE 1
|
||||||
|
|
||||||
int atoi(const char *str);
|
int atoi(const char *str);
|
||||||
|
|
||||||
|
void abort();
|
||||||
|
void exit(int status);
|
||||||
|
|
||||||
|
void free(void *ptr);
|
||||||
|
void *realloc(void *ptr, size_t size);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue