2 ** Copyright 2002, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
6 #ifndef __newos__libc_fcntl__hh__
7 #define __newos__libc_fcntl__hh__
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 */