Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115891718
D44253.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
699 B
Referenced Files
None
Subscribers
None
D44253.diff
View Options
diff --git a/sys/kern/sys_timerfd.c b/sys/kern/sys_timerfd.c
--- a/sys/kern/sys_timerfd.c
+++ b/sys/kern/sys_timerfd.c
@@ -26,6 +26,7 @@
* SUCH DAMAGE.
*/
+#include <sys/_clock_id.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/callout.h>
@@ -432,8 +433,18 @@
AUDIT_ARG_VALUE(clockid);
AUDIT_ARG_FFLAGS(flags);
- if (clockid != CLOCK_REALTIME && clockid != CLOCK_MONOTONIC)
+ switch (clockid) {
+ case CLOCK_REALTIME:
+ /* FALLTHROUGH */
+ case CLOCK_MONOTONIC:
+ /* FALLTHROUGH */
+ case CLOCK_UPTIME:
+ /* FALLTHROUGH */
+ case CLOCK_BOOTTIME:
+ break;
+ default:
return (EINVAL);
+ }
if ((flags & ~(TFD_CLOEXEC | TFD_NONBLOCK)) != 0)
return (EINVAL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, May 1, 2:15 AM (2 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17870202
Default Alt Text
D44253.diff (699 B)
Attached To
Mode
D44253: timerfd_create: accept CLOCK_UPTIME/CLOCK_BOOTTIME
Attached
Detach File
Event Timeline
Log In to Comment