diff options
author | ru <ru@FreeBSD.org> | 2006-09-18 15:24:20 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2006-09-18 15:24:20 +0000 |
commit | 5b7cf06c1d6a501a30cb062cdf3039b21f8540b7 (patch) | |
tree | 7ce11c80607432aa06e11d08d3f4089cbe22b8a5 /share/man/man4/pty.4 | |
parent | 90595a0fc9e928e9e2909fe6f171a1e68396ceec (diff) | |
download | FreeBSD-src-5b7cf06c1d6a501a30cb062cdf3039b21f8540b7.zip FreeBSD-src-5b7cf06c1d6a501a30cb062cdf3039b21f8540b7.tar.gz |
Markup fixes.
Diffstat (limited to 'share/man/man4/pty.4')
-rw-r--r-- | share/man/man4/pty.4 | 47 |
1 files changed, 30 insertions, 17 deletions
diff --git a/share/man/man4/pty.4 b/share/man/man4/pty.4 index ffc7183..0880d0c 100644 --- a/share/man/man4/pty.4 +++ b/share/man/man4/pty.4 @@ -177,39 +177,52 @@ mode, command operations may be detected with a .Xr select 2 for exceptional conditions. .El - -There is currently two pty systems available : the original BSD pty, and a +.Pp +There is currently two +.Nm +systems available: the original +.Bx Nm , +and a SysVR4 pts-like implementation. -You can switch between the two implementations by setting the +It is possible to switch between the two implementations by setting the .Va kern.pts.enable -sysctl. Setting it to 0 will use the BSD pty, to non-zero the pts -implementation. It defaults to 0. -You can set the maximum number of ptys which can be allocated at the same time -with the +sysctl. +Setting it to 0 will use the +.Bx Nm , +to non-zero the pts implementation. +It defaults to 0. +It is possible to set the maximum number of ptys +which can be allocated at the same time with the .Va kern.pts.max -sysctl. It defaults to 1000. +sysctl. +It defaults to 1000. It is not recommanded to use more than 1000 pseudo-terminals, as all software which use .Xr utmp 5 will not be able to handle pseudo-terminals with number superior to 999. - -The pts implementation also supports the +.Pp +The pts implementation also supports the .Dv TIOCGPTN .Xr ioctl 2 -call, which takes a pointer to an unsigned int as a parameter and provides the +call, which takes a pointer to an +.Vt "unsigned int" +as a parameter and provides the number of the pty. - .Sh FILES -.Bl -tag -width /dev/tty[p-sP-S][0-9a-v]x -compact -The files used by the BSD pseudo terminals implementation are : +The files used by the +.Bx +pseudo terminals implementation are: +.Pp +.Bl -tag -width ".Pa /dev/tty[p-sP-S][0-9a-v]" -compact .It Pa /dev/pty[p-sP-S][0-9a-v] master pseudo terminals .It Pa /dev/tty[p-sP-S][0-9a-v] slave pseudo terminals - .El -The files used by the pts implementation are : -.Bl -tag -width /dev/pts/[num]x -compact +.Pp +The files used by the pts implementation are: +.Pp +.Bl -tag -width ".Pa /dev/pts/[num]" -compact .It Pa /dev/ptmx control device, returns a file descriptor to a new master pseudo terminal when opened. |