From 94c01485caa0ab48ca956572d6f024f5a3f9e355 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 16:07:11 -0500 Subject: merge XOPEN identifiers --- src/sys/shm/SHMLBA.c | 5 +++++ src/sys/shm/SHM_RDONLY.c | 5 +++++ src/sys/shm/SHM_RND.c | 5 +++++ src/sys/shm/shmat.c | 10 ++++++++++ src/sys/shm/shmatt_t.c | 5 +++++ src/sys/shm/shmctl.c | 10 ++++++++++ src/sys/shm/shmdt.c | 10 ++++++++++ src/sys/shm/shmget.c | 10 ++++++++++ src/sys/shm/struct_shmid_ds.c | 16 ++++++++++++++++ 9 files changed, 76 insertions(+) create mode 100644 src/sys/shm/SHMLBA.c create mode 100644 src/sys/shm/SHM_RDONLY.c create mode 100644 src/sys/shm/SHM_RND.c create mode 100644 src/sys/shm/shmat.c create mode 100644 src/sys/shm/shmatt_t.c create mode 100644 src/sys/shm/shmctl.c create mode 100644 src/sys/shm/shmdt.c create mode 100644 src/sys/shm/shmget.c create mode 100644 src/sys/shm/struct_shmid_ds.c (limited to 'src') 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 +#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 +#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 +#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 + +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 +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 + +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 + +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 + +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 + +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) +*/ -- cgit v1.2.1