summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty_tty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* spellingjsg2021-03-101-2/+2
| | | | ok gnezdo@ semarie@ mpi@
* Rename poll-compatibility flag to better reflect what it is.mpi2020-06-111-2/+2
| | | | | | While here prefix kernel-only EV flags with two underbars. Suggested by kettenis@, ok visa@
* Make spec_kqfilter() and cttykqfilter() behave like their correspondingmpi2020-06-111-2/+5
| | | | | | poll handler if the EV_OLDAPI flag is set. ok visa@
* Make fifo_kqfilter() honor FREAD|FWRITE just like fifo_poll() does.mpi2020-04-081-2/+2
| | | | | | | Prevent generating events that do not correspond to how the fifo has been opened. ok visa@, millert@
* Remove proc from the parameters of vn_lock(). The parameter isvisa2018-05-021-6/+4
| | | | | | unnecessary because curproc always does the locking. OK mpi@
* Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is alwaysvisa2018-04-281-4/+4
| | | | | | | curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped. OK mpi@, deraadt@
* Remove almost unused `flags' argument of suser().mpi2018-02-191-2/+2
| | | | | | | The account flag `ASU' will no longer be set but that makes suser() mpsafe since it no longer mess with a per-process field. No objection from millert@, ok tedu@, bluhm@
* Don't pull in <sys/file.h> just to get fcntl.hguenther2017-12-301-2/+2
| | | | ok deraadt@ krw@
* it's not wrong, but it's not clear what the verauth check is for.tedu2016-09-061-1/+8
| | | | add a comment to this effect, and explain the intention.
* add a concept of 'verified auth' to sessions. When set via ioctl,tedu2016-09-021-1/+27
| | | | | | | | the user and parent process are recorded. Later, this info may be tested and used to bypass authorization requirements. ie, doas won't ask for your password again. Great idea from henning. ok deraadt guenther henning
* Remove the unused flags argument from VOP_UNLOCK().natano2016-03-191-4/+4
| | | | | | torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
* remove stale lint annotationstedu2015-12-051-7/+1
|
* remove code that's been #ifdef'ed out for 20 yearsblambert2015-12-031-15/+2
| | | | ok deraadt@
* 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