syscalls: getrlimit: return error

Return error for the moment for `sys_getrlimit`.
This commit is contained in:
Matthew Leach
2025-11-26 12:16:26 +00:00
committed by Matthew Leach
parent 1ed714e47b
commit 1741b036bb
2 changed files with 2 additions and 1 deletions

View File

@@ -163,7 +163,7 @@
| 0xa0 (160) | newuname | (struct new_utsname *name) | __arm64_sys_newuname | true |
| 0xa1 (161) | sethostname | (char *name, int len) | __arm64_sys_sethostname | false |
| 0xa2 (162) | setdomainname | (char *name, int len) | __arm64_sys_setdomainname | false |
| 0xa3 (163) | getrlimit | (unsigned int resource, struct rlimit *rlim) | __arm64_sys_getrlimit | false |
| 0xa3 (163) | getrlimit | (unsigned int resource, struct rlimit *rlim) | __arm64_sys_getrlimit | dummy |
| 0xa4 (164) | setrlimit | (unsigned int resource, struct rlimit *rlim) | __arm64_sys_setrlimit | false |
| 0xa5 (165) | getrusage | (int who, struct rusage *ru) | __arm64_sys_getrusage | false |
| 0xa6 (166) | umask | (int mask) | __arm64_sys_umask | true |

View File

@@ -209,6 +209,7 @@ pub async fn handle_syscall() {
0x9a => sys_setpgid(arg1 as _, Pgid(arg2 as _)),
0x9b => sys_getpgid(arg1 as _),
0xa0 => sys_uname(TUA::from_value(arg1 as _)).await,
0xa3 => Err(KernelError::InvalidValue),
0xa6 => sys_umask(arg1 as _).map_err(|e| match e {}),
0xa9 => sys_gettimeofday(TUA::from_value(arg1 as _), TUA::from_value(arg2 as _)).await,
0xac => sys_getpid().map_err(|e| match e {}),