Skip to content

setalarm: add support for timer_settime(3) #820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
McDutchie opened this issue Jan 27, 2025 · 0 comments
Open

setalarm: add support for timer_settime(3) #820

McDutchie opened this issue Jan 27, 2025 · 0 comments
Labels
TODO Things to be done before releasing

Comments

@McDutchie
Copy link

#819 made me look at this.

The setalarm function currenty uses setitimer(3). But POSIX-1.2017 states:

Applications should use the timer_gettime() and timer_settime() functions instead of the obsolescent getitimer() and setitimer() functions, respectively.

And indeed, in POSIX-1.2024, those functions are gone. So we need to update setalarm to use the new functions where available.

@McDutchie McDutchie added the TODO Things to be done before releasing label Jan 27, 2025
@McDutchie McDutchie changed the title sh_timeradd: add support for timer_settime(3) setalarm: add support for timer_settime(3) Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO Things to be done before releasing
Projects
None yet
Development

No branches or pull requests

1 participant