bsd-user: Add target_uuid structure for uuidgen syscall
Add the target ABI definition for struct uuid, needed for uuidgen(2) syscall emulation. Signed-off-by: Stacey Son <sson@FreeBSD.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Warner Losh <imp@bsdimp.com>
Warner Losh committed
Feb 5, 2026 at 09:30 UTC
4a75025b8ae4c3fd54f6186479b63648765180ac
1 file changed
+14
bsd-user/syscall_defs.h
+14
@@ -483,6 +483,20 @@ struct target_procctl_reaper_kill {
483
uint32_t rk_pad0[15];
484
};
485
486
+/*
487
+ * sys/uuid.h
488
+ */
489
+#define TARGET_UUID_NODE_LEN 6
490
+
491
+struct target_uuid {
492
+ uint32_t time_low;
493
+ uint16_t time_mid;
494
+ uint16_t time_hi_and_version;
495
+ uint8_t clock_seq_hi_and_reserved;
496
+ uint8_t clock_seq_low;
497
+ uint8_t node[TARGET_UUID_NODE_LEN];
498
+};
499
+
500
501
#define safe_syscall0(type, name) \
502
type safe_##name(void) \