kernel: some boottime sanitychecks
[minix.git] / include / sys / ioctl.h
blobda3ae0b583cbfa6d12264fb884f4d9b6b44fbed5
1 /* sys/ioctl.h - All ioctl() command codes. Author: Kees J. Bot
2 * 23 Nov 2002
4 * This header file includes all other ioctl command code headers.
5 */
7 #ifndef _S_IOCTL_H
8 #define _S_IOCTL_H
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
30 #endif
32 #endif /* _S_IOCTL_H */