Daniel Dunbar | 86f9994 | 2011-12-08 02:39:23 +0000 | [diff] [blame] | 1 | /* ===-- 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 | |
| 22 | typedef __SIZE_TYPE__ size_t; |
| 23 | |
| 24 | void abort(void) __attribute__((__nothrow__)) __attribute__((__noreturn__)); |
Bill Wendling | edcb288 | 2013-03-20 23:21:08 +0000 | [diff] [blame] | 25 | int atexit(void (*)(void)) __attribute__((__nothrow__)); |
Alexey Samsonov | d389dd3 | 2012-05-29 06:55:01 +0000 | [diff] [blame] | 26 | int atoi(const char *) __attribute__((__nothrow__)); |
Daniel Dunbar | 86f9994 | 2011-12-08 02:39:23 +0000 | [diff] [blame] | 27 | void free(void *) __attribute__((__nothrow__)); |
| 28 | char *getenv(const char *) __attribute__((__nothrow__)) |
| 29 | __attribute__((__nonnull__(1))); |
| 30 | __attribute__((__warn_unused_result__)); |
| 31 | void *malloc(size_t) __attribute__((__nothrow__)) __attribute((__malloc__)) |
| 32 | __attribute__((__warn_unused_result__)); |
Bill Wendling | d06f2fc | 2013-05-23 07:18:59 +0000 | [diff] [blame] | 33 | void *realloc(void *, size_t) __attribute__((__nothrow__)) __attribute((__malloc__)) |
| 34 | __attribute__((__warn_unused_result__)); |
Daniel Dunbar | 86f9994 | 2011-12-08 02:39:23 +0000 | [diff] [blame] | 35 | |
| 36 | #endif /* __STDLIB_H__ */ |