mirror of https://github.com/mkerrisk/man-pages
lseek.2, read.2, setsid.2, vhangup.2, getttyent.3, login.3, openpty.3, console_codes.4, console_ioctl.4, securetty.5, signal.7: Global fix: s/tty/terminal/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
60947e72d6
commit
1285ff3d2d
|
@ -203,7 +203,7 @@ devices must support
|
|||
|
||||
On Linux, using
|
||||
.BR lseek ()
|
||||
on a tty device returns
|
||||
on a terminal device returns
|
||||
\fBESPIPE\fP.
|
||||
.\" Other systems return the number of written characters,
|
||||
.\" using SEEK_SET to set the counter. (Of written characters.)
|
||||
|
|
|
@ -130,7 +130,7 @@ for further information.
|
|||
.B EIO
|
||||
I/O error.
|
||||
This will happen for example when the process is in a
|
||||
background process group, tries to read from its controlling tty,
|
||||
background process group, tries to read from its controlling terminal,
|
||||
and either it is ignoring or blocking
|
||||
.B SIGTTIN
|
||||
or its process group
|
||||
|
|
|
@ -42,7 +42,7 @@ creates a new session if the calling process is not a
|
|||
process group leader.
|
||||
The calling process is the leader of the new
|
||||
session, the process group leader of the new process group, and has no
|
||||
controlling tty.
|
||||
controlling terminal.
|
||||
The process group ID and session ID of the calling
|
||||
process are set to the PID of the calling process.
|
||||
The calling process will be the only process in
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
.\"
|
||||
.TH VHANGUP 2 2007-07-26 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
vhangup \- virtually hangup the current tty
|
||||
vhangup \- virtually hangup the current terminal
|
||||
.SH SYNOPSIS
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
|
@ -45,7 +45,7 @@ _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE\ <\ 500)
|
|||
.BR vhangup ()
|
||||
simulates a hangup on the current terminal.
|
||||
This call arranges for other
|
||||
users to have a \*(lqclean\*(rq tty at login time.
|
||||
users to have a \*(lqclean\*(rq terminal at login time.
|
||||
.SH "RETURN VALUE"
|
||||
On success, zero is returned.
|
||||
On error, \-1 is returned, and
|
||||
|
|
|
@ -108,7 +108,7 @@ The calling process already has the maximum allowed number of open files.
|
|||
The system already has the maximum allowed number of open files.
|
||||
.TP
|
||||
.B ENXIO
|
||||
The calling process has no controlling tty.
|
||||
The calling process has no controlling terminal.
|
||||
.TP
|
||||
.B ERANGE
|
||||
(getlogin_r)
|
||||
|
@ -157,7 +157,7 @@ OpenBSD has
|
|||
and
|
||||
.BR setlogin (),
|
||||
and a username
|
||||
associated with a session, even if it has no controlling tty.
|
||||
associated with a session, even if it has no controlling terminal.
|
||||
.SH BUGS
|
||||
Unfortunately, it is often rather easy to fool
|
||||
.BR getlogin ().
|
||||
|
@ -165,7 +165,7 @@ Sometimes it does not work at all, because some program messed up
|
|||
the utmp file.
|
||||
Often, it gives only the first 8 characters of
|
||||
the login name.
|
||||
The user currently logged in on the controlling tty
|
||||
The user currently logged in on the controlling terminal
|
||||
of our program need not be the user who started it.
|
||||
Avoid
|
||||
.BR getlogin ()
|
||||
|
|
|
@ -30,7 +30,7 @@ closes the file.
|
|||
|
||||
The function
|
||||
.BR getttynam ()
|
||||
searches for a given ttyname in the file.
|
||||
searches for a given terminal name in the file.
|
||||
It returns a pointer to a
|
||||
.I ttyent
|
||||
structure (description below).
|
||||
|
|
|
@ -62,10 +62,10 @@ and fills the field
|
|||
Then it tries to fill the field
|
||||
.IR ut\->ut_line .
|
||||
It takes the first of \fIstdin\fP, \fIstdout\fP, \fIstderr\fP
|
||||
that is a tty, and
|
||||
that is a terminal, and
|
||||
stores the corresponding pathname minus a possible leading \fI/dev/\fP
|
||||
into this field, and then writes the struct to the utmp file.
|
||||
On the other hand, if no tty name was found, this field is filled with "???"
|
||||
On the other hand, if no terminal name was found, this field is filled with "???"
|
||||
and the struct is not written to the utmp file.
|
||||
After this, the struct is written to the wtmp file.
|
||||
.LP
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
.\"
|
||||
.TH OPENPTY 3 2010-06-13 "GNU" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
openpty, login_tty, forkpty \- tty utility functions
|
||||
openpty, login_tty, forkpty \- terminal utility functions
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
.B #include <pty.h>
|
||||
|
@ -74,9 +74,9 @@ is not NULL, the window size of the slave will be set to the values in
|
|||
|
||||
The
|
||||
.BR login_tty ()
|
||||
function prepares for a login on the tty
|
||||
function prepares for a login on the terminal
|
||||
.I fd
|
||||
(which may be a real tty device, or the slave of a pseudoterminal as
|
||||
(which may be a real terminal device, or the slave of a pseudoterminal as
|
||||
returned by
|
||||
.BR openpty ())
|
||||
by creating a new session, making
|
||||
|
@ -130,7 +130,7 @@ returns the process ID of the child process.
|
|||
will fail if:
|
||||
.TP
|
||||
.B ENOENT
|
||||
There are no available ttys.
|
||||
There are no available terminals.
|
||||
.LP
|
||||
.BR login_tty ()
|
||||
will fail if
|
||||
|
|
|
@ -473,7 +473,7 @@ DC1 (0x11, \fB^Q\fP, XON) resumed transmission;
|
|||
DC3 (0x13, \fB^S\fP, XOFF) caused VT100 to ignore (and stop transmitting)
|
||||
all codes except XOFF and XON.
|
||||
.LP
|
||||
VT100-like DC1/DC3 processing may be enabled by the tty driver.
|
||||
VT100-like DC1/DC3 processing may be enabled by the terminal driver.
|
||||
.LP
|
||||
The
|
||||
.BR xterm (1)
|
||||
|
|
|
@ -486,7 +486,7 @@ See
|
|||
.PP
|
||||
The action of the following ioctls depends on the first byte in the struct
|
||||
pointed to by \fIargp\fP, referred to here as the \fIsubcode\fP.
|
||||
These are legal only for the superuser or the owner of the current tty.
|
||||
These are legal only for the superuser or the owner of the current terminal.
|
||||
.IP "\fBTIOCLINUX, subcode=0\fP"
|
||||
Dump the screen.
|
||||
Disappeared in 1.1.92. (With kernel 1.1.92 or later, read from
|
||||
|
|
|
@ -24,13 +24,13 @@
|
|||
.\" Modified Sun Jul 25 11:06:27 1993 by Rik Faith (faith@cs.unc.edu)
|
||||
.TH SECURETTY 5 1992-12-29 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
securetty \- file which lists ttys from which root can log in
|
||||
securetty \- file which lists terminals from which root can log in
|
||||
.SH DESCRIPTION
|
||||
The file
|
||||
.I /etc/securetty
|
||||
is used by (some versions of)
|
||||
.BR login (1).
|
||||
The file contains the device names of tty lines
|
||||
The file contains the device names of terminal lines
|
||||
(one per line, without leading
|
||||
.IR /dev/ )
|
||||
on which root is allowed to login.
|
||||
|
|
|
@ -254,9 +254,9 @@ SIGUSR2 31,12,17 Term User-defined signal 2
|
|||
SIGCHLD 20,17,18 Ign Child stopped or terminated
|
||||
SIGCONT 19,18,25 Cont Continue if stopped
|
||||
SIGSTOP 17,19,23 Stop Stop process
|
||||
SIGTSTP 18,20,24 Stop Stop typed at tty
|
||||
SIGTTIN 21,21,26 Stop tty input for background process
|
||||
SIGTTOU 22,22,27 Stop tty output for background process
|
||||
SIGTSTP 18,20,24 Stop Stop typed at terminal
|
||||
SIGTTIN 21,21,26 Stop Terminal input for background process
|
||||
SIGTTOU 22,22,27 Stop Terminal output for background process
|
||||
.TE
|
||||
|
||||
The signals
|
||||
|
|
Loading…
Reference in New Issue