1 /*- 2 * Copyright (c) 1982, 1986, 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. 9 * 10 * %sccs.include.redist.c% 11 * 12 * @(#)filio.h 8.1 (Berkeley) 03/28/94 13 */ 14 15 #ifndef _SYS_FILIO_H_ 16 #define _SYS_FILIO_H_ 17 18 #include <sys/ioccom.h> 19 20 /* Generic file-descriptor ioctl's. */ 21 #define FIOCLEX _IO('f', 1) /* set close on exec on fd */ 22 #define FIONCLEX _IO('f', 2) /* remove close on exec */ 23 #define FIONREAD _IOR('f', 127, int) /* get # bytes to read */ 24 #define FIONBIO _IOW('f', 126, int) /* set/clear non-blocking i/o */ 25 #define FIOASYNC _IOW('f', 125, int) /* set/clear async i/o */ 26 #define FIOSETOWN _IOW('f', 124, int) /* set owner */ 27 #define FIOGETOWN _IOR('f', 123, int) /* get owner */ 28 29 #endif /* !_SYS_FILIO_H_ */ 30