mirror of https://github.com/mkerrisk/man-pages
grantpt.3, ptsname.3, unlockpt.3, pts.4: Global fix: s/pty/pseudoterminal/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
662b2137e8
commit
6d4268dfe0
|
@ -16,7 +16,7 @@ grantpt \- grant access to the slave psuedoterminal
|
|||
The
|
||||
.BR grantpt ()
|
||||
function changes the mode and owner of the slave psuedoterminal device
|
||||
(pty) corresponding to the master pty referred to by
|
||||
corresponding to the master pseudoterminal referred to by
|
||||
.IR fd .
|
||||
The user ID of the slave is set to the real UID of the calling process.
|
||||
The group ID is set to an unspecified value (e.g., \fItty\fP).
|
||||
|
@ -37,7 +37,7 @@ appropriately.
|
|||
.SH ERRORS
|
||||
.TP
|
||||
.B EACCES
|
||||
The corresponding slave pty could not be accessed.
|
||||
The corresponding slave pseudoterminal could not be accessed.
|
||||
.TP
|
||||
.B EBADF
|
||||
The
|
||||
|
@ -47,14 +47,14 @@ argument is not a valid open file descriptor.
|
|||
.B EINVAL
|
||||
The
|
||||
.I fd
|
||||
argument is valid but not associated with a master pty.
|
||||
argument is valid but not associated with a master pseudoterminal.
|
||||
.SH VERSIONS
|
||||
.BR grantpt ()
|
||||
is provided in glibc since version 2.1.
|
||||
.SH "CONFORMING TO"
|
||||
POSIX.1-2001.
|
||||
.SH NOTES
|
||||
This is part of the UNIX 98 pty support, see
|
||||
This is part of the UNIX 98 pseudoterminal support, see
|
||||
.BR pts (4).
|
||||
Many systems implement this function via a set-user-ID helper binary
|
||||
called "pt_chown".
|
||||
|
|
|
@ -23,7 +23,7 @@ ptsname, ptsname_r \- get the name of the slave psuedoterminal
|
|||
.SH DESCRIPTION
|
||||
The
|
||||
.BR ptsname ()
|
||||
function returns the name of the slave psuedoterminal (pty) device
|
||||
function returns the name of the slave psuedoterminal device
|
||||
corresponding to the master referred to by
|
||||
.IR fd .
|
||||
|
||||
|
|
|
@ -16,11 +16,11 @@ unlockpt \- unlock a psuedoterminal master/slave pair
|
|||
The
|
||||
.BR unlockpt ()
|
||||
function unlocks the slave psuedoterminal device
|
||||
(pty) corresponding to the master pty referred to by
|
||||
corresponding to the master psuedoterminal referred to by
|
||||
.IR fd .
|
||||
.PP
|
||||
.BR unlockpt ()
|
||||
should be called before opening the slave side of a pty.
|
||||
should be called before opening the slave side of a psuedoterminal.
|
||||
.SH "RETURN VALUE"
|
||||
When successful,
|
||||
.BR unlockpt ()
|
||||
|
@ -38,7 +38,7 @@ argument is not a file descriptor open for writing.
|
|||
.B EINVAL
|
||||
The
|
||||
.I fd
|
||||
argument is not associated with a master pty.
|
||||
argument is not associated with a master psuedoterminal.
|
||||
.SH VERSIONS
|
||||
.BR unlockpt ()
|
||||
is provided in glibc since version 2.1.
|
||||
|
|
|
@ -53,15 +53,15 @@ and
|
|||
.IR /dev/ptmx ,
|
||||
.I /dev/pts/*
|
||||
.SH NOTES
|
||||
The Linux support for the above (known as UNIX 98 pty naming)
|
||||
The Linux support for the above (known as UNIX 98 psuedoterminal naming)
|
||||
is done using the
|
||||
.I devpts
|
||||
file system, that should be mounted on
|
||||
.IR /dev/pts .
|
||||
.LP
|
||||
Before this UNIX 98 scheme, master ptys were called
|
||||
Before this UNIX 98 scheme, master psuedoterminals were called
|
||||
.IR /dev/ptyp0 ", ..."
|
||||
and slave ptys
|
||||
and slave psuedoterminals
|
||||
.IR /dev/ttyp0 ", ..."
|
||||
and one needed lots of preallocated device nodes.
|
||||
.SH "SEE ALSO"
|
||||
|
|
Loading…
Reference in New Issue