|
|
1.1 root 1: /* fcntl.h 4.2 83/09/25 */
2:
3: /*
4: * Flag values accessible to open(2) and fcntl(2)
5: * (The first three can only be set by open)
6: */
7: #define O_RDONLY 0
8: #define O_WRONLY 1
9: #define O_RDWR 2
10: #define O_NDELAY FNDELAY /* Non-blocking I/O */
11: #define O_APPEND FAPPEND /* append (writes guaranteed at the end) */
12:
13: #ifndef F_DUPFD
14: /* fcntl(2) requests */
15: #define F_DUPFD 0 /* Duplicate fildes */
16: #define F_GETFD 1 /* Get fildes flags */
17: #define F_SETFD 2 /* Set fildes flags */
18: #define F_GETFL 3 /* Get file flags */
19: #define F_SETFL 4 /* Set file flags */
20: #define F_GETOWN 5 /* Get owner */
21: #define F_SETOWN 6 /* Set owner */
22:
23: /* flags for F_GETFL, F_SETFL-- copied from <sys/file.h> */
24: #define FNDELAY 00004 /* non-blocking reads */
25: #define FAPPEND 00010 /* append on each write */
26: #define FASYNC 00100 /* signal pgrp when data ready */
27: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.