2 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
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.
15 #pragma ident "%Z%%M% %I% %E% SMI"
18 * General file ioctl definitions.
21 #include <sys/ioccom.h>
23 #define FIOCLEX _IO('f', 1) /* set exclusive use on fd */
24 #define FIONCLEX _IO('f', 2) /* remove exclusive use */
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 */
32 #endif /* !_sys_filio_h */