|
|
1.1 ! root 1: /* (-lgl ! 2: * COHERENT Version 3.0 ! 3: * Copyright (c) 1982, 1990 by Mark Williams Company. ! 4: * All rights reserved. May not be copied without permission. ! 5: -lgl) */ ! 6: #ifndef FCNTL_H ! 7: #define FCNTL_H ! 8: /* ! 9: * Flag values accessible to open(2) and fcntl(2) ! 10: * (The first three can only be set by open) ! 11: */ ! 12: #define O_RDONLY 0 ! 13: #define O_WRONLY 1 ! 14: #define O_RDWR 2 ! 15: #define O_NDELAY 04 /* Non-blocking I/O */ ! 16: #define O_APPEND 010 /* append (writes guaranteed at the end) */ ! 17: ! 18: /* ! 19: * Flag values accessible only to open(2) ! 20: */ ! 21: #define O_CREAT 00400 /* open with file create (third open arg) */ ! 22: #define O_TRUNC 01000 /* open with truncation */ ! 23: #define O_EXCL 02000 /* exclusive open */ ! 24: ! 25: /* ! 26: * fcntl(2) requests ! 27: */ ! 28: #define F_DUPFD 0 /* duplicate fildes */ ! 29: #define F_GETFD 1 /* get fildes flags */ ! 30: #define F_SETFD 2 /* set fildes flags */ ! 31: #define F_GETFL 3 /* get file flags */ ! 32: #define F_SETFL 4 /* set file flags */ ! 33: ! 34: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.