@samitouri / QOSamiQemu / commits / 447121c344

bsd-user: Add function declarations for bsd-misc.c conversions

Add function declarations for BSD System V IPC and UUID conversion routines that will be implemented in bsd-misc.c. 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:31 UTC 447121c344bf88fd0e378a6eda6b22f6ab057ddd
1 file changed +15
bsd-user/qemu-bsd.h
+15
@@ -54,4 +54,19 @@ abi_long target_to_host_shmid_ds(struct shmid_ds *host_sd,
54 abi_long host_to_target_shmid_ds(abi_ulong target_addr,
55 struct shmid_ds *host_sd);
56
57 +/* bsd-misc.c */
58 +abi_long host_to_target_uuid(abi_ulong target_addr, struct uuid *host_uuid);
59 +abi_long target_to_host_semarray(int semid, unsigned short **host_array,
60 + abi_ulong target_addr);
61 +abi_long host_to_target_semarray(int semid, abi_ulong target_addr,
62 + unsigned short **host_array);
63 +abi_long target_to_host_semid_ds(struct semid_ds *host_sd,
64 + abi_ulong target_addr);
65 +abi_long host_to_target_semid_ds(abi_ulong target_addr,
66 + struct semid_ds *host_sd);
67 +abi_long target_to_host_msqid_ds(struct msqid_ds *host_md,
68 + abi_ulong target_addr);
69 +abi_long host_to_target_msqid_ds(abi_ulong target_addr,
70 + struct msqid_ds *host_md);
71 +
72 #endif /* QEMU_BSD_H */