mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
{set,get}itimer: fix logging and getitimer
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user