HomeFreeBSD

linux(4): Convert flags in timerfd_create

Description

linux(4): Convert flags in timerfd_create

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.

Approved by: re (gjb)
Reviewed by: dchagin, jfree
PR: 273662
Differential revision: https://reviews.freebsd.org/D41708
MFC after: 1 week

(cherry picked from commit aadc14bceb4e94f5b75a05de96cd9619b877b030)
(cherry picked from commit 3c93ba3d7f7cf0d61f6b98c08319c729a6d31d71)

Details

Provenance
Vico Chen <vico.chern_qq.com>Authored on Sep 5 2023, 8:53 AM
dchaginCommitted on Sep 12 2023, 4:43 PM
Reviewer
dchagin
Differential Revision
D41708: Linux ABI timerfd can't work on FreeBSD 14 stable.
Parents
rG0f07f838d059: linux(4): Return ENOTSUP from listxattr instead of EPERM
Branches
Unknown
Tags
Unknown