Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ././../../../../../../usr/man/man4m/ptem.4m
Real path: /usr/share/man/man4m/ptem.4m
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Copyright (c) 1999, 2021, Oracle and/or its affiliates. .TH ptem 4M "11 May 2021" "Oracle Solaris 11.4" "Streams Modules" .SH NAME ptem \- STREAMS Pseudo Terminal Emulation module .SH SYNOPSIS .LP .nf \fBint ioctl(\fR\fIfd\fR, \fBI_PUSH\fR,\fB "ptem");\fR .fi .SH DESCRIPTION .sp .LP \fBptem\fR is a STREAMS module that, when used in conjunction with a line discipline and pseudo terminal driver, emulates a terminal. .sp .LP The \fBptem\fR module must be pushed (see \fBI_PUSH\fR, \fBstreamio\fR(4I)) onto the slave side of a pseudo terminal STREAM, before the \fBldterm\fR(4M) module is pushed. This is done automatically by \fBautopush\fR(8) on Oracle Solaris 11.4 and later releases. .sp .LP On the write-side, the \fBTCSETA\fR, \fBTCSETAF\fR, \fBTCSETAW\fR, \fBTCGETA\fR, \fBTCSETS\fR, \fBTCSETSW\fR, \fBTCSETSF\fR, \fBTCGETS\fR, \fBTCSBRK\fR, \fBJWINSIZE\fR, \fBTIOCGWINSZ\fR, and \fBTIOCSWINSZ\fR \fBtermio\fR \fBioctl\fR(2) messages are processed and acknowledged. If remote mode is not in effect, \fBptem\fR handles the \fBTIOCSTI\fR ioctl by copying the argument bytes into an \fBM_DATA\fR message and passing it back up the read side. Regardless of the remote mode setting, \fBptem\fR acknowledges the ioctl and passes a copy of it downstream for possible further processing. A hang up (that is, \fBstty 0\fR) is converted to a zero length \fBM_DATA\fR message and passed downstream. Termio \fBcflags\fR and window row and column information are stored locally one per stream. \fBM_DELAY\fR messages are discarded. All other messages are passed downstream unmodified. .sp .LP On the read-side all messages are passed upstream unmodified with the following exceptions. All \fBM_READ\fR and \fBM_DELAY\fR messages are freed in both directions. A \fBTCSBRK\fR ioctl is converted to an \fBM_BREAK\fR message and passed upstream and an acknowledgment is returned downstream. A \fBTIOCSIGNAL\fR ioctl is converted into an \fBM_PCSIG\fR message, and passed upstream and an acknowledgment is returned downstream. Finally a \fBTIOCREMOTE\fR ioctl is converted into an \fBM_CTL\fR message, acknowledged, and passed upstream; the resulting mode is retained for use in subsequent \fBTIOCSTI\fR parsing. .SH FILES .sp .ne 2 .mk .na \fB<\fBsys/ptem.h\fR> \fR .ad .RS 16n .rt .RE .SH SEE ALSO .sp .LP \fBstty\fR(1), \fBioctl\fR(2), \fBstreamio\fR(4I), \fBtermio\fR(4I), \fBldterm\fR(4M), \fBpckt\fR(4M) .sp .LP \fISTREAMS Programming Guide\fR .SH HISTORY .sp .LP Prior to Oracle Solaris 11.4, programs needed to push the \fBptem\fR module onto the slave side of a pseudo-terminal pair if \fBopen()\fR was called from a program not linked for XPG4 or later standards. If called from a program linked with \fBvalues-xpg4.o\fR or \fBvalues-xpg6.o\fR, then \fBopen()\fR would automatically push \fBptem\fR, \fBldterm\fR, and \fBttcompat\fR modules onto the slave side, and callers pushing them as well would encounter unexpected behavior. .sp .LP Oracle Solaris 11.4 added these modules to \fB/etc/iu.system.ap\fR for \fBpts\fR(4D) so that they are automatically pushed by \fBautopush\fR(8) regardless of how the program is linked, and ensured that only one copy of each is pushed onto each stream.