1 /*
2  * Copyright (c) 2012-2021 Roberto E. Vargas Caballero
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 /*
7  * Portions copyright (c) 2018-2019, Arm Limited and Contributors.
8  * All rights reserved.
9  */
10 
11 #ifndef STDLIB_H
12 #define STDLIB_H
13 
14 #include <stddef.h>
15 
16 #define EXIT_FAILURE 1
17 #define EXIT_SUCCESS 0
18 
19 #define _ATEXIT_MAX 1
20 
21 #define isspace(x)    (((x) == ' ') || ((x) == '\r') || ((x) == '\n') || \
22 			((x) == '\t') || ((x) == '\b'))
23 
24 extern void abort(void);
25 extern int atexit(void (*func)(void));
26 extern void exit(int status);
27 
28 long strtol(const char *nptr, char **endptr, int base);
29 unsigned long strtoul(const char *nptr, char **endptr, int base);
30 long long strtoll(const char *nptr, char **endptr, int base);
31 unsigned long long strtoull(const char *nptr, char **endptr, int base);
32 #endif /* STDLIB_H */
33