Lines Matching defs:open
74 * This file includes the definitions for open and fcntl
106 * File status flags: these are used by open(2), fcntl(2).
108 * which is a superset of the open/fcntl flags. Open flags and f_flags
112 /* open-only flags */
113 #define O_RDONLY 0x0000 /* open for reading only */
114 #define O_WRONLY 0x0001 /* open for writing only */
115 #define O_RDWR 0x0002 /* open for reading and writing */
119 * Kernel encoding of open mode; separate read and write bits that are
136 #define O_SHLOCK 0x0010 /* open with shared file lock */
137 #define O_EXLOCK 0x0020 /* open with exclusive file lock */
167 #define O_SYMLINK 0x200000 /* allow open of a symlink */
197 /* convert from open() flags to/from fflags; convert O_RD/WR to FREAD/FWRITE */
201 /* bits to save after open */
266 #define F_OPENFROM 56 /* SPI: open a file relative to fd (must be a dir) */
267 #define F_UNLINKFROM 57 /* SPI: open a file relative to fd (must be a dir) */
550 #define O_POPUP 0x80000000 /* force window to popup on open */
558 unsigned int o_flags; /* same as open(2) */
559 mode_t o_mode; /* same as open(2) */
613 int open(const char *, int, ...) __DARWIN_ALIAS_C(open);
636 /* data-protected non-portable open(2) */