diff options
| author | Stacey Son <sson@FreeBSD.org> | 2023-09-25 21:24:24 +0300 |
|---|---|---|
| committer | Warner Losh <imp@bsdimp.com> | 2023-10-03 17:14:06 -0600 |
| commit | 510eecbc86e1aa93c17e9e0a3acced366b0258e1 (patch) | |
| tree | f6359044bf3e9dd2c30d3cfd1beb55a78d36865b /bsd-user/freebsd/os-syscall.c | |
| parent | 831a5a7fcbb3bfc36e8e7ed511817e8390344f87 (diff) | |
| download | focaccia-qemu-510eecbc86e1aa93c17e9e0a3acced366b0258e1.tar.gz focaccia-qemu-510eecbc86e1aa93c17e9e0a3acced366b0258e1.zip | |
bsd-user: Implement rfork(2) system call.
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-28-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user/freebsd/os-syscall.c')
| -rw-r--r-- | bsd-user/freebsd/os-syscall.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bsd-user/freebsd/os-syscall.c b/bsd-user/freebsd/os-syscall.c index cb9425c9ba..4c4e773d1d 100644 --- a/bsd-user/freebsd/os-syscall.c +++ b/bsd-user/freebsd/os-syscall.c @@ -234,6 +234,10 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1, ret = do_freebsd_vfork(cpu_env); break; + case TARGET_FREEBSD_NR_rfork: /* rfork(2) */ + ret = do_freebsd_rfork(cpu_env, arg1); + break; + case TARGET_FREEBSD_NR_execve: /* execve(2) */ ret = do_freebsd_execve(arg1, arg2, arg3); break; |