Mark setitimer as unimplemented, obsolete

This commit is contained in:
Ron Williams
2025-04-21 23:29:35 -07:00
parent f216665916
commit c779c1d941
3 changed files with 7 additions and 0 deletions
+4
View File
@@ -90,6 +90,10 @@ impl PalSignal for Sys {
}
fn setitimer(which: c_int, _new: &itimerval, old: Option<&mut itimerval>) -> Result<()> {
// TODO: setitimer is no longer part of POSIX and should not be implemented in Redox
// Change the platform-independent implementation to use POSIX timers.
// For Redox, the timer should probably use "/scheme/time"
unimplemented!();
let _path = match which {
ITIMER_REAL => "/scheme/itimer/1",
_ => return Err(Errno(EINVAL)),