mirror of
https://github.com/clang-retro/llvm.git
synced 2026-11-28 13:19:18 -08:00
* Implement `timerfd_settime` and `timerfd_gettime` interface on Linux platforms; * These are simple syscall wrappers, with the caveat that we also use `SYS_timerfd_(s|g)ettime64` on 32-bit platforms, if those are available (RISCV-32). * Adds a basic test case to validate relative/absolute timer behavior, and reading the number of expirations from the returned descriptor. Assisted-by: Gemini, human-reviewed.
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
header: sys/timerfd.h
|
|
standards:
|
|
- linux
|
|
macros:
|
|
- macro_name: CLOCK_BOOTTIME
|
|
macro_header: time-macros.h
|
|
- macro_name: CLOCK_BOOTTIME_ALARM
|
|
macro_header: time-macros.h
|
|
- macro_name: CLOCK_MONOTONIC
|
|
macro_header: time-macros.h
|
|
- macro_name: CLOCK_REALTIME
|
|
macro_header: time-macros.h
|
|
- macro_name: CLOCK_REALTIME_ALARM
|
|
macro_header: time-macros.h
|
|
- macro_name: TFD_CLOEXEC
|
|
macro_header: sys-timerfd-macros.h
|
|
- macro_name: TFD_NONBLOCK
|
|
macro_header: sys-timerfd-macros.h
|
|
- macro_name: TFD_TIMER_ABSTIME
|
|
macro_header: sys-timerfd-macros.h
|
|
- macro_name: TFD_TIMER_CANCEL_ON_SET
|
|
macro_header: sys-timerfd-macros.h
|
|
types:
|
|
- type_name: struct_itimerspec
|
|
enums: []
|
|
objects: []
|
|
functions:
|
|
- name: timerfd_create
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- name: timerfd_gettime
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: struct itimerspec *
|
|
- name: timerfd_settime
|
|
return_type: int
|
|
arguments:
|
|
- type: int
|
|
- type: int
|
|
- type: const struct itimerspec *
|
|
- type: struct itimerspec *
|