Open
Description
timerfd
APIs are only available as SYS_*
calls
As Android is linux, these should be available too.
Should they be added?
List of APIs:
timerfd_create
timerfd_settime
timerfd_gettime
That's and various definitions like TFD_NONBLOCK
Reference http://man7.org/linux/man-pages/man2/timerfd_create.2.html
Activity
ghost commentedon Nov 11, 2019
seems like they were added in api level 19, im sure that's depreciated by now
Removed support for timerfd on Android as it seems to have been depre…
Adding an implementation and some basic tests for timerfd.
Adding an implementation and some basic tests for timerfd.
Adding an implementation and some basic tests for timerfd.
Adding an implementation and some basic tests for timerfd.
saurik commentedon Aug 12, 2020
Multiple people--including the person who submitted the pull request #1751--seem to have read this wording and got confused; I'm assuming you mean that API level 19 (Android 4.4) is sufficiently old such that many people can feel comfortable using APIs from it, not that anything has been "deprecated". That PR should be resurrected and committed (as I'd argue that old versions of non-Android Linux are of course also missing these APIs, and yet it is available there).
DoumanAsh commentedon Aug 12, 2020
@saurik While it is unfortunate that
libc
decided on such weird way to deal with API version.It is not difficult to write imports yourself. See my timer crate:
https://github.com/DoumanAsh/async-timer/blob/master/src/timer/timer_fd.rs#L9-L23