summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_tty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Pass fflag to VOP_POLL so vfs fifo functions can get at the filemillert2015-05-011-2/+2
| | | | | | flags to check FREAD/FWRITE if needed. This will be used by fifo_poll to avoid checking the write end of the fifo when the fd is read-only. OK guenther@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* primary change: move uvm_vnode out of vnode, keeping only a pointer.tedu2014-12-161-1/+2
| | | | | | objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and help from deraadt
* Introduce a kqfilter wrapper for the controlling tty device entrymikeb2011-10-061-1/+12
| | | | | | | | | | | | | | which allows a correct registration of kqueue(2) notifications on the /dev/tty instead of calling a function via a null pointer in the ttkqfilter leading to a local DoS. Surprisingly the same code is present in NetBSD since the kqueue merge, but didn't make it to the OpenBSD for 10 years. Thanks to Anton Yabchinskiy <arn-at-bestmx-dot-ru> for a GHCi crash report and his willingness to test multiple diffs for over a week. With input from nicm, ok miod, derraadt.
* Correct the links between threads, processes, pgrps, and sessions,guenther2010-07-261-4/+6
| | | | | | | | | so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Based on earlier work by blambert and myself, but mostly written at c2k10. Tested by many: deraadt, sthen, krw, ray, and in snapshots
* Since p_flag is often manipulated in interrupts and without biglockart2007-03-151-2/+2
| | | | | | | | | | | | it's a good idea to use atomic.h operations on it. This mechanic change updates all bit operations on p_flag to atomic_{set,clear}bits_int. Only exception is that P_OWEUPC is set by MI code before calling need_proftick and it's automatically cleared by ADDUPC. There's no reason for MD handling of that flag since everyone handles it the same way. kettenis@ ok
* ansi/deregister. No binary change.jsg2005-12-211-25/+8
|
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-6/+6
| | | | | | | 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
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-7/+9
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-9/+7
|
* VFS Lite2 Changescsapuntz1997-10-061-7/+9
|
* partial sync with netbsd 960418, more to comederaadt1996-04-211-3/+3
|
* From NetBSD: 960217 mergeniklas1996-03-031-2/+9
|
* initial import of NetBSD treederaadt1995-10-181-0/+151