blob: 24e7bae2f82293d568d1ba723ba90ceaf4d41b05 [file] [log] [blame]
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +01001/*
2 * Copyright (c) 2012-2017 Roberto E. Vargas Caballero
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01006/*
Bence Szépkútifddf5182019-10-25 17:48:20 +02007 * Portions copyright (c) 2018-2019, ARM Limited and Contributors.
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +01008 * All rights reserved.
9 */
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010010
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010011#ifndef STDLIB_H
12#define STDLIB_H
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010013
Bence Szépkúti92410c92019-10-25 18:12:41 +020014#include <stddef.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010015
Bence Szépkútifddf5182019-10-25 17:48:20 +020016#define EXIT_FAILURE 1
17#define EXIT_SUCCESS 0
18
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010019#define _ATEXIT_MAX 1
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010020
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010021extern void abort(void);
22extern int atexit(void (*func)(void));
23extern void exit(int status);
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010024
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010025#endif /* STDLIB_H */