@samitouri / QOSamiQemu / commits / b6f070a771

bsd-user: Add miscellaneous BSD syscall implementations

Wire up the remaining miscellaneous BSD syscalls: - quotactl(2): Quota control (stub returning ENOSYS) - reboot(2): Reboot system (stub returning ENOSYS) - uuidgen(2): Generate UUIDs - getdtablesize(2): Get descriptor table size Signed-off-by: Stacey Son <sson@FreeBSD.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Warner Losh <imp@bsdimp.com>

Stacey Son committed Feb 5, 2026 at 09:28 UTC b6f070a7710e4874104f3a77b9fd424dd8a3827c
1 file changed +16
bsd-user/freebsd/os-syscall.c
+16
@@ -933,6 +933,22 @@ static abi_long freebsd_syscall(void *cpu_env, int num, abi_long arg1,
933 ret = do_obreak(arg1);
934 break;
935
936 + case TARGET_FREEBSD_NR_quotactl: /* quotactl(2) */
937 + ret = do_bsd_quotactl(arg1, arg2, arg3);
938 + break;
939 +
940 + case TARGET_FREEBSD_NR_reboot: /* reboot(2) */
941 + ret = do_bsd_reboot(arg1);
942 + break;
943 +
944 + case TARGET_FREEBSD_NR_uuidgen: /* uuidgen(2) */
945 + ret = do_bsd_uuidgen(arg1, arg2);
946 + break;
947 +
948 + case TARGET_FREEBSD_NR_getdtablesize: /* getdtablesize(2) */
949 + ret = do_bsd_getdtablesize();
950 + break;
951 +
952 /*
953 * sys{ctl, arch, call}
954 */