TIOCTTYGSTRUCT2const
Kernel debugging
Usage
#include <sys/ioctl.h>
int ioctl(int fd, TIOCTTYGSTRUCT, struct tty_struct *argp);
#include <linux/tty.h>
struct tty_struct;
Library
Standard C library (libc, -lc)
Overview
Get the tty_struct corresponding to fd.
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.