1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: *
6: * @(#)fcntl.h 5.2 (Berkeley) 1/8/86
7: */
8:
9: /*
10: * Flag values accessible to open(2) and fcntl(2)-- copied from
11: * <sys/file.h>. (The first three can only be set by open.)
12: */
13: #define O_RDONLY 000 /* open for reading */
14: #define O_WRONLY 001 /* open for writing */
15: #define O_RDWR 002 /* open for read & write */
16: #define O_NDELAY FNDELAY /* non-blocking open */
17: /* really non-blocking I/O for fcntl */
18: #define O_APPEND FAPPEND /* append on each write */
19: #define O_CREAT FCREAT /* open with file create */
20: #define O_TRUNC FTRUNC /* open with truncation */
21: #define O_EXCL FEXCL /* error on create if file exists */
22:
23: #ifndef F_DUPFD
24: /* fcntl(2) requests */
25: #define F_DUPFD 0 /* Duplicate fildes */
26: #define F_GETFD 1 /* Get fildes flags */
27: #define F_SETFD 2 /* Set fildes flags */
28: #define F_GETFL 3 /* Get file flags */
29: #define F_SETFL 4 /* Set file flags */
30: #define F_GETOWN 5 /* Get owner */
31: #define F_SETOWN 6 /* Set owner */
32:
33: /* flags for F_GETFL, F_SETFL-- copied from <sys/file.h> */
34: #define FNDELAY 00004 /* non-blocking reads */
35: #define FAPPEND 00010 /* append on each write */
36: #define FASYNC 00100 /* signal pgrp when data ready */
37: #define FCREAT 01000 /* create if nonexistant */
38: #define FTRUNC 02000 /* truncate to zero length */
39: #define FEXCL 04000 /* error if already created */
40: #endif
Defined macros
FEXCL
defined in line
39; used 1 times
F_SETFL
defined in line
29; used 41 times
- in /usr/src/bin/wall.c line
127-131(2)
- in /usr/src/etc/cron.c line
68
- in /usr/src/new/X/X/main.c line
303
- in /usr/src/new/X/libsun/initial.c line
262
- in /usr/src/new/X/xcons/xcons.c line
34,
45
- in /usr/src/new/emacs/src/keyboard.c line
895-898(2)
- in /usr/src/new/emacs/src/process.c line
760
- in /usr/src/new/emacs/src/sysdep.c line
300,
318-323(2),
431,
550
- in /usr/src/new/emacs/src/xfns.c line
1002
- in /usr/src/new/jove/jove.c line
140
- in /usr/src/new/kermit/ckutio.c line
680,
709,
749,
776
- in /usr/src/new/news/src/batch.c line
198
- in /usr/src/new/news/src/funcs.c line
373
- in /usr/src/new/news/src/unbatch.c line
198
- in /usr/src/new/news/src/visual.c line
2025,
2116,
2255
- in /usr/src/new/nntp/rrn/term.c line
131
- in /usr/src/new/rn/term.c line
134
- in /usr/src/ucb/dbx/main.c line
442
- in /usr/src/ucb/window/wwrint.c line
33-35(2)
- in /usr/src/ucb/window/wwtty.c line
54
- in /usr/src/usr.bin/uucp/logent.c line
46,
58-60(2),
108,
164,
176-178(2),
208
O_RDWR
defined in line
15; used 19 times
Usage of this include