2005-04-21 16:53:53 +02:00
|
|
|
/* sys/ioctl.h - All ioctl() command codes. Author: Kees J. Bot
|
|
|
|
* 23 Nov 2002
|
|
|
|
*
|
|
|
|
* This header file includes all other ioctl command code headers.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _S_IOCTL_H
|
|
|
|
#define _S_IOCTL_H
|
|
|
|
|
|
|
|
/* A driver that uses ioctls claims a character for its series of commands.
|
|
|
|
* For instance: #define TCGETS _IOR('T', 8, struct termios)
|
|
|
|
* This is a terminal ioctl that uses the character 'T'. The character(s)
|
|
|
|
* used in each header file are shown in the comment following.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/ioc_tty.h> /* 'T' 't' 'k' */
|
2012-02-11 19:31:25 +01:00
|
|
|
#include <sys/ioc_net.h> /* 'n' */
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <sys/ioc_disk.h> /* 'd' */
|
2005-07-11 15:00:43 +02:00
|
|
|
#include <sys/ioc_file.h> /* 'f' */
|
2005-04-21 16:53:53 +02:00
|
|
|
#include <sys/ioc_memory.h> /* 'm' */
|
|
|
|
#include <sys/ioc_tape.h> /* 'M' */
|
|
|
|
#include <sys/ioc_sound.h> /* 's' */
|
|
|
|
|
2012-02-11 19:31:25 +01:00
|
|
|
#if defined(_NETBSD_SOURCE)
|
|
|
|
#define TIOCDRAIN TCDRAIN
|
|
|
|
#define TIOCGETA TCGETS
|
|
|
|
#define TIOCSETA TCSETS
|
|
|
|
#define TIOCSETAW TCSETSW
|
|
|
|
#define TIOCSETAF TCSETSF
|
|
|
|
#endif
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
#endif /* _S_IOCTL_H */
|