$manlookup

TIOCSTI

(2const)

faking input

System callsmanpages-dev 6.9.1-1
#include <asm/termbits.h> /* Definition of TIOCSTI */ #include <sys/ioctl.h> int ioctl(int fd, TIOCSTI, const char *argp);

LIBRARY

Standard C library (libc, -lc)

DESCRIPTION

Insert the given byte in the input queue.

Since Linux 6.2, this operation may require the CAP_SYS_ADMIN capability (if the dev.tty.legacy_tiocsti sysctl variable is set to false).

RETURN VALUE

On success, 0 is returned. On error, -1 is returned, and errno is set to indicate the error.

ERRORS

Insufficient permission.

See also