summaryrefslogtreecommitdiff
path: root/lib/libutil/pty.c
AgeCommit message (Collapse)Author
2013-05-21Fix pty descriptor leak if fork() fails.Matthew Dempsky
ok millert
2012-12-05Remove excessive sys/cdefs.h inclusionTheo de Raadt
ok guenther millert kettenis
2012-07-09ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) inNicholas Marriott
util.h. ok guenther
2012-04-26Drop support from openpty() for 8+ year old kernels that don't supportMatthew Dempsky
/dev/ptm. Users are strongly encouraged to upgrade to a more recent release if they haven't already. ok deraadt
2006-03-30please lint (without making anything else worse)Theo de Raadt
2005-08-02scrape $Id$ tags.Marc Espie
okay deraadt@, millert@, krw@
2004-05-28knf; otto okTheo de Raadt
2004-04-11Crank max ptys to 992. We now have 62 pty/tty pairs for each letterTodd C. Miller
instead of 16. E.g. it is now /dev/{p,t}typ[0-9a-zA-z] instead of just /dev/{p,t}typ[0-9a-f]. This requires that you update MAKEDEV and run: # cd /dev && ./MAKEDEV pty0 && rm -f [pt]ty[rq]*
2004-02-10Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGETTodd C. Miller
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.
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-06-09some -Wall and spaces cleanup, scsi.c left.Federico G. Schwindt
some brave soul should look at it.
2002-05-24strlcpy at most 16 characters, so says man pageTheo de Raadt
2002-05-24KNFTheo de Raadt
1999-05-24permit threaded use; jb@freebsdTheo de Raadt
1996-08-09pty from p to z, P to T. includes vTheo de Raadt
1996-06-29fix multiple invocations; from tlb@viaweb.comTheo de Raadt
1996-06-17util.h: new resting placeJason Downs
opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h"
1996-05-22libutilTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt