{set,get}itimer: fix logging and getitimer

This commit is contained in:
Matheus
2024-09-05 18:21:27 -03:00
parent 2e302a4d38
commit d65bec9c66
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -219,7 +219,7 @@ index 0000000..e5b087a
+
diff --git mlibc-workdir/sysdeps/astral/generic/generic.cpp mlibc-workdir/sysdeps/astral/generic/generic.cpp
new file mode 100644
index 0000000..de92048
index 0000000..13f1f36
--- /dev/null
+++ mlibc-workdir/sysdeps/astral/generic/generic.cpp
@@ -0,0 +1,985 @@
@@ -560,7 +560,7 @@ index 0000000..de92048
+
+ int sys_getitimer(int which, struct itimerval *curr_value) {
+ long ret;
+ return syscall(SYSCALL_SETITIMER, &ret, which, (uint64_t)curr_value);
+ return syscall(SYSCALL_GETITIMER, &ret, which, (uint64_t)curr_value);
+ }
+
+ int sys_setitimer(int which, const struct itimerval *new_value, struct itimerval *old_value) {