xref: /onnv-gate/usr/src/lib/libbc/inc/include/sys/filio.h (revision 722:636b850d4ee9)
1*722Smuffin /*
2*722Smuffin  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*722Smuffin  * Use is subject to license terms.
4*722Smuffin  */
50Sstevel@tonic-gate 
60Sstevel@tonic-gate /*
70Sstevel@tonic-gate  * Copyright (c) 1982, 1986 Regents of the University of California.
80Sstevel@tonic-gate  * All rights reserved.  The Berkeley software License Agreement
90Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
100Sstevel@tonic-gate  */
110Sstevel@tonic-gate 
12*722Smuffin #ifndef _sys_filio_h
13*722Smuffin #define	_sys_filio_h
14*722Smuffin 
15*722Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
16*722Smuffin 
170Sstevel@tonic-gate /*
180Sstevel@tonic-gate  * General file ioctl definitions.
190Sstevel@tonic-gate  */
200Sstevel@tonic-gate 
210Sstevel@tonic-gate #include <sys/ioccom.h>
220Sstevel@tonic-gate 
23*722Smuffin #define	FIOCLEX		_IO('f', 1)		/* set exclusive use on fd */
24*722Smuffin #define	FIONCLEX	_IO('f', 2)		/* remove exclusive use */
250Sstevel@tonic-gate /* another local */
26*722Smuffin #define	FIONREAD	_IOR('f', 127, int)	/* get # bytes to read */
27*722Smuffin #define	FIONBIO		_IOW('f', 126, int)	/* set/clear non-blocking i/o */
28*722Smuffin #define	FIOASYNC	_IOW('f', 125, int)	/* set/clear async i/o */
29*722Smuffin #define	FIOSETOWN	_IOW('f', 124, int)	/* set owner */
30*722Smuffin #define	FIOGETOWN	_IOR('f', 123, int)	/* get owner */
310Sstevel@tonic-gate 
32*722Smuffin #endif /* !_sys_filio_h */
33