diff options
| author | Stacey Son <sson@FreeBSD.org> | 2023-09-25 21:24:11 +0300 |
|---|---|---|
| committer | Warner Losh <imp@bsdimp.com> | 2023-10-03 17:14:06 -0600 |
| commit | faba8e123f41902edf762bb12054f096713a5338 (patch) | |
| tree | f3d00fc5a311ea4e2c7af9c67f50afb6e1737166 /bsd-user/freebsd/os-syscall.c | |
| parent | 59e801efdfce31b62d09793d35e85d3bdad0230c (diff) | |
| download | focaccia-qemu-faba8e123f41902edf762bb12054f096713a5338.tar.gz focaccia-qemu-faba8e123f41902edf762bb12054f096713a5338.zip | |
bsd-user: Implement getrlimit(2) and setrlimit(2)
Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182425.3163-15-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/freebsd/os-syscall.c')
| -rw-r--r-- | bsd-user/freebsd/os-syscall.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index 5d8693ed55..5cb6086230 100644 --- a/bsd-user/freebsd/os-syscall.c +++ b/bsd-user/freebsd/os-syscall.c @@ -247,6 +247,14 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1, ret = do_bsd_getrusage(arg1, arg2); break; + case TARGET_FREEBSD_NR_getrlimit: /* getrlimit(2) */ + ret = do_bsd_getrlimit(arg1, arg2); + break; + + case TARGET_FREEBSD_NR_setrlimit: /* setrlimit(2) */ + ret = do_bsd_setrlimit(arg1, arg2); + break; + /* * File system calls. |