|
|
147e83 |
Backport of this upstream commit, with ports/ readded to the path.
|
|
|
147e83 |
|
|
|
147e83 |
commit 5c40c3bab2fddaca8cfe12d75944d1fef8adf1a4
|
|
|
147e83 |
Author: Alan Hayward <alan.hayward@arm.com>
|
|
|
147e83 |
Date: Tue Nov 11 16:32:34 2014 +0000
|
|
|
147e83 |
|
|
|
147e83 |
[AArch64] Add ipc.h.
|
|
|
147e83 |
|
|
|
147e83 |
Adding ipc.h for AArch64 adjusted to behave correctly on big endian
|
|
|
147e83 |
targets.
|
|
|
147e83 |
|
|
|
147e83 |
diff --git a/ports/sysdeps/unix/sysv/linux/aarch64/bits/ipc.h b/ports/sysdeps/unix/sysv/linux/aarch64/bits/ipc.h
|
|
|
147e83 |
new file mode 100644
|
|
|
147e83 |
index 0000000..aa50eb0
|
|
|
147e83 |
--- /dev/null
|
|
|
147e83 |
+++ b/ports/sysdeps/unix/sysv/linux/aarch64/bits/ipc.h
|
|
|
147e83 |
@@ -0,0 +1,54 @@
|
|
|
147e83 |
+/* Copyright (C) 1995-2014 Free Software Foundation, Inc.
|
|
|
147e83 |
+ This file is part of the GNU C Library.
|
|
|
147e83 |
+
|
|
|
147e83 |
+ The GNU C Library is free software; you can redistribute it and/or
|
|
|
147e83 |
+ modify it under the terms of the GNU Lesser General Public
|
|
|
147e83 |
+ License as published by the Free Software Foundation; either
|
|
|
147e83 |
+ version 2.1 of the License, or (at your option) any later version.
|
|
|
147e83 |
+
|
|
|
147e83 |
+ The GNU C Library is distributed in the hope that it will be useful,
|
|
|
147e83 |
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
147e83 |
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
147e83 |
+ Lesser General Public License for more details.
|
|
|
147e83 |
+
|
|
|
147e83 |
+ You should have received a copy of the GNU Lesser General Public
|
|
|
147e83 |
+ License along with the GNU C Library; if not, see
|
|
|
147e83 |
+ <http://www.gnu.org/licenses/>. */
|
|
|
147e83 |
+
|
|
|
147e83 |
+#ifndef _SYS_IPC_H
|
|
|
147e83 |
+# error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
|
|
|
147e83 |
+#endif
|
|
|
147e83 |
+
|
|
|
147e83 |
+#include <bits/types.h>
|
|
|
147e83 |
+
|
|
|
147e83 |
+/* Mode bits for `msgget', `semget', and `shmget'. */
|
|
|
147e83 |
+#define IPC_CREAT 01000 /* Create key if key does not exist. */
|
|
|
147e83 |
+#define IPC_EXCL 02000 /* Fail if key exists. */
|
|
|
147e83 |
+#define IPC_NOWAIT 04000 /* Return error on wait. */
|
|
|
147e83 |
+
|
|
|
147e83 |
+/* Control commands for `msgctl', `semctl', and `shmctl'. */
|
|
|
147e83 |
+#define IPC_RMID 0 /* Remove identifier. */
|
|
|
147e83 |
+#define IPC_SET 1 /* Set `ipc_perm' options. */
|
|
|
147e83 |
+#define IPC_STAT 2 /* Get `ipc_perm' options. */
|
|
|
147e83 |
+#ifdef __USE_GNU
|
|
|
147e83 |
+# define IPC_INFO 3 /* See ipcs. */
|
|
|
147e83 |
+#endif
|
|
|
147e83 |
+
|
|
|
147e83 |
+/* Special key values. */
|
|
|
147e83 |
+#define IPC_PRIVATE ((__key_t) 0) /* Private key. */
|
|
|
147e83 |
+
|
|
|
147e83 |
+
|
|
|
147e83 |
+/* Data structure used to pass permission information to IPC operations. */
|
|
|
147e83 |
+struct ipc_perm
|
|
|
147e83 |
+ {
|
|
|
147e83 |
+ __key_t __key; /* Key. */
|
|
|
147e83 |
+ __uid_t uid; /* Owner's user ID. */
|
|
|
147e83 |
+ __gid_t gid; /* Owner's group ID. */
|
|
|
147e83 |
+ __uid_t cuid; /* Creator's user ID. */
|
|
|
147e83 |
+ __gid_t cgid; /* Creator's group ID. */
|
|
|
147e83 |
+ unsigned int mode; /* Read/write permission. */
|
|
|
147e83 |
+ unsigned short int __seq; /* Sequence number. */
|
|
|
147e83 |
+ unsigned short int __pad1;
|
|
|
147e83 |
+ __syscall_ulong_t __glibc_reserved1;
|
|
|
147e83 |
+ __syscall_ulong_t __glibc_reserved2;
|
|
|
147e83 |
+ };
|