summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/msgqueue.go
diff options
context:
space:
mode:
authorZyad A. Ali <zyad.ali.me@gmail.com>2021-06-29 23:30:58 +0200
committerZyad A. Ali <zyad.ali.me@gmail.com>2021-08-17 20:31:38 +0200
commit265deee8cbce8f7d517bf749eb131fbed5d88151 (patch)
tree4d973b712a836a485872268709372ac02841a839 /pkg/abi/linux/msgqueue.go
parent2cf61eab4a4ead7cbbec1d06d71e9406f5983251 (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/msgqueue.go')
-rw-r--r--pkg/abi/linux/msgqueue.go2
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: