summaryrefslogtreecommitdiff
path: root/bsd-user
diff options
context:
space:
mode:
authorStacey Son <sson@FreeBSD.org>2023-09-25 21:26:47 +0300
committerWarner Losh <imp@bsdimp.com>2023-10-03 17:14:06 -0600
commit61a8f1100759a320940e8c53eaaefb37a4c603fb (patch)
treed07bd2bf375eba63d3b9c70bce97f3817c817f9f /bsd-user
parent6756ae283ac7fe43b8bbc1d8662dfe238f667032 (diff)
bsd-user: Implement struct target_ipc_perm
Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Karim Taha <kariem.taha2.7@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Warner Losh <imp@bsdimp.com> Message-Id: <20230925182709.4834-2-kariem.taha2.7@gmail.com>
Diffstat (limited to 'bsd-user')
-rw-r--r--bsd-user/syscall_defs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/bsd-user/syscall_defs.h b/bsd-user/syscall_defs.h
index a3bc738ff8..0e54d7df69 100644
--- a/bsd-user/syscall_defs.h
+++ b/bsd-user/syscall_defs.h
@@ -56,6 +56,23 @@ struct target_iovec {
};
/*
+ * sys/ipc.h
+ */
+struct target_ipc_perm {
+ uint32_t cuid; /* creator user id */
+ uint32_t cgid; /* creator group id */
+ uint32_t uid; /* user id */
+ uint32_t gid; /* group id */
+ uint16_t mode; /* r/w permission */
+ uint16_t seq; /* sequence # */
+ abi_long key; /* user specified msg/sem/shm key */
+};
+
+#define TARGET_IPC_RMID 0 /* remove identifier */
+#define TARGET_IPC_SET 1 /* set options */
+#define TARGET_IPC_STAT 2 /* get options */
+
+/*
* sys/mman.h
*/
#define TARGET_FREEBSD_MAP_RESERVED0080 0x0080 /* previously misimplemented */