Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012-2017 Roberto E. Vargas Caballero |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | /* |
| 7 | * Portions copyright (c) 2018, ARM Limited and Contributors. |
| 8 | * All rights reserved. |
| 9 | */ |
| 10 | |
| 11 | #ifndef STDLIB_H |
| 12 | #define STDLIB_H |
| 13 | |
| 14 | #include <stdlib_.h> |
| 15 | |
| 16 | #ifndef NULL |
| 17 | #define NULL ((void *) 0) |
| 18 | #endif |
| 19 | |
| 20 | #define _ATEXIT_MAX 1 |
| 21 | |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame^] | 22 | #define RAND_MAX 0x7ffffffd |
| 23 | |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 24 | extern void abort(void); |
| 25 | extern int atexit(void (*func)(void)); |
| 26 | extern void exit(int status); |
| 27 | |
Ambroise Vincent | 8a573de | 2019-02-11 13:54:30 +0000 | [diff] [blame^] | 28 | int rand(void); |
| 29 | void srand(unsigned int seed); |
| 30 | |
Ambroise Vincent | 4128f9f | 2019-02-11 13:34:41 +0000 | [diff] [blame] | 31 | #endif /* STDLIB_H */ |