#
51c8e26b |
| 30-Sep-2024 |
claudio <claudio@openbsd.org> |
Use ps_ppid instead of ps_pptr->ps_pid in all places. OK mpi@
|
#
0d280c5f |
| 14-Aug-2022 |
jsg <jsg@openbsd.org> |
remove unneeded includes in sys/kern ok mpi@ miod@
|
#
1525749f |
| 02-Jul-2022 |
visa <visa@openbsd.org> |
Remove unused device poll functions.
Also remove unneeded includes of <sys/poll.h> and <sys/select.h>.
Some addenda from jsg@.
OK miod@ mpi@
|
#
5c9fbd3c |
| 26-Jun-2022 |
visa <visa@openbsd.org> |
Remove unused VOP_POLL().
OK mpi@
|
#
6ecc0d7f |
| 11-Dec-2021 |
visa <visa@openbsd.org> |
Clarify usage of __EV_POLL and __EV_SELECT
Make __EV_POLL specific to kqueue-based poll(2), to remove overlap with __EV_SELECT that only select(2) uses.
OK millert@ mpi@
|
#
678831be |
| 10-Mar-2021 |
jsg <jsg@openbsd.org> |
spelling
ok gnezdo@ semarie@ mpi@
|
#
1c57bd6b |
| 11-Jun-2020 |
mpi <mpi@openbsd.org> |
Rename poll-compatibility flag to better reflect what it is.
While here prefix kernel-only EV flags with two underbars.
Suggested by kettenis@, ok visa@
|
#
dce82204 |
| 11-Jun-2020 |
mpi <mpi@openbsd.org> |
Make spec_kqfilter() and cttykqfilter() behave like their corresponding poll handler if the EV_OLDAPI flag is set.
ok visa@
|
#
f7744361 |
| 08-Apr-2020 |
mpi <mpi@openbsd.org> |
Make fifo_kqfilter() honor FREAD|FWRITE just like fifo_poll() does.
Prevent generating events that do not correspond to how the fifo has been opened.
ok visa@, millert@
|
#
6e880534 |
| 02-May-2018 |
visa <visa@openbsd.org> |
Remove proc from the parameters of vn_lock(). The parameter is unnecessary because curproc always does the locking.
OK mpi@
|
#
36bb23f1 |
| 28-Apr-2018 |
visa <visa@openbsd.org> |
Clean up the parameters of VOP_LOCK() and VOP_UNLOCK(). It is always curproc that does the locking or unlocking, so the proc parameter is pointless and can be dropped.
OK mpi@, deraadt@
|
#
3e676399 |
| 19-Feb-2018 |
mpi <mpi@openbsd.org> |
Remove almost unused `flags' argument of suser().
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 mill
Remove almost unused `flags' argument of suser().
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@
show more ...
|
#
c0cd3489 |
| 30-Dec-2017 |
guenther <guenther@openbsd.org> |
Don't pull in <sys/file.h> just to get fcntl.h
ok deraadt@ krw@
|
#
ebd66197 |
| 06-Sep-2016 |
tedu <tedu@openbsd.org> |
it's not wrong, but it's not clear what the verauth check is for. add a comment to this effect, and explain the intention.
|
#
bb5dd46a |
| 02-Sep-2016 |
tedu <tedu@openbsd.org> |
add a concept of 'verified auth' to sessions. When set via ioctl, the user and parent process are recorded. Later, this info may be tested and used to bypass authorization requirements. ie, doas won'
add a concept of 'verified auth' to sessions. When set via ioctl, 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
show more ...
|
#
937fcae7 |
| 19-Mar-2016 |
natano <natano@openbsd.org> |
Remove the unused flags argument from VOP_UNLOCK().
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
|
#
52dd740a |
| 05-Dec-2015 |
tedu <tedu@openbsd.org> |
remove stale lint annotations
|
#
a124695a |
| 03-Dec-2015 |
blambert <blambert@openbsd.org> |
remove code that's been #ifdef'ed out for 20 years
ok deraadt@
|
#
4de3f78c |
| 01-May-2015 |
millert <millert@openbsd.org> |
Pass fflag to VOP_POLL so vfs fifo functions can get at the file 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
Pass fflag to VOP_POLL so vfs fifo functions can get at the file 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@
show more ...
|
#
21dab745 |
| 14-Mar-2015 |
jsg <jsg@openbsd.org> |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
#
fde894e5 |
| 16-Dec-2014 |
tedu <tedu@openbsd.org> |
primary change: move uvm_vnode out of vnode, keeping only a pointer. objective: vnode.h doesn't include uvm_extern.h anymore. followup changes: include uvm_extern.h or lock.h where necessary. ok and
primary change: move uvm_vnode out of vnode, keeping only a pointer. 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
show more ...
|
#
556fc185 |
| 06-Oct-2011 |
mikeb <mikeb@openbsd.org> |
Introduce a kqfilter wrapper for the controlling tty device entry which allows a correct registration of kqueue(2) notifications on the /dev/tty instead of calling a function via a null pointer in th
Introduce a kqfilter wrapper for the controlling tty device entry 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.
show more ...
|
#
207e4b38 |
| 26-Jul-2010 |
guenther <guenther@openbsd.org> |
Correct the links between threads, processes, pgrps, and sessions, so that the process-level stuff is to/from struct process and not struct proc. This fixes a bunch of problem cases in rthreads. Bas
Correct the links between threads, processes, pgrps, and sessions, 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
show more ...
|
#
29514732 |
| 15-Mar-2007 |
art <art@openbsd.org> |
Since p_flag is often manipulated in interrupts and without biglock 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}b
Since p_flag is often manipulated in interrupts and without biglock 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
show more ...
|
#
45c81e76 |
| 21-Dec-2005 |
jsg <jsg@openbsd.org> |
ansi/deregister. No binary change.
|