diff options
author | Jamie Liu <jamieliu@google.com> | 2018-05-08 11:25:40 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-08 11:26:36 -0700 |
commit | 3ac3ea1d6afea0b128112e6a46b8bf47b4b0e02a (patch) | |
tree | 9707f990e93614c8841141c55c3adfae4314356a /pkg/abi/linux/sem.go | |
parent | 32cabad8dab689fd94d6f2d19d4db10285a94e60 (diff) |
Correct definition of SysV IPC structures.
PiperOrigin-RevId: 195849066
Change-Id: If2146c7ce649522f86e661c5e52a9983345d6967
Diffstat (limited to 'pkg/abi/linux/sem.go')
-rw-r--r-- | pkg/abi/linux/sem.go | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/pkg/abi/linux/sem.go b/pkg/abi/linux/sem.go index f8d8debf1..3495f5cd0 100644 --- a/pkg/abi/linux/sem.go +++ b/pkg/abi/linux/sem.go @@ -14,7 +14,7 @@ package linux -// semctl Command Definitions. Source: //include/uapi/linux/sem.h +// semctl Command Definitions. Source: include/uapi/linux/sem.h const ( GETPID = 11 GETVAL = 12 @@ -25,7 +25,7 @@ const ( SETALL = 17 ) -// ipcs ctl cmds. Source: //include/uapi/linux/sem.h +// ipcs ctl cmds. Source: include/uapi/linux/sem.h const ( SEM_STAT = 18 SEM_INFO = 19 @@ -33,16 +33,14 @@ const ( const SEM_UNDO = 0x1000 -// SemidDS is equivalent to struct semid_ds. +// SemidDS is equivalent to struct semid64_ds. type SemidDS struct { - SemPerm IPCPerm - SemOTime TimeT - reserved1 uint32 - SemCTime TimeT - reserved2 uint32 - SemNSems uint32 - reserved3 uint32 - reserved4 uint32 + SemPerm IPCPerm + SemOTime TimeT + SemCTime TimeT + SemNSems uint64 + unused3 uint64 + unused4 uint64 } // Sembuf is equivalent to struct sembuf. |