summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
AgeCommit message (Collapse)Author
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-04-11Fix calculation of the index into TTY_LETTERS. This only workedTodd C. Miller
because sizeof(TTY_LETTERS) == sizeof(TTY_SUFFIX).
2004-02-23Make sure we allow for the time when check_pty has not yet been calledBob Beck
before we get invoked, by making sure getfree thinks an unused and unallocated pt_softc entry is actually free rather than following NULL. ok cedric@
2004-02-10Fix off-by-one wrt TTY_LETTERS and minor being out of bounds. MissedTodd C. Miller
when I fixed the other TTY_LETTERS/TTY_SUFFIX off-by-ones.
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.
2004-02-10Dynamically allocate space for ptys; adapted from NetBSD by beck@Todd C. Miller
2003-10-03Merge tty_attach() in ttymalloc() and tty_detach() in ttyfree(). The need forMiod Vallat
separate tty registering is gone now that sparc has switched to wscons, and this makes the code less error-prone. Also, remove tests for ttymalloc() failure, since it uses M_WAITOK. ok millert@ deraadt@, tested by various people as well besides me...
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-07-22make it compile again damnit; from slash@peereboom.usMichael Shalayeff
2003-07-21remove caddr_t casts. it's just silly to cast something when the functionTed Unangst
takes a void *. convert uiomove to take a void * as well. ok deraadt@
2003-06-14doing kqueue on the master side of the pty returns eventsMichael Shalayeff
for the slave size as described in the pr3209. the regress has been created to verify for the conditions. from wayne@epipe.com.au
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-17ICANON is a t_lflag, not t_iflag; neelnatu@yahoo.comTheo de Raadt
2001-07-19make number of ptys configurable; deraadt@ okMichael Shalayeff
1997-11-30fix TIOCGPGRP in sunos emulationTheo de Raadt
1997-11-13EXTPROC fix from lite2.Todd C. Miller
1997-02-24OpenBSD tagsNiklas Hallqvist
1996-06-10tty_init/attach/detach()Theo de Raadt
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-02-29From NetBSD: Merge with NetBSD 960217Niklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt