blob: b6d3171cff49f12c2544a1806714cbcd2276ecaf [file] [log] [blame]
Daniel Dunbar67588922011-11-16 22:40:57 +00001/* ===-- stdlib.h - stub SDK header for compiler-rt -------------------------===
2 *
3 * The LLVM Compiler Infrastructure
4 *
5 * This file is dual licensed under the MIT and the University of Illinois Open
6 * Source Licenses. See LICENSE.TXT for details.
7 *
8 * ===-----------------------------------------------------------------------===
9 *
10 * This is a stub SDK header file. This file is not part of the interface of
11 * this library nor an official version of the appropriate SDK header. It is
12 * intended only to stub the features of this header required by compiler-rt.
13 *
14 * ===-----------------------------------------------------------------------===
15 */
16
17#ifndef __STDLIB_H__
18#define __STDLIB_H__
19
20#define NULL ((void *)0)
21
22typedef __SIZE_TYPE__ size_t;
23
24void abort(void) __attribute__((__noreturn__));
Bill Wendling84b46d32013-03-20 21:11:47 +000025int atexit(void (*)(void));
Bill Wendling84baff02012-05-28 09:58:27 +000026int atoi(const char *);
Daniel Dunbar67588922011-11-16 22:40:57 +000027void free(void *);
28char *getenv(const char *);
29void *malloc(size_t);
Bill Wendlingd06f2fc2013-05-23 07:18:59 +000030void *realloc(void *, size_t);
Daniel Dunbar67588922011-11-16 22:40:57 +000031
32#endif /* __STDLIB_H__ */