]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-event: `SYS_eventfd2`: Use low-level `fcntl` syscall
authorSimon Kuenzer <simon@unikraft.io>
Thu, 18 May 2023 13:48:28 +0000 (15:48 +0200)
committerUnikraft <monkey@unikraft.io>
Mon, 24 Jul 2023 08:09:40 +0000 (08:09 +0000)
commite90a8969a2193533eefe265b9a06483dc67323c4
tree16b0902895f5842d2ce7b970c97c4397b55b3dc8
parenteaafc316c31bcf6635705b7c43db3fcf8cbf5ff4
lib/posix-event: `SYS_eventfd2`: Use low-level `fcntl` syscall

The eventfd constructor system call `eventfd2` uses the the `fcntl` system
call to setup the file descriptor flag `O_NONBLOCK` during creation. This
commit makes sure that the low-level implementation is directly called so
that there is no dependency to `errno`.

Checkpatch-Ignore: AVOID_EXTERNS
Checkpatch-Ignore: FUNCTION_ARGUMENTS
Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Florin Postolache <florin.postolache.of@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #903
lib/posix-event/eventfd.c