xref: /titanic_52/usr/src/lib/libbc/inc/include/sys/filio.h (revision 1cb6af97c6f66f456d4f726ef056e1ebc0f73305)
1 #pragma ident	"%Z%%M%	%I%	%E% SMI"
2 
3 /*
4  * Copyright (c) 1982, 1986 Regents of the University of California.
5  * All rights reserved.  The Berkeley software License Agreement
6  * specifies the terms and conditions for redistribution.
7  */
8 
9 /*
10  * General file ioctl definitions.
11  */
12 
13 #ifndef _sys_filio_h
14 #define _sys_filio_h
15 
16 #include <sys/ioccom.h>
17 
18 #define	FIOCLEX		_IO(f, 1)		/* set exclusive use on fd */
19 #define	FIONCLEX	_IO(f, 2)		/* remove exclusive use */
20 /* another local */
21 #define	FIONREAD	_IOR(f, 127, int)	/* get # bytes to read */
22 #define	FIONBIO		_IOW(f, 126, int)	/* set/clear non-blocking i/o */
23 #define	FIOASYNC	_IOW(f, 125, int)	/* set/clear async i/o */
24 #define	FIOSETOWN	_IOW(f, 124, int)	/* set owner */
25 #define	FIOGETOWN	_IOR(f, 123, int)	/* get owner */
26 
27 #endif /*!_sys_filio_h*/
28