TIOCGLCKTRMIOS
(2const)locking the termios structre
#include <asm/termbits.h> /* Definition of TIOC*CLKTRMIOS constants */ #include <sys/ioctl.h> int ioctl(int fd, TIOCGLCKTRMIOS, struct termios *argp); int ioctl(int fd, TIOCSLCKTRMIOS, const struct termios *argp); #include <asm/termbits.h> struct termios;
LIBRARY
DESCRIPTION
The termios structure of a terminal can be locked. The lock is itself a termios structure, with nonzero bits or fields indicating a locked value.
- TIOCGLCKTRMIOS
- Gets the locking status of the termios structure of the terminal.
- TIOCSLCKTRMIOS
- Sets the locking status of the termios structure of the terminal. Only a process with the CAP_SYS_ADMIN capability can do this.
RETURN VALUE
ERRORS
- EPERM
- Insufficient permission.