summaryrefslogtreecommitdiff
path: root/src/sys
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-09 16:07:11 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-09 16:07:11 -0500
commit94c01485caa0ab48ca956572d6f024f5a3f9e355 (patch)
tree86dd9d08786d3983e5973fc9eb7786c746054935 /src/sys
parentdb0e96ac363c45d49a17cff93c2dc7416737a9ce (diff)
merge XOPEN identifiers
Diffstat (limited to 'src/sys')
-rw-r--r--src/sys/shm/SHMLBA.c5
-rw-r--r--src/sys/shm/SHM_RDONLY.c5
-rw-r--r--src/sys/shm/SHM_RND.c5
-rw-r--r--src/sys/shm/shmat.c10
-rw-r--r--src/sys/shm/shmatt_t.c5
-rw-r--r--src/sys/shm/shmctl.c10
-rw-r--r--src/sys/shm/shmdt.c10
-rw-r--r--src/sys/shm/shmget.c10
-rw-r--r--src/sys/shm/struct_shmid_ds.c16
9 files changed, 76 insertions, 0 deletions
diff --git a/src/sys/shm/SHMLBA.c b/src/sys/shm/SHMLBA.c
new file mode 100644
index 00000000..e04ce941
--- /dev/null
+++ b/src/sys/shm/SHMLBA.c
@@ -0,0 +1,5 @@
+#include <sys/shm.h>
+#define SHMLBA 3
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/SHM_RDONLY.c b/src/sys/shm/SHM_RDONLY.c
new file mode 100644
index 00000000..bc1e9989
--- /dev/null
+++ b/src/sys/shm/SHM_RDONLY.c
@@ -0,0 +1,5 @@
+#include <sys/shm.h>
+#define SHM_RDONLY 1
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/SHM_RND.c b/src/sys/shm/SHM_RND.c
new file mode 100644
index 00000000..05ef86ec
--- /dev/null
+++ b/src/sys/shm/SHM_RND.c
@@ -0,0 +1,5 @@
+#include <sys/shm.h>
+#define SHM_RND 2
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/shmat.c b/src/sys/shm/shmat.c
new file mode 100644
index 00000000..0cee4898
--- /dev/null
+++ b/src/sys/shm/shmat.c
@@ -0,0 +1,10 @@
+#include <sys/shm.h>
+
+void * shmat(int shmid, const void *shmaddr, int shmflg)
+{
+ return (void*)shmaddr;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/shmatt_t.c b/src/sys/shm/shmatt_t.c
new file mode 100644
index 00000000..f6065dd0
--- /dev/null
+++ b/src/sys/shm/shmatt_t.c
@@ -0,0 +1,5 @@
+#include <sys/shm.h>
+typedef unsigned short shmatt_t;
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/shmctl.c b/src/sys/shm/shmctl.c
new file mode 100644
index 00000000..181f0c4c
--- /dev/null
+++ b/src/sys/shm/shmctl.c
@@ -0,0 +1,10 @@
+#include <sys/shm.h>
+
+int shmctl(int shmid, int cmd, struct shmid_ds *buf)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/shmdt.c b/src/sys/shm/shmdt.c
new file mode 100644
index 00000000..e90ccc5c
--- /dev/null
+++ b/src/sys/shm/shmdt.c
@@ -0,0 +1,10 @@
+#include <sys/shm.h>
+
+int shmdt(const void *shmaddr)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/shmget.c b/src/sys/shm/shmget.c
new file mode 100644
index 00000000..3911dc51
--- /dev/null
+++ b/src/sys/shm/shmget.c
@@ -0,0 +1,10 @@
+#include <sys/shm.h>
+
+int shmget(key_t key, size_t size, int shmflg)
+{
+ return 0;
+}
+
+/*
+XOPEN(4)
+*/
diff --git a/src/sys/shm/struct_shmid_ds.c b/src/sys/shm/struct_shmid_ds.c
new file mode 100644
index 00000000..cb030d41
--- /dev/null
+++ b/src/sys/shm/struct_shmid_ds.c
@@ -0,0 +1,16 @@
+#include <sys/shm.h>
+
+struct shmid_ds {
+ struct ipc_perm shm_perm;
+ size_t shm_segsz;
+ pid_t shm_lpid;
+ pid_t shm_cpid;
+ shmatt_t shm_nattach;
+ time_t shm_atime;
+ time_t shm_dtime;
+ time_t shm_ctime;
+};
+
+/*
+XOPEN(4)
+*/