Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add getptmfd(), fdopenpty(), fdforkpty() functions. These allow programs | 2017-04-20 | 1 | -10/+44 | |
| | | | | | | | | | to separate the open(/dev/ptm) from the ioctl(PTMGET) for privilege separation or pledge(). Based on a diff from reyk@. ok deraadt millert | ||||
* | Use O_CLOEXEC when opening fds local to a function | 2016-08-30 | 1 | -2/+2 | |
| | | | | ok jca@ krw@ | ||||
* | Fix pty descriptor leak if fork() fails. | 2013-05-21 | 1 | -1/+3 | |
| | | | | ok millert | ||||
* | Remove excessive sys/cdefs.h inclusion | 2012-12-05 | 1 | -2/+1 | |
| | | | | ok guenther millert kettenis | ||||
* | ANSIfy forkpty, add missing $OpenBSD$ in duid.c, style (no arg names) in | 2012-07-09 | 1 | -6/+2 | |
| | | | | | | util.h. ok guenther | ||||
* | Drop support from openpty() for 8+ year old kernels that don't support | 2012-04-26 | 1 | -59/+5 | |
| | | | | | | | /dev/ptm. Users are strongly encouraged to upgrade to a more recent release if they haven't already. ok deraadt | ||||
* | please lint (without making anything else worse) | 2006-03-30 | 1 | -4/+4 | |
| | |||||
* | scrape $Id$ tags. | 2005-08-02 | 1 | -6/+1 | |
| | | | | okay deraadt@, millert@, krw@ | ||||
* | knf; otto ok | 2004-05-28 | 1 | -13/+11 | |
| | |||||
* | Crank max ptys to 992. We now have 62 pty/tty pairs for each letter | 2004-04-11 | 1 | -5/+6 | |
| | | | | | | 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]* | ||||
* | Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGET | 2004-02-10 | 1 | -2/+37 | |
| | | | | | | | | | | | 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. | ||||
* | Remove the advertising clause in the UCB license which Berkeley | 2003-06-02 | 1 | -7/+3 | |
| | | | | rescinded 22 July 1999. Proofed by myself and Theo. | ||||
* | some -Wall and spaces cleanup, scsi.c left. | 2002-06-09 | 1 | -5/+5 | |
| | | | | some brave soul should look at it. | ||||
* | strlcpy at most 16 characters, so says man page | 2002-05-24 | 1 | -4/+9 | |
| | |||||
* | KNF | 2002-05-24 | 1 | -4/+4 | |
| | |||||
* | permit threaded use; jb@freebsd | 1999-05-24 | 1 | -3/+3 | |
| | |||||
* | pty from p to z, P to T. includes v | 1996-08-09 | 1 | -7/+2 | |
| | |||||
* | fix multiple invocations; from tlb@viaweb.com | 1996-06-29 | 1 | -3/+3 | |
| | |||||
* | util.h: new resting place | 1996-06-17 | 1 | -2/+4 | |
| | | | | | | opendev.h: ok, so I merged it with util.h opendev.h: use util.h everything else: use "util.h" | ||||
* | libutil | 1996-05-22 | 1 | -5/+9 | |
| | |||||
* | initial import of NetBSD tree | 1995-10-18 | 1 | -0/+135 | |