diff options
author | Jing Chen <chjing@google.com> | 2020-12-02 00:11:17 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-12-02 00:13:24 -0800 |
commit | b26dd6d9b78b2703a8a726376e6935011657123a (patch) | |
tree | 366c87db9db8c26a2afacfee099adc60c345875d /pkg/abi | |
parent | 41675ebc6308bef2f227339d075b3af8b4062eec (diff) |
Add /proc/sys/kernel/sem.
PiperOrigin-RevId: 345178956
Diffstat (limited to 'pkg/abi')
-rw-r--r-- | pkg/abi/linux/sem.go | 11 |
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. |