| Issue |
234067
|
| Summary |
[libc] Implement timer_getoverrun in time
|
| Labels |
libc
|
| Assignees |
|
| Reporter |
amanmaurya92
|
### Summary
Implement the standard POSIX function `timer_getoverrun` in `<time.h>`.
POSIX specification: https://pubs.opengroup.org/onlinepubs/9799919799/functions/timer_getoverrun.html
### Background & Context
`timer_getoverrun` retrieves the timer expiration overrun count for the specified POSIX per-process timer:
```c
int timer_getoverrun(timer_t timerid);
```
In Linux, this directly maps to the `SYS_timer_getoverrun` system call.
LLVM libc already implements the other POSIX per-process timer functions in `libc/src/time/`:
- `timer_create`
- `timer_delete`
- `timer_gettime`
- `timer_settime`
Implementing `timer_getoverrun` finishes the POSIX timer API in LLVM libc.
### Scope
- Implement `timer_getoverrun` in `libc/src/time/timer_getoverrun.h` and `libc/src/time/linux/timer_getoverrun.cpp`.
- Declare `timer_getoverrun` in `libc/include/time.yaml`.
- Register entrypoints across supported Linux architectures in `entrypoints.txt`.
- Add unit tests in `libc/test/src/time/`.
I would like to work on this issue.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs