|
|
1.1 root 1: /* @(#)fcntl.h 1.1 */
2: /* 3.0 SID # 1.2 */
3: /* Flag values accessible to open(2) and fcntl(2) */
4: /* (The first three can only be set by open) */
5: #define O_RDONLY 0
6: #define O_WRONLY 1
7: #define O_RDWR 2
8: #define O_NDELAY 04 /* Non-blocking I/O */
9: #define O_APPEND 010 /* append (writes guaranteed at the end) */
10:
11: /* Flag values accessible only to open(2) */
12: #define O_CREAT 00400 /* open with file create (uses third open arg)*/
13: #define O_TRUNC 01000 /* open with truncation */
14: #define O_EXCL 02000 /* exclusive open */
15:
16: /* fcntl(2) requests */
17: #define F_DUPFD 0 /* Duplicate fildes */
18: #define F_GETFD 1 /* Get fildes flags */
19: #define F_SETFD 2 /* Set fildes flags */
20: #define F_GETFL 3 /* Get file flags */
21: #define F_SETFL 4 /* Set file flags */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.