Page MenuHomeFreeBSD

Linux ABI timerfd can't work on FreeBSD 14 stable.
ClosedPublic

Authored by vico.chern_qq.com on Sep 4 2023, 3:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 24 2024, 11:47 AM
Unknown Object (File)
Sep 24 2024, 11:47 AM
Unknown Object (File)
Sep 24 2024, 11:36 AM
Unknown Object (File)
Sep 19 2024, 2:46 AM
Unknown Object (File)
Sep 18 2024, 7:46 PM
Unknown Object (File)
Sep 16 2024, 12:01 AM
Unknown Object (File)
Sep 12 2024, 6:44 PM
Unknown Object (File)
Jul 31 2024, 3:48 AM
Subscribers

Details

Summary

The timerfd is introduced in FreeBSD 14, and the Linux ABI timerfd is also moved to FreeBSD native timerfd, but it can't work well as Linux TFD_CLOEXEC and TFD_NONBLOCK haven't been converted to FreeBSD TFD_CLOEXEC and TFD_NONBLOCK.

Add TFD_CLOEXEC and TFD_NONBLOCK conversion to FreeBSD in linux_timerfd_create.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Add test case, and this case need be compiled on Ubuntu.

Added Jake who has some reviews in this area too

This revision is now accepted and ready to land.Sep 4 2023, 10:01 AM
This revision was automatically updated to reflect the committed changes.