Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149104794
D41708.id126840.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
929 B
Referenced Files
None
Subscribers
None
D41708.id126840.diff
View Options
diff --git a/sys/compat/linux/linux_event.h b/sys/compat/linux/linux_event.h
--- a/sys/compat/linux/linux_event.h
+++ b/sys/compat/linux/linux_event.h
@@ -56,4 +56,7 @@
#define LINUX_EFD_SEMAPHORE (1 << 0)
+#define LINUX_TFD_CLOEXEC LINUX_O_CLOEXEC
+#define LINUX_TFD_NONBLOCK LINUX_O_NONBLOCK
+
#endif /* !_LINUX_EVENT_H_ */
diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c
--- a/sys/compat/linux/linux_event.c
+++ b/sys/compat/linux/linux_event.c
@@ -693,12 +693,18 @@
{
clockid_t clockid;
int error;
+ int fflags = 0;
error = linux_to_native_clockid(&clockid, args->clockid);
if (error != 0)
return (error);
- return (kern_timerfd_create(td, clockid, args->flags));
+ if ((args->flags & LINUX_TFD_CLOEXEC) != 0)
+ fflags |= O_CLOEXEC;
+ if ((args->flags & LINUX_TFD_NONBLOCK) != 0)
+ fflags |= TFD_NONBLOCK;
+
+ return (kern_timerfd_create(td, clockid, fflags));
}
int
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 23, 7:46 AM (17 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30172460
Default Alt Text
D41708.id126840.diff (929 B)
Attached To
Mode
D41708: Linux ABI timerfd can't work on FreeBSD 14 stable.
Attached
Detach File
Event Timeline
Log In to Comment