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