diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-06-29 23:30:58 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-08-17 20:31:38 +0200 |
commit | 265deee8cbce8f7d517bf749eb131fbed5d88151 (patch) | |
tree | 4d973b712a836a485872268709372ac02841a839 /pkg/abi/linux | |
parent | 2cf61eab4a4ead7cbbec1d06d71e9406f5983251 (diff) |
Implement control operations on msgqueue.
For IPCInfo, update value of MSGSEG constant in abi to avoid overflow in
MsgInfo.MsgSeg. MSGSEG was originaly simplified in abi, and is unused
(by us and within the kernel), so updating it is okay.
Updates #135
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/msgqueue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/abi/linux/msgqueue.go b/pkg/abi/linux/msgqueue.go index e1e8d0357..0612a8214 100644 --- a/pkg/abi/linux/msgqueue.go +++ b/pkg/abi/linux/msgqueue.go @@ -47,7 +47,7 @@ const ( MSGSSZ = 16 // MSGSEG is simplified due to the inexistance of a ternary operator. - MSGSEG = (MSGPOOL * 1024) / MSGSSZ + MSGSEG = 0xffff ) // MsqidDS is equivelant to struct msqid64_ds. Source: |