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

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).

Errors

EPERM Insufficient permission.

Library

Standard C library (libc, -lc)

Name

TIOCSTI - faking input

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 TIOCSTI(2const)

Synopsis

#include<asm/termbits.h> /* Definition of TIOCSTI */ #include<sys/ioctl.h>intioctl(intfd,TIOCSTI,constchar*argp);

See Also