TIOCGETD, TIOCSETD
get or set the line discipline of the terminal
- Provided by: manpages-dev (Version: 6.9.1-1)
- Source: manpages
- Report a bug
get or set the line discipline of the terminal
Standard C library (libc, -lc)
#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);
On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.