TIOCSETD2const
Get or set the line discipline of the terminal
Usage
#include <asm/termbits.h> /* Definition of TIOC*ETD constants */ #include <sys/ioctl.h>
int ioctl(int fd, TIOCGETD, int *argp); int ioctl(int fd, TIOCSETD, const int *argp);
Library
Standard C library (libc, -lc)
Overview
TIOCGETD
|
Get the line discipline of the terminal. |
|---|---|
TIOCSETD
|
Set the line discipline of the terminal. |
Return value
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.
Releases
2 releases since Debian 13 (Trixie); the text changed 1 time.