aboutsummaryrefslogtreecommitdiffstats
path: root/man3/grantpt.3
diff options
Diffstat (limited to 'man3/grantpt.3')
-rw-r--r--man3/grantpt.317
1 files changed, 9 insertions, 8 deletions
diff --git a/man3/grantpt.3 b/man3/grantpt.3
index 34c59a52b6..c09d50685a 100644
--- a/man3/grantpt.3
+++ b/man3/grantpt.3
@@ -4,7 +4,7 @@
.\"
.TH GRANTPT 3 2017-09-15 "GNU" "Linux Programmer's Manual"
.SH NAME
-grantpt \- grant access to the slave pseudoterminal
+grantpt \- grant access to the terminal device corresponding to a pseudoterminal
.SH SYNOPSIS
.B #include <stdlib.h>
.PP
@@ -30,13 +30,14 @@ Glibc 2.23 and earlier:
.SH DESCRIPTION
The
.BR grantpt ()
-function changes the mode and owner of the slave pseudoterminal device
-corresponding to the master pseudoterminal referred to by the file descriptor
+function changes the mode and owner of the terminal device
+corresponding to the pseudoterminal device referred to by the file descriptor
.IR fd .
-The user ID of the slave is set to the real UID of the calling process.
+The user ID of the terminal device
+is set to the real UID of the calling process.
The group ID is set to an unspecified value (e.g.,
.IR tty ).
-The mode of the slave is set to 0620 (crw\-\-w\-\-\-\-).
+The mode of the terminal device is set to 0620 (crw\-\-w\-\-\-\-).
.PP
The behavior of
.BR grantpt ()
@@ -53,7 +54,7 @@ appropriately.
.SH ERRORS
.TP
.B EACCES
-The corresponding slave pseudoterminal could not be accessed.
+The corresponding terminal device could not be accessed.
.TP
.B EBADF
The
@@ -63,7 +64,7 @@ argument is not a valid open file descriptor.
.B EINVAL
The
.I fd
-argument is valid but not associated with a master pseudoterminal.
+argument is valid but not associated with a pseudoterminal device.
.SH VERSIONS
.BR grantpt ()
is provided in glibc since version 2.1.
@@ -90,7 +91,7 @@ Many systems implement this function via a set-user-ID helper binary
called "pt_chown".
On Linux systems with a devpts filesystem (present since Linux 2.2),
the kernel normally sets the correct ownership and permissions
-for the pseudoterminal slave when the master is opened
+for the corresponding terminal device when the pseudoterminal device is opened
.RB ( posix_openpt (3)),
so that nothing must be done by
.BR grantpt ().