.TP
.B TCGETS
Argument:
-.BI "struct termios *" argp
+.BI "struct termios\~*" argp
.IP
Equivalent to
.IR "tcgetattr(fd, argp)" .
.TP
.B TCSETS
Argument:
-.BI "const struct termios *" argp
+.BI "const struct termios\~*" argp
.IP
Equivalent to
.IR "tcsetattr(fd, TCSANOW, argp)" .
.TP
.B TCSETSW
Argument:
-.BI "const struct termios *" argp
+.BI "const struct termios\~*" argp
.IP
Equivalent to
.IR "tcsetattr(fd, TCSADRAIN, argp)" .
.TP
.B TCSETSF
Argument:
-.BI "const struct termios *" argp
+.BI "const struct termios\~*" argp
.IP
Equivalent to
.IR "tcsetattr(fd, TCSAFLUSH, argp)" .
.BR TCSETSW ,
.BR TCSETSF ,
except that they take a
-.I "struct termios2\ *"
+.I "struct termios2\~*"
instead of a
-.IR "struct termios\ *" .
+.IR "struct termios\~*" .
If the structure member
.B c_cflag
contains the flag
.BR TCSETSW ,
.BR TCSETSF ,
except that they take a
-.I "struct termio\ *"
+.I "struct termio\~*"
instead of a
-.IR "struct termios\ *" .
+.IR "struct termios\~*" .
.RS
.TS
lb l.
.TP
.B TIOCGLCKTRMIOS
Argument:
-.BI "struct termios *" argp
+.BI "struct termios\~*" argp
.IP
Gets the locking status of the
.I termios
.TP
.B TIOCSLCKTRMIOS
Argument:
-.BI "const struct termios *" argp
+.BI "const struct termios\~*" argp
.IP
Sets the locking status of the
.I termios
structure of the terminal.
Only a process with the
-.BR CAP_SYS_ADMIN
+.B CAP_SYS_ADMIN
capability can do this.
.SS Get and set window size
Window sizes are kept in the kernel, but not used by the kernel
.TP
.B TIOCGWINSZ
Argument:
-.BI "struct winsize *" argp
+.BI "struct winsize\~*" argp
.IP
Get window size.
.TP
.B TIOCSWINSZ
Argument:
-.BI "const struct winsize *" argp
+.BI "const struct winsize\~*" argp
.IP
Set window size.
.PP
.TP
.BI FIONREAD
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Get the number of bytes in the input buffer.
.TP
.B TIOCINQ
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Same as
.BR FIONREAD .
.TP
.B TIOCOUTQ
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Get the number of bytes in the output buffer.
.TP
.TP
.B TIOCSTI
Argument:
-.BI "const char *" argp
+.BI "const char\~*" argp
.IP
Insert the given byte in the input queue.
.SS Redirecting console output
.TP
.B TIOCGPGRP
Argument:
-.BI "pid_t *" argp
+.BI "pid_t\~*" argp
.IP
When successful, equivalent to
.IR "*argp = tcgetpgrp(fd)" .
.TP
.B TIOCSPGRP
Argument:
-.BI "const pid_t *" argp
+.BI "const pid_t\~*" argp
.IP
Equivalent to
.IR "tcsetpgrp(fd, *argp)" .
.TP
.B TIOCGSID
Argument:
-.BI "pid_t *" argp
+.BI "pid_t\~*" argp
.IP
When successful, equivalent to
.IR "*argp = tcgetsid(fd)" .
.TP
.B TIOCGEXCL
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
(since Linux 3.8)
If the terminal is currently in exclusive mode,
.TP
.B TIOCGETD
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Get the line discipline of the terminal.
.TP
.B TIOCSETD
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
Set the line discipline of the terminal.
.SS Pseudoterminal ioctls
.TP
.B TIOCPKT
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
Enable (when
.RI * argp
.TP
.B TIOCGPKT
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
(since Linux 3.8)
Return the current packet mode setting in the integer pointed to by
.TP
.B TIOCSPTLCK
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Set (if
.IR *argp
.TP
.B TIOCGPTLCK
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
(since Linux 3.8)
Place the current lock state of the pseudoterminal slave device
.TP
.B TIOCMGET
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
Get the status of modem bits.
.TP
.B TIOCMSET
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
Set the status of modem bits.
.TP
.B TIOCMBIC
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
Clear the indicated modem bits.
.TP
.B TIOCMBIS
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
Set the indicated modem bits.
.PP
.TP
.B TIOCGICOUNT
Argument:
-.BI "struct serial_icounter_struct *" argp
+.BI "struct serial_icounter_struct\~*" argp
.IP
Get counts of input serial line interrupts (DCD, RI, DSR, CTS).
The counts are written to the
.TP
.B TIOCGSOFTCAR
Argument:
-.BI "int *" argp
+.BI "int\~*" argp
.IP
("Get software carrier flag")
Get the status of the CLOCAL flag in the c_cflag field of the
.TP
.B TIOCSSOFTCAR
Argument:
-.BI "const int *" argp
+.BI "const int\~*" argp
.IP
("Set software carrier flag")
Set the CLOCAL flag in the
.TP
.B TIOCTTYGSTRUCT
Argument:
-.BI "struct tty_struct *" argp
+.BI "struct tty_struct\~*" argp
.IP
Get the
.I tty_struct