diff options
Diffstat (limited to 'man7/pty.7')
-rw-r--r-- | man7/pty.7 | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/man7/pty.7 b/man7/pty.7 index 7f47ce550..f29495257 100644 --- a/man7/pty.7 +++ b/man7/pty.7 @@ -56,21 +56,21 @@ that option is disabled by default in the mainline kernel.) UNIX 98 pseudoterminals should be used in new applications. .SS UNIX 98 pseudoterminals An unused UNIX 98 pseudoterminal master is opened by calling -.BR posix_openpt (3). +.MR posix_openpt 3 . (This function opens the master clone device, .IR /dev/ptmx ; see -.BR pts (4).) +.MR pts 4 .) After performing any program-specific initializations, changing the ownership and permissions of the slave device using -.BR grantpt (3), +.MR grantpt 3 , and unlocking the slave using -.BR unlockpt (3)), +.MR unlockpt 3 ), the corresponding slave device can be opened by passing the name returned by -.BR ptsname (3) +.MR ptsname 3 in a call to -.BR open (2). +.MR open 2 . .P The Linux kernel imposes a limit on the number of available UNIX 98 pseudoterminals. @@ -85,7 +85,7 @@ and a corresponding file, .IR /proc/sys/kernel/pty/nr , indicates how many pseudoterminals are currently in use. For further details on these two files, see -.BR proc (5). +.MR proc 5 . .SS BSD pseudoterminals BSD-style pseudoterminals are provided as precreated pairs, with names of the form @@ -103,7 +103,7 @@ and .I /dev/ttyp1 constitute a BSD pseudoterminal pair. A process finds an unused pseudoterminal pair by trying to -.BR open (2) +.MR open 2 each pseudoterminal master until an open succeeds. The corresponding pseudoterminal slave (substitute "tty" for "pty" in the name of the master) can then be opened. @@ -123,26 +123,26 @@ BSD slave devices .SH NOTES Pseudoterminals are used by applications such as network login services (\c -.BR ssh (1), -.BR rlogin (1), -.BR telnet (1)), +.MR ssh 1 , +.MR rlogin 1 , +.MR telnet 1 ), terminal emulators such as -.BR xterm (1), -.BR script (1), -.BR screen (1), -.BR tmux (1), -.BR unbuffer (1), +.MR xterm 1 , +.MR script 1 , +.MR screen 1 , +.MR tmux 1 , +.MR unbuffer 1 , and -.BR expect (1). +.MR expect 1 . .P A description of the .B TIOCPKT -.BR ioctl (2), +.MR ioctl 2 , which controls packet mode operation, can be found in -.BR ioctl_tty (2). +.MR ioctl_tty 2 . .P The BSD -.BR ioctl (2) +.MR ioctl 2 operations .BR TIOCSTOP , .BR TIOCSTART , @@ -151,11 +151,11 @@ and .B TIOCREMOTE have not been implemented under Linux. .SH SEE ALSO -.BR ioctl_tty (2), -.BR select (2), -.BR setsid (2), -.BR forkpty (3), -.BR openpty (3), -.BR termios (3), -.BR pts (4), -.BR tty (4) +.MR ioctl_tty 2 , +.MR select 2 , +.MR setsid 2 , +.MR forkpty 3 , +.MR openpty 3 , +.MR termios 3 , +.MR pts 4 , +.MR tty 4 |