blob: edd6265f51fe4f4b956b56912dc8b094f5cbbfd2 [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/*
7 * Portions copyright (c) 2018, ARM Limited and Contributors.
8 * 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
Antonio Nino Diaz6ef16122018-08-15 19:51:09 +010014#include <stdlib_.h>
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010015
16#ifndef NULL
17#define NULL ((void *) 0)
18#endif
19
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010020#define _ATEXIT_MAX 1
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010021
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010022extern void abort(void);
23extern int atexit(void (*func)(void));
24extern void exit(int status);
Antonio Nino Diazcf0f8052018-08-17 10:45:47 +010025
Antonio Nino Diaz17605e72018-08-14 13:39:29 +010026#endif /* STDLIB_H */