ioctl_tty
(2)ioctls for terminals and serial lines
#include <asm/termbits.h> /* Definition of constants */ #include <sys/ioctl.h> int ioctl(int fd, int op, ...);
LIBRARY
DESCRIPTION
The ioctl(2) call for terminals and serial ports accepts many possible operation arguments. Most require a third argument, of varying type, here called argp or arg.
Use of ioctl() makes for nonportable programs. Use the POSIX interface described in termios(3) whenever possible.
Get and set terminal attributes
Locking the termios structure
Get and set window size
Sending a break
Software flow control
Buffer count and flushing
Faking input
Redirecting console output
Controlling terminal
Process group and session ID
Exclusive mode
Line discipline
Pseudoterminal ioctls
Modem control
Marking a line as local
Linux-specific
For the TIOCLINUX(2const) ioctl, see ioctl_console(2).