16758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar/* ===-- stdlib.h - stub SDK header for compiler-rt -------------------------=== 26758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * 36758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * The LLVM Compiler Infrastructure 46758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * 56758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * This file is dual licensed under the MIT and the University of Illinois Open 66758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * Source Licenses. See LICENSE.TXT for details. 76758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * 86758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * ===-----------------------------------------------------------------------=== 96758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * 106758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * This is a stub SDK header file. This file is not part of the interface of 116758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * this library nor an official version of the appropriate SDK header. It is 126758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * intended only to stub the features of this header required by compiler-rt. 136758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * 146758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar * ===-----------------------------------------------------------------------=== 156758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar */ 166758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar 176758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar#ifndef __STDLIB_H__ 186758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar#define __STDLIB_H__ 196758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar 206758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar#define NULL ((void *)0) 216758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar 226758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbartypedef __SIZE_TYPE__ size_t; 236758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar 246758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbarvoid abort(void) __attribute__((__noreturn__)); 2584b46d300c7a4f1c3ea4e452791de7733ce0d143Bill Wendlingint atexit(void (*)(void)); 2684baff0561fe6ca2371e3273f8ed149260e104c1Bill Wendlingint atoi(const char *); 276758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbarvoid free(void *); 286758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbarchar *getenv(const char *); 296758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbarvoid *malloc(size_t); 30d06f2fc03087e7cccda19bd550bf6fb3bc2f5ae7Bill Wendlingvoid *realloc(void *, size_t); 316758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar 326758892590ff3a56d800cb862d3b37f63ff941faDaniel Dunbar#endif /* __STDLIB_H__ */ 33