diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-11-16 22:40:57 +0000 | 
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-11-16 22:40:57 +0000 | 
| commit | e9da222f2fdd7824bfbe573d5ea321369988851d (patch) | |
| tree | 9c7836d7e306f497e2b9911dc699992fe59968eb /compiler-rt/SDKs/darwin/usr/include/sys/stat.h | |
| parent | 7ccdb7c0ae1bfa0979b8ad05b346be2ab3411f85 (diff) | |
| download | bcm5719-llvm-e9da222f2fdd7824bfbe573d5ea321369988851d.tar.gz bcm5719-llvm-e9da222f2fdd7824bfbe573d5ea321369988851d.zip | |
build/SDKs: Sketch a minimal stub SDK for Darwin.
 - Motivation is explained in the README, but basically it is convenient to be
   able to build compiler-rt free standing. Since our external dependencies are
   so small, we can achieve this relatively easily by just stubbing out the
   declarations of the external dependencies.
 - This is in no way, shape, or form intended to be complete, it is just the
   minimal stubs necessary to support the stuff we use.
llvm-svn: 144843
Diffstat (limited to 'compiler-rt/SDKs/darwin/usr/include/sys/stat.h')
| -rw-r--r-- | compiler-rt/SDKs/darwin/usr/include/sys/stat.h | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/compiler-rt/SDKs/darwin/usr/include/sys/stat.h b/compiler-rt/SDKs/darwin/usr/include/sys/stat.h new file mode 100644 index 00000000000..6225f908168 --- /dev/null +++ b/compiler-rt/SDKs/darwin/usr/include/sys/stat.h @@ -0,0 +1,25 @@ +/* ===-- stat.h - stub SDK header for compiler-rt ---------------------------=== + * + *                     The LLVM Compiler Infrastructure + * + * This file is dual licensed under the MIT and the University of Illinois Open + * Source Licenses. See LICENSE.TXT for details. + * + * ===-----------------------------------------------------------------------=== + * + * This is a stub SDK header file. This file is not part of the interface of + * this library nor an official version of the appropriate SDK header. It is + * intended only to stub the features of this header required by compiler-rt. + * + * ===-----------------------------------------------------------------------=== + */ + +#ifndef __SYS_STAT_H__ +#define __SYS_STAT_H__ + +typedef unsigned short uint16_t; +typedef uint16_t mode_t; + +int mkdir(const char *, mode_t); + +#endif /* __SYS_STAT_H__ */ | 

