mirror of
https://github.com/tailix/libkernaux.git
synced 2025-11-06 22:55:33 -05:00
Main: libc/include/: Add <setjmp.h> and <stdlib.h>
This commit is contained in:
parent
e0900b0777
commit
8eb2c1987f
3 changed files with 29 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
17
libc/include/setjmp.h
Normal file
17
libc/include/setjmp.h
Normal file
|
|
@ -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…
Add table
Add a link
Reference in a new issue