From be445036390e6b3a6337c59b6af8737f8cb6a09e Mon Sep 17 00:00:00 2001 From: Diederik de Groot Date: Fri, 23 Feb 2018 14:21:09 +0100 Subject: [PATCH] Add dragonfly implementation for shared memory --- src/core/sys/posix/sys/shm.d | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/core/sys/posix/sys/shm.d b/src/core/sys/posix/sys/shm.d index 991a64437d..537412634b 100644 --- a/src/core/sys/posix/sys/shm.d +++ b/src/core/sys/posix/sys/shm.d @@ -156,6 +156,32 @@ else version(NetBSD) int shmdt(in void*); int shmget(key_t, size_t, int); } +else version(DragonFlyBSD) +{ + enum SHM_RDONLY = 0x01000; // 010000 + enum SHM_RND = 0x02000; // 020000 + enum SHMLBA = 1 << 12; // PAGE_SIZE = (1<