blob: 69eab9ec18a86ffa0fa8a3461071405580c944b0 [file] [log] [blame]
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6/*
Bence Szépkúti59130302019-12-18 17:18:16 +01007 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
Ambroise Vincent4128f9f2019-02-11 13:34:41 +00008 * All rights reserved.
9 */
10
11#ifndef STDLIB_H
12#define STDLIB_H
13
Bence Szépkúti59130302019-12-18 17:18:16 +010014#include <stddef.h>
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000015
Bence Szépkúti59130302019-12-18 17:18:16 +010016#define EXIT_FAILURE 1
17#define EXIT_SUCCESS 0
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000018
19#define _ATEXIT_MAX 1
20
Ambroise Vincent8a573de2019-02-11 13:54:30 +000021#define RAND_MAX 0x7ffffffd
22
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000023extern void abort(void);
24extern int atexit(void (*func)(void));
25extern void exit(int status);
26
Ambroise Vincent8a573de2019-02-11 13:54:30 +000027int rand(void);
28void srand(unsigned int seed);
29
Ambroise Vincent4128f9f2019-02-11 13:34:41 +000030#endif /* STDLIB_H */