From 4a75025b8ae4c3fd54f6186479b63648765180ac Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 5 Feb 2026 09:30:58 -0700 Subject: [PATCH] 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 Reviewed-by: Richard Henderson Signed-off-by: Warner Losh --- bsd-user/syscall_defs.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h index a4967b444b..84a3837b6e 100644 --- a/bsd-user/syscall_defs.h +++ b/bsd-user/syscall_defs.h @@ -483,6 +483,20 @@ struct target_procctl_reaper_kill { uint32_t rk_pad0[15]; }; +/* + * sys/uuid.h + */ +#define TARGET_UUID_NODE_LEN 6 + +struct target_uuid { + uint32_t time_low; + uint16_t time_mid; + uint16_t time_hi_and_version; + uint8_t clock_seq_hi_and_reserved; + uint8_t clock_seq_low; + uint8_t node[TARGET_UUID_NODE_LEN]; +}; + #define safe_syscall0(type, name) \ type safe_##name(void) \