use the -newos toolchain even if -elf is present.
[newos.git] / include / fcntl.h
blob6010887c5245c5d70852ab301806e053ba7a7d2c
1 /*
2 ** Copyright 2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
4 */
6 #ifndef __newos__libc_fcntl__hh__
7 #define __newos__libc_fcntl__hh__
9 #define O_RDONLY 0x0
10 #define O_WRONLY 0x1
11 #define O_RDWR 0x2
12 #define O_RWMASK 0x3
13 #define O_ACCMODE O_RWMASK
15 #define O_CREAT 0x0010 /* create if it doesn't already exist */
16 #define O_EXCL 0x0020 /* error if it already does */
17 #define O_TRUNC 0x0040 /* truncate to zero length */
18 #define O_APPEND 0x0080 /* append to the end of the file */
19 #define O_CLOEXEC 0x0100 /* close-on-exec */
21 #endif