1 /* sys/ioctl.h - All ioctl() command codes. Author: Kees J. Bot
4 * This header file includes all other ioctl command code headers.
10 /* A driver that uses ioctls claims a character for its series of commands.
11 * For instance: #define TCGETS _IOR('T', 8, struct termios)
12 * This is a terminal ioctl that uses the character 'T'. The character(s)
13 * used in each header file are shown in the comment following.
16 #include <sys/ioc_tty.h> /* 'T' 't' 'k' */
17 #include <sys/ioc_net.h> /* 'n' */
18 #include <sys/ioc_disk.h> /* 'd' */
19 #include <sys/ioc_file.h> /* 'f' */
20 #include <sys/ioc_memory.h> /* 'm' */
21 #include <sys/ioc_tape.h> /* 'M' */
22 #include <sys/ioc_sound.h> /* 's' */
24 #if defined(_NETBSD_SOURCE)
25 #define TIOCDRAIN TCDRAIN
26 #define TIOCGETA TCGETS
27 #define TIOCSETA TCSETS
28 #define TIOCSETAW TCSETSW
29 #define TIOCSETAF TCSETSF
32 #endif /* _S_IOCTL_H */