2 * D header file for POSIX.
4 * Copyright: Public Domain
5 * License: Public Domain
7 * Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
9 module stdc.posix.sys.shm;
11 private import stdc.posix.config;
12 public import stdc.posix.sys.types; // for pid_t, time_t, key_t, size_t
13 public import stdc.posix.sys.ipc;
40 void* shmat(int, in void*, int);
41 int shmctl(int, int, shmid_ds*);
43 int shmget(key_t, size_t, int);
48 const SHM_RDONLY = 010000;
49 const SHM_RND = 020000;
52 alias __getpagesize SHMLBA;
54 alias c_ulong shmatt_t;
73 void* shmat(int, in void*, int);
74 int shmctl(int, int, shmid_ds*);
76 int shmget(key_t, size_t, int);
78 else version( freebsd )
80 const SHM_RDONLY = 010000;
81 const SHM_RND = 020000;
82 const SHMLBA = 1 << 12; // PAGE_SIZE = (1<<PAGE_SHIFT)
84 alias c_ulong shmatt_t;
103 void* shmat(int, in void*, int);
104 int shmctl(int, int, shmid_ds*);
106 int shmget(key_t, size_t, int);
108 else version( darwin )