HP-UX Reference (11i v2 07/12) - 7 Device (Special) Files, 9 General Information, Index (vol 10)

l
ldterm(7) ldterm(7)
TIOCNXCL Turn off ‘exclusive-use mode.
TIOCSETD The ldterm module does nothing but reply to this command. In a BSD system, the com-
mand is used to set the current line discipline type. It does not have much meaning in a
STREAMS environment, because line discipline modules are changed by popping the
current module from the stream and pushing a different one onto the stream.
TIOCGETD In a BSD system, this command is used to get the current line discipline type. The com-
mand does not have much meaning in a STREAMS environment. The
ldterm module
replies with a value of 2 for binary compatibility, since
ldterm supports job control.
TIOCFLUSH This command flush the input or/and output streams similar to that of the
TCFLSH com-
mand. The argument is a pointer to an
int variable. If its value is zero, both the input
and output streams are flushed by sending the appropriate
FLUSHR/FLUSHW M_FLUSH
messages upstream and downstream. Otherwise, the value of the
int is treated as the
logical
OR of the FREAD and FWRITE flags defined by
<sys/file.h> . If the FREAD
flag is set, the input stream is flushed. If the
FWRITE flag is set, the output stream is
flushed. Then,
ldterm acknowledges the message with
M_IOCACK.
TIOCOUTQ This command takes a pointer to an integer and returns the number of characters buffered
up in the
ldterm’s output buffer.
TIOCHPCL This command sets the POSIX termios HUPCL flag to indicate that the terminal line
should be disconnected when the last file descriptor associated with that line is closed. The
ldterm module converts the command into a compatible POSIX termios I/O control
command by sending an M_IOCTL message containing the TCSETS command with
current termios settings downstream.
TIOCSTART The command restarts output. If the terminal was stopped, the ldterm module sends an
M_START message downstream.
TIOCSTOP This command stops output. The ldterm module sends an M_STOP message down-
stream.
TIOCSBRK This command sets the break condition on a line. The ldterm module sends an
M_BREAK message containing a value of 1 as data to the driver, then replies with
M_IOCACK
TIOCCBRK
This command clears the break condition on a line. The ldterm module sends an
M_BREAK message containing a value of 0 (zero) as data to the driver, then replies with
M_IOCACK.
TIOCSETP, TIOCSETN
These commands set the sgttyb information, defined in <sys/ttold.h>
. The argu-
ment is a pointer to an
sgttyb structure. The ldterm module converts the message to
a POSIX termios M_IOCTL message. Then, it forwards the POSIX termios
M_IOCTL
message with a corresponding POSIX
termios command
(i.e.
TCSETSW, TCSETS). The original I/O control command and M_IOCTL message are
stored for use on M_IOCACK.
TIOCGETP This command returns the sgttyb information based on the interpretation of the current
content of the POSIX termios structure maintained in ldterm. The argument is a
pointer to an sgttyb structure via where the information is returned.
TIOCSETC This command sets the tchars information, defined in <sys/strtio.h>. The argu-
ment is a pointer to an tchars structure. The ldterm module converts the message to
a POSIX termios M_IOCTL message. Then, it forwards the POSIX termios
M_IOCTL
message with a corresponding POSIX termios command (i.e. TCSETS). The
original I/O control command and M_IOCTL message are stored for use on M_IOCACK.
TIOCGETC This command returns the tchars information based on the interpretation of the current
content of the POSIX termios structure maintained in ldterm. The argument is a
pointer to an tchars structure via where the information is returned.
TIOCSLTC This command sets the ltchars information defined in <sys/bsdtty.h>. The
ldterm module converts the message to a POSIX termios M_IOCTL message. Then, it
forwards the POSIX termios M_IOCTL message with a corresponding POSIX termios
command (i.e. TCSETS). The original I/O control command and M_IOCTL message are
stored for use on M_IOCACK.
HP-UX 11i Version 2: December 2007 Update 5 Hewlett-Packard Company 79