Browse Source

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>
master
Warner Losh 6 months ago
parent
commit
4a75025b8a
  1. 14
      bsd-user/syscall_defs.h

14
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) \

Loading…
Cancel
Save