Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 62d08c0

Browse files
committed
Update shm.d to match the one in it PR to dlang/druntime
1 parent 86b75bc commit 62d08c0

File tree

1 file changed

+26
-0
lines changed
  • src/core/sys/posix/sys

1 file changed

+26
-0
lines changed

src/core/sys/posix/sys/shm.d

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,32 @@ else version( FreeBSD )
121121
int shmdt(in void*);
122122
int shmget(key_t, size_t, int);
123123
}
124+
else version(DragonFlyBSD)
125+
{
126+
enum SHM_RDONLY = 0x01000; // 010000
127+
enum SHM_RND = 0x02000; // 020000
128+
enum SHMLBA = 1 << 12; // PAGE_SIZE = (1<<PAGE_SHIFT)
129+
130+
alias c_ulong shmatt_t;
131+
132+
struct shmid_ds
133+
{
134+
ipc_perm shm_perm;
135+
int shm_segsz;
136+
pid_t shm_lpid;
137+
pid_t shm_cpid;
138+
short shm_nattch;
139+
time_t shm_atime;
140+
time_t shm_dtime;
141+
time_t shm_ctime;
142+
void * __shm_internal;
143+
}
144+
145+
void* shmat(int, in void*, int);
146+
int shmctl(int, int, shmid_ds*);
147+
int shmdt(in void*);
148+
int shmget(key_t, size_t, int);
149+
}
124150
else version( OSX )
125151
{
126152

0 commit comments

Comments
 (0)