xref: /titanic_50/usr/src/lib/libbc/inc/include/sys/filio.h (revision 5d54f3d8999eac1762fe0a8c7177d20f1f201fae)
1*5d54f3d8Smuffin /*
2*5d54f3d8Smuffin  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
3*5d54f3d8Smuffin  * Use is subject to license terms.
4*5d54f3d8Smuffin  */
57c478bd9Sstevel@tonic-gate 
67c478bd9Sstevel@tonic-gate /*
77c478bd9Sstevel@tonic-gate  * Copyright (c) 1982, 1986 Regents of the University of California.
87c478bd9Sstevel@tonic-gate  * All rights reserved.  The Berkeley software License Agreement
97c478bd9Sstevel@tonic-gate  * specifies the terms and conditions for redistribution.
107c478bd9Sstevel@tonic-gate  */
117c478bd9Sstevel@tonic-gate 
12*5d54f3d8Smuffin #ifndef _sys_filio_h
13*5d54f3d8Smuffin #define	_sys_filio_h
14*5d54f3d8Smuffin 
15*5d54f3d8Smuffin #pragma ident	"%Z%%M%	%I%	%E% SMI"
16*5d54f3d8Smuffin 
177c478bd9Sstevel@tonic-gate /*
187c478bd9Sstevel@tonic-gate  * General file ioctl definitions.
197c478bd9Sstevel@tonic-gate  */
207c478bd9Sstevel@tonic-gate 
217c478bd9Sstevel@tonic-gate #include <sys/ioccom.h>
227c478bd9Sstevel@tonic-gate 
23*5d54f3d8Smuffin #define	FIOCLEX		_IO('f', 1)		/* set exclusive use on fd */
24*5d54f3d8Smuffin #define	FIONCLEX	_IO('f', 2)		/* remove exclusive use */
257c478bd9Sstevel@tonic-gate /* another local */
26*5d54f3d8Smuffin #define	FIONREAD	_IOR('f', 127, int)	/* get # bytes to read */
27*5d54f3d8Smuffin #define	FIONBIO		_IOW('f', 126, int)	/* set/clear non-blocking i/o */
28*5d54f3d8Smuffin #define	FIOASYNC	_IOW('f', 125, int)	/* set/clear async i/o */
29*5d54f3d8Smuffin #define	FIOSETOWN	_IOW('f', 124, int)	/* set owner */
30*5d54f3d8Smuffin #define	FIOGETOWN	_IOR('f', 123, int)	/* get owner */
317c478bd9Sstevel@tonic-gate 
327c478bd9Sstevel@tonic-gate #endif /* !_sys_filio_h */
33