TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:12287] devpts
devpts has to do with the Unix98 PTY slaves.
According to the Linux kernel documentation: (device.txt)
----------------------
136-143 char Unix98 PTY slaves
0 = /dev/pts/0 First
Unix98 pseudo-TTY
1 = /dev/pts/1 Second
Unix98 pseudo-TTY
These devices nodes are automatically generated with the proper
permissions and modes by mounting the devpts filesystem onto
/dev/pts with the appropriate mount options (distribution dependent).
---------------------
And more:
---------------------
Recent versions of the Linux kernels and GNU libc contain support for
the System V/Unix98 naming scheme for PTYs, which assigns a common
device, /dev/ptmx, to all the masters (opening it will automaticaly give you
a previously unassigned PTY) and a subdirectory, /dev/pts, for the slaves;
the slaves are named with decimal integers (/dev/pts/# in our notation). This
removes the problem of exhausting the namespace and enables the kernel
to automatically create the device nodes for the slave on demand using the
"devpts" filesystem.
---------------------
Nick Reinking