Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
version away __unused1/2/3 for X86_64
Browse files Browse the repository at this point in the history
Fixes Issue 14007 - shmctl with IPC_STAT returns wrong number of attachments. shmid_ds is defined wrong.

Fix originally by tcak via Bugzilla.
  • Loading branch information
aG0aep6G committed Jan 19, 2015
1 parent c4c4c66 commit 58504ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/sys/posix/sys/shm.d
Expand Up @@ -60,16 +60,17 @@ version( linux )

alias c_ulong shmatt_t;

/* For any changes, please check /usr/include/bits/shm.h */
struct shmid_ds
{
ipc_perm shm_perm;
size_t shm_segsz;
time_t shm_atime;
c_ulong __unused1;
version( X86_64 ) {} else c_ulong __unused1;
time_t shm_dtime;
c_ulong __unused2;
version( X86_64 ) {} else c_ulong __unused2;
time_t shm_ctime;
c_ulong __unused3;
version( X86_64 ) {} else c_ulong __unused3;
pid_t shm_cpid;
pid_t shm_lpid;
shmatt_t shm_nattch;
Expand Down

0 comments on commit 58504ec

Please sign in to comment.