HP-UX Reference (11i v1 00/12) - 5 Miscellaneous Topics, 7 Device (Special) Files, 9 General Information, Index (vol 9)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man7/!!!intro.7
________________________________________________________________
___ ___
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 command
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 command
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 command.
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 ack-
nowledges 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 set-
tings 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 downstream.
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 argument 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 con-
tent 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 argument 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 com-
mand and
M_IOCTL message are stored for use on M_IOCACK.
HP-UX Release 11i: December 2000 − 5 − Section 7−−59
___
___