jmc
e471403169
add previous to NAME;
7 years ago
nicm
cddf1b0fbc
Add getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs
to separate the open(/dev/ptm) from the ioctl(PTMGET) for privilege
separation or pledge().
Based on a diff from reyk@.
ok deraadt millert
7 years ago
kettenis
ba19740f18
Remove lies about openpty(4) searching for a free pseudo-tty by iterating
through all existing pseudo-tty devices in /dev.
8 years ago
tedu
4ec5da8bd2
use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarze
11 years ago
jmc
14302f5699
convert to new .Dd format;
17 years ago
jmc
87f49b32c3
update FILES;
fixes pr #3998 ; diff from frank denis, though slightly different fix
committed;
help and ok millert@
19 years ago
espie
7c85eadbc1
typo
20 years ago
millert
440a67a653
Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGET
ioctl(2), an unprivileged process may allocate a pty and have its owner
and mode set appropriately. This means that programs such as xterm and
screen no longer need to be setuid. Programs using the openpty()
function require zero changes and will "just work".
Designed by beck@ and deraadt@; changes by beck@ with cleanup (and
a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me.
Tested by many.
20 years ago
millert
679cd5d050
Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.
21 years ago
jmc
134f7e2634
- section reorder
- clean up .Xr's
21 years ago
jmc
ecfaa349ba
- typos
- new sentence, new line
21 years ago
mpech
bc299477ad
o) start new sentence on a new line;
o) always close .Bl tags;
o) fix usage of .Xr;
millert@ ok
22 years ago
millert
21456efabd
Make the list of required #includes match reality.
23 years ago
deraadt
a71d992a6f
say how long the buffer needs to be
24 years ago
millert
c872be65fb
Remove a lie. We don't skip /dev/ttyv* since our pcvt uses /dev/ttyC*.
25 years ago
aaron
312386f8de
when using `-' as a negative sign, escape it with a backslash so troff knows
it's not supposed to be a hyphen/dash
25 years ago
millert
793be43ede
Update from NetBSD.
- correct two .Fn references to forkpty()
- describe retval of forkpty(); it can return PID as well
- add xref to fork(2)
28 years ago
downsj
aefaf0e378
openpty() returns int.
28 years ago
deraadt
a5010d31aa
libutil
28 years ago