Rechercher une page de manuel
pty.4freebsd
Langue: en
Version: 361724 (ubuntu - 24/10/10)
Section: 4 (Pilotes et protocoles réseau)
BSD mandoc
NAME
pty - BSD-style compatibility pseudo-terminal driverSYNOPSIS
device ptyDESCRIPTION
The driver provides support for the traditional BSD naming scheme that was used for accessing pseudo-terminals. When the device /dev/ptyXX is being opened, a new terminal shall be created with the pts(4) driver. A device node for this terminal shall be created, which has the name /dev/ttyXXNew code should not try to allocate pseudo-terminals using this interface. It is only provided for compatibility with older C libraries that tried to open such devices when posix_openpt2 was being called.
FILES
The BSD-style compatibility pseudo-terminal driver uses the following device names:- /dev/pty[l-sL-S][0-9a-v]
- Pseudo-terminal master devices.
- /dev/tty[l-sL-S][0-9a-v]
- Pseudo-terminal slave devices.
DIAGNOSTICS
None.SEE ALSO
posix_openpt2, pts(4), tty(4)HISTORY
A pseudo-terminal driver appeared in BSD 4.2BUGS
Unlike previous implementations, the master slave device nodes are destroyed when the PTY becomes unused. A call to stat(2) on a nonexistent master device will already cause a new master device node to be created. The master device can only be destroyed by opening and closing it.The driver cannot be unloaded, because it cannot determine if it is being used.
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre