logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TIOCGETD, TIOCSETD - get or set the line discipline of the terminal

Description

TIOCGETD Get the line discipline of the terminal. TIOCSETD Set the line discipline of the terminal.

Library

Standard C library (libc, -lc)

Name

TIOCGETD, TIOCSETD - get or 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.

See Also

ioctl(2), ioctl_tty(2) Linux man-pages 6.9.1 2024-06-13 TIOCSETD(2const)

Synopsis

#include<asm/termbits.h> /* Definition of TIOC*ETD constants */ #include<sys/ioctl.h>intioctl(intfd,TIOCGETD,int*argp);intioctl(intfd,TIOCSETD,constint*argp);

See Also