AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
FCNTL ( 5) FCNTL (5) NAME fcntl - file control options SYNOPSIS #include DESCRIPTION The fcntl(2) function provides for control over open files. This include file describes requests and arguments to fcntl and open(2). I* Flag values accessible to open(2) and fcntl(2) *I I* (The first three can only be set by open) *I #define O_RDONL Y 0 #define O_WRONLY 1 #define O_RDWR 2 #define O_NDELAY 04 #define O_APPEND 010 I* Non-blocking I/O *I I* append (writes guaranteed * I I * at the end) *I #define O_DIRECT 01000001* Direct I/O *I I* Flag values accessible only to open(2) *I #define O_CREAT 00400 I* open with file create * I j * (uses th ird open arg)* I #define O_TRUNC 01000 I* open with truncation *I #define O_EXCL 02000 I* exclusive open *I I* f cntl( 2) requests *I #define F _DUPFD 0 #define F _GETFD 1 #define F _SETFD 2 #define F _GETFL 3 #define F _SETFL 4 #define F _GETLK 5 #define F _SETLK 6 #define F _SETLKW 7 I* Duplicate tildes *I I* Get tildes flags *I I* Set tildes flags *I I* Get file flags *I I* Set file flags *I I* Get file lock *I I* Set file lock *I I* Set file lock and wait *I I* File segment locking set data type - information passed to system by user *I struct flock { }; short short long long int !_type; !_whence; !_start; !_len; I* len = 0 means until end of file *I l_pid; #define F _RDLCK 01 #define F _ WRLCK 02 #define F _UNLCK 03 SEE ALSO fcntl(2), open(2). - 1 -
- Page 1089 and 1090: � LDFCN( 4) LDFCN( 4) NAME ldfcn
- Page 1091: LDFCN( 4) LDFCN{4) REWIND(Idptr) FE
- Page 1095 and 1096: MASTER ( 4) MASTER (4) NAME master
- Page 1097: MNTTAB (4) MNTTAB (4) NAME mnttab -
- Page 1100 and 1101: PASSWD (4) PASSWD ( 4) Haphazard mo
- Page 1102 and 1103: PHONE (4) 02 (short) 03 (short) 04
- Page 1104 and 1105: y . /
- Page 1107: PROFILE ( 4) PROFILE ( 4) NAME prof
- Page 1110 and 1111: RELOC (4) RELOC ( 4) R_ABS The refe
- Page 1112 and 1113: (�
- Page 1114 and 1115: SCCSFILE ( 4) SCCSFILE ( 4) time of
- Page 1116 and 1117: (�
- Page 1119 and 1120: SHLill ( 4) (AT&T UNIX PC only ) SH
- Page 1121 and 1122: SYMS ( 4) SYMS ( 4) NAME syms - com
- Page 1123 and 1124: UA ( 4) (AT&T UNIX PC only ) UA ( 4
- Page 1125 and 1126: UA ( 4) Rename (AT&T UNIX PC only )
- Page 1127 and 1128: UA ( 4) (AT&T UNIX PC only ) UA (4)
- Page 1129 and 1130: UA ( 4) (AT&T UNIX PC only ) UA ( 4
- Page 1131 and 1132: UTMP ( 4) UTMP ( 4) NAME utmp, wtmp
- Page 1133: INTRO ( 5) NAME intro - introductio
- Page 1136 and 1137: ,!)
- Page 1139: .� EQNCHAR (5) EQNCHAR (5) NAME e
- Page 1144 and 1145: I�
- Page 1146 and 1147: MAN (5) .P . HP in .TP in .IP t in
- Page 1148 and 1149: I I I I I I I I I II --" I I I I I
- Page 1150 and 1151: I�
- Page 1152 and 1153: MODEMCAP ( 5) (AT&T UNIX PC Only )
- Page 1155 and 1156: REGEXP (5) REGEXP (5) NAME regexp -
- Page 1157 and 1158: REGEXP (5) REGEXP (5) The first par
- Page 1159 and 1160: STAT ( 5) STAT (S) NAME stat - data
- Page 1161: TERM( 5) TERM (5) NAME term - conve
- Page 1164 and 1165: TERMCAP (5) TERMCAP (5) dl str (P*)
- Page 1166 and 1167: TERMCAP (5) TERMCAP (5) Numeric cap
- Page 1168 and 1169: TERMCAP (5) TERMCAP (Ii) below). Th
- Page 1170 and 1171: TERMCAP (5) TERMCAP (5) If the term
- Page 1172 and 1173: TERMCAP (5) TERMCAP (5) attributes,
- Page 1174 and 1175: :�
- Page 1176: VARARGS ( 5) VARARGS ( 5) int argno
FCNTL ( 5) FCNTL (5)<br />
NAME<br />
fcntl - file control options<br />
SYNOPSIS<br />
#include <br />
DESCRIPTION<br />
The fcntl(2) function provides for control over open files. This<br />
include file describes requests and arguments to fcntl and<br />
open(2).<br />
I* Flag values accessible to open(2) and fcntl(2) *I<br />
I* (The first three can only be set by open) *I<br />
#define O_RDONL Y 0<br />
#define O_WRONLY 1<br />
#define O_RDWR 2<br />
#define O_NDELAY 04<br />
#define O_APPEND 010<br />
I* Non-blocking I/O *I<br />
I* append (writes guaranteed * I<br />
I * at the end) *I<br />
#define O_DIRECT 01000001* Direct I/O *I<br />
I* Flag values accessible only to open(2) *I<br />
#define O_CREAT 00400 I* open with file create * I<br />
j * (uses th ird open arg)* I<br />
#define O_TRUNC 01000 I* open with truncation *I<br />
#define O_EXCL 02000 I* exclusive open *I<br />
I* f cntl( 2) requests *I<br />
#define F _DUPFD 0<br />
#define F _GETFD 1<br />
#define F _SETFD 2<br />
#define F _GETFL 3<br />
#define F _SETFL 4<br />
#define F _GETLK 5<br />
#define F _SETLK 6<br />
#define F _SETLKW 7<br />
I* Duplicate tildes *I<br />
I* Get tildes flags *I<br />
I* Set tildes flags *I<br />
I* Get file flags *I<br />
I* Set file flags *I<br />
I* Get file lock *I<br />
I* Set file lock *I<br />
I* Set file lock and wait *I<br />
I* File segment locking set data type - information passed<br />
to system by user *I<br />
struct flock {<br />
};<br />
short<br />
short<br />
long<br />
long<br />
int<br />
!_type;<br />
!_whence;<br />
!_start;<br />
!_len; I* len = 0 means until end of file *I<br />
l_pid;<br />
#define F _RDLCK 01<br />
#define F _ WRLCK 02<br />
#define F _UNLCK 03<br />
SEE ALSO<br />
fcntl(2), open(2).<br />
- 1 -