summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-12-02 08:16:31 +0000
committergVisor bot <gvisor-bot@google.com>2020-12-02 08:16:31 +0000
commita33d5e6c2e12704df54bda30b30e74841388b943 (patch)
tree52f14fd7fd469eac9053144614c1cd7f33ba9492 /pkg/abi/linux
parent99f45d4643d155813219c7083d56bfd67f2c4e9e (diff)
parentb26dd6d9b78b2703a8a726376e6935011657123a (diff)
Merge release-20201117.0-90-gb26dd6d9b (automated)
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r--pkg/abi/linux/sem.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkg/abi/linux/sem.go b/pkg/abi/linux/sem.go
index 1b2f76c0b..167d2ff74 100644
--- a/pkg/abi/linux/sem.go
+++ b/pkg/abi/linux/sem.go
@@ -32,6 +32,17 @@ const (
SEM_STAT_ANY = 20
)
+// Information about system-wide sempahore limits and parameters.
+//
+// Source: include/uapi/linux/sem.h
+const (
+ SEMMNI = 32000
+ SEMMSL = 32000
+ SEMMNS = SEMMNI * SEMMSL
+ SEMOPM = 500
+ SEMVMX = 32767
+)
+
const SEM_UNDO = 0x1000
// Sembuf is equivalent to struct sembuf.