opnsense-src/tests/sys/kqueue/libkqueue
Kyle Evans 9c999a259f kqueue: don't arbitrarily restrict long-past values for NOTE_ABSTIME
NOTE_ABSTIME values are converted to values relative to boottime in
filt_timervalidate(), and negative values are currently rejected.  We
don't reject times in the past in general, so clamp this up to 0 as
needed such that the timer fires immediately rather than imposing what
looks like an arbitrary restriction.

Another possible scenario is that the system clock had to be adjusted
by ~minutes or ~hours and we have less than that in terms of uptime,
making a reasonable short-timeout suddenly invalid. Firing it is still
a valid choice in this scenario so that applications can at least
expect a consistent behavior.

Reviewed by:	kib, markj
Discussed with:	allanjude
Differential Revision:	https://reviews.freebsd.org/D32230
2021-09-30 21:31:24 -05:00
..
common.h Remove extern from function declarations in common.h 2020-04-21 15:55:08 +00:00
config.h
kqueue_test.sh Enable timer tests in sys.kqueue.libkqueue.kqueue_test.main on i386 2020-04-22 09:53:41 +00:00
main.c Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00
Makefile Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
proc.c Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00
read.c Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00
signal.c Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00
timer.c kqueue: don't arbitrarily restrict long-past values for NOTE_ABSTIME 2021-09-30 21:31:24 -05:00
user.c kqueue: Add EV_KEEPUDATA flag 2021-09-23 17:31:39 -07:00
vnode.c Fix various warnings in tests/sys/kqueue and bump WARNS 2020-04-18 12:54:47 +00:00