From 13fceb4f86117c36ff277c38d5d8da43b318f6ce Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 16:35:11 -0500 Subject: merge XOPEN identifiers --- src/sys/mman/MAP_FIXED.c | 7 +++++++ src/sys/mman/MAP_PRIVATE.c | 6 ++++++ src/sys/mman/MAP_SHARED.c | 6 ++++++ src/sys/mman/MS_ASYNC.c | 6 ++++++ src/sys/mman/MS_INVALIDATE.c | 6 ++++++ src/sys/mman/MS_SYNC.c | 6 ++++++ src/sys/mman/PROT_EXEC.c | 6 ++++++ src/sys/mman/PROT_NONE.c | 6 ++++++ src/sys/mman/PROT_READ.c | 6 ++++++ src/sys/mman/PROT_WRITE.c | 6 ++++++ src/sys/mman/mmap.c | 11 +++++++++++ src/sys/mman/mprotect.c | 11 +++++++++++ src/sys/mman/msync.c | 11 +++++++++++ src/sys/mman/munmap.c | 11 +++++++++++ 14 files changed, 105 insertions(+) create mode 100644 src/sys/mman/MAP_FIXED.c create mode 100644 src/sys/mman/MAP_PRIVATE.c create mode 100644 src/sys/mman/MAP_SHARED.c create mode 100644 src/sys/mman/MS_ASYNC.c create mode 100644 src/sys/mman/MS_INVALIDATE.c create mode 100644 src/sys/mman/MS_SYNC.c create mode 100644 src/sys/mman/PROT_EXEC.c create mode 100644 src/sys/mman/PROT_NONE.c create mode 100644 src/sys/mman/PROT_READ.c create mode 100644 src/sys/mman/PROT_WRITE.c create mode 100644 src/sys/mman/mmap.c create mode 100644 src/sys/mman/mprotect.c create mode 100644 src/sys/mman/msync.c create mode 100644 src/sys/mman/munmap.c (limited to 'src') diff --git a/src/sys/mman/MAP_FIXED.c b/src/sys/mman/MAP_FIXED.c new file mode 100644 index 00000000..7fb9e089 --- /dev/null +++ b/src/sys/mman/MAP_FIXED.c @@ -0,0 +1,7 @@ +#include +#define MAP_FIXED /* TODO */ + +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/MAP_PRIVATE.c b/src/sys/mman/MAP_PRIVATE.c new file mode 100644 index 00000000..4b1e4868 --- /dev/null +++ b/src/sys/mman/MAP_PRIVATE.c @@ -0,0 +1,6 @@ +#include +#define MAP_PRIVATE /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/MAP_SHARED.c b/src/sys/mman/MAP_SHARED.c new file mode 100644 index 00000000..011d0ccd --- /dev/null +++ b/src/sys/mman/MAP_SHARED.c @@ -0,0 +1,6 @@ +#include +#define MAP_SHARED /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/MS_ASYNC.c b/src/sys/mman/MS_ASYNC.c new file mode 100644 index 00000000..00835b73 --- /dev/null +++ b/src/sys/mman/MS_ASYNC.c @@ -0,0 +1,6 @@ +#include +#define MS_ASYNC /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/MS_INVALIDATE.c b/src/sys/mman/MS_INVALIDATE.c new file mode 100644 index 00000000..4708ec95 --- /dev/null +++ b/src/sys/mman/MS_INVALIDATE.c @@ -0,0 +1,6 @@ +#include +#define MS_INVALIDATE /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/MS_SYNC.c b/src/sys/mman/MS_SYNC.c new file mode 100644 index 00000000..e7faf706 --- /dev/null +++ b/src/sys/mman/MS_SYNC.c @@ -0,0 +1,6 @@ +#include +#define MS_SYNC /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/PROT_EXEC.c b/src/sys/mman/PROT_EXEC.c new file mode 100644 index 00000000..54368865 --- /dev/null +++ b/src/sys/mman/PROT_EXEC.c @@ -0,0 +1,6 @@ +#include +#define PROT_EXEC /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/PROT_NONE.c b/src/sys/mman/PROT_NONE.c new file mode 100644 index 00000000..d70da016 --- /dev/null +++ b/src/sys/mman/PROT_NONE.c @@ -0,0 +1,6 @@ +#include +#define PROT_NONE /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/PROT_READ.c b/src/sys/mman/PROT_READ.c new file mode 100644 index 00000000..af2edf66 --- /dev/null +++ b/src/sys/mman/PROT_READ.c @@ -0,0 +1,6 @@ +#inclue +#define PROT_READ /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/PROT_WRITE.c b/src/sys/mman/PROT_WRITE.c new file mode 100644 index 00000000..54b99f46 --- /dev/null +++ b/src/sys/mman/PROT_WRITE.c @@ -0,0 +1,6 @@ +#include +#define PROT_WRITE /* TODO */ +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/mmap.c b/src/sys/mman/mmap.c new file mode 100644 index 00000000..9a7e4628 --- /dev/null +++ b/src/sys/mman/mmap.c @@ -0,0 +1,11 @@ +#include + +void *mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off) +{ + return addr; +} + +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/mprotect.c b/src/sys/mman/mprotect.c new file mode 100644 index 00000000..f5ac3203 --- /dev/null +++ b/src/sys/mman/mprotect.c @@ -0,0 +1,11 @@ +#include + +int mprotect(void *addr, size_t len, int prot); +{ + return prot; +} + +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/msync.c b/src/sys/mman/msync.c new file mode 100644 index 00000000..a8d38bd9 --- /dev/null +++ b/src/sys/mman/msync.c @@ -0,0 +1,11 @@ +#include + +int msync(void * addr , size_t len , int flags ) +{ +} + + +/* +XOPEN(400) +POSIX(19xxyy) +*/ diff --git a/src/sys/mman/munmap.c b/src/sys/mman/munmap.c new file mode 100644 index 00000000..0e20123f --- /dev/null +++ b/src/sys/mman/munmap.c @@ -0,0 +1,11 @@ +#include + +int munmap(void*addr, size_t len) +{ + return 0; +} + +/* +XOPEN(400) +POSIX(19xxyy) +*/ -- cgit v1.2.1