Bill Wendling | 353fbd3 | 2013-05-23 07:18:59 +0000 | [diff] [blame] | 1 | /* ===-- fcntl.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 _SYS_FCNTL_H_ |
| 18 | #define _SYS_FCNTL_H_ |
| 19 | |
| 20 | #define O_RDONLY 0x0000 |
| 21 | #define O_WRONLY 0x0001 |
| 22 | #define O_RDWR 0x0002 |
| 23 | #define O_ACCMODE 0x0003 |
| 24 | |
| 25 | #define O_CREAT 0x0200 |
| 26 | |
| 27 | int open(const char *, int, ...); |
| 28 | |
| 29 | #endif /* _SYS_FCNTL_H_ */ |