mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
syscall: add constants for flock() system call under Linux.
The values have been generated only for the i386 and amd64 architectures. R=golang-dev, mikioh.mikioh, dsymonds CC=bradfitz, dsymonds, golang-dev https://golang.org/cl/5452060
This commit is contained in:
parent
c526188fca
commit
83c30f3ec2
3 changed files with 10 additions and 0 deletions
|
|
@ -478,6 +478,10 @@ const (
|
|||
LINUX_REBOOT_CMD_SW_SUSPEND = 0xd000fce2
|
||||
LINUX_REBOOT_MAGIC1 = 0xfee1dead
|
||||
LINUX_REBOOT_MAGIC2 = 0x28121969
|
||||
LOCK_EX = 0x2
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
MADV_DOFORK = 0xb
|
||||
MADV_DONTFORK = 0xa
|
||||
MADV_DONTNEED = 0x4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue