| 1 |
.\" Copyright 2002, Walter Harms <[email protected]> |
| 2 |
.\" Copyright 2002, Andries E. Brouwer <[email protected]> |
| 3 |
.\" Copyright, the authors of the Linux man-pages project |
| 4 |
.\" |
| 5 |
.\" SPDX-License-Identifier: GPL-1.0-or-later |
| 6 |
.\" |
| 7 |
.TH TIOCSTI 2const 2026-02-08 "Linux man-pages 6.18" |
| 8 |
.SH NAME |
| 9 |
TIOCSTI |
| 10 |
\- |
| 11 |
faking input |
| 12 |
.SH LIBRARY |
| 13 |
Standard C library |
| 14 |
.RI ( libc ,\~ \-lc ) |
| 15 |
.SH SYNOPSIS |
| 16 |
.nf |
| 17 |
.BR "#include <asm/termbits.h>" " /* Definition of " TIOCSTI " */" |
| 18 |
.B #include <sys/ioctl.h> |
| 19 |
.P |
| 20 |
.BI "int ioctl(int " fd ", TIOCSTI, const char *" argp ); |
| 21 |
.fi |
| 22 |
.SH DESCRIPTION |
| 23 |
Insert the given byte in the input queue. |
| 24 |
.P |
| 25 |
Since Linux 6.2, |
| 26 |
.\" linux.git commit 690c8b804ad2eafbd35da5d3c95ad325ca7d5061 |
| 27 |
.\" linux.git commit 83efeeeb3d04b22aaed1df99bc70a48fe9d22c4d |
| 28 |
this operation may require the |
| 29 |
.B CAP_SYS_ADMIN |
| 30 |
capability (if the |
| 31 |
.I dev.tty.legacy_tiocsti |
| 32 |
sysctl variable is set to false). |
| 33 |
.SH RETURN VALUE |
| 34 |
On success, |
| 35 |
0 is returned. |
| 36 |
On error, |
| 37 |
\-1 is returned, and |
| 38 |
.I errno |
| 39 |
is set to indicate the error. |
| 40 |
.SH ERRORS |
| 41 |
.TP |
| 42 |
.B EPERM |
| 43 |
Insufficient permission. |
| 44 |
.SH SEE ALSO |
| 45 |
.BR ioctl (2), |
| 46 |
.BR ioctl_tty (2) |