Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions src/core/sys/posix/sys/shm.d
Original file line number Diff line number Diff line change
Expand Up @@ -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<<PAGE_SHIFT)

alias c_ulong shmatt_t;

struct shmid_ds
{
ipc_perm shm_perm;
int shm_segsz;
pid_t shm_lpid;
pid_t shm_cpid;
short shm_nattch;
time_t shm_atime;
time_t shm_dtime;
time_t shm_ctime;
private void* shm_internal;
}

void* shmat(int, in void*, int);
int shmctl(int, int, shmid_ds*);
int shmdt(in void*);
int shmget(key_t, size_t, int);
}
else version( Darwin )
{

Expand Down