mirror of
https://github.com/golang/go
synced 2024-11-11 21:50:21 -07:00
syscall: add mmap constants for NetBSD/ARM.
Fixes the syscall test. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/71470043
This commit is contained in:
parent
c97778f430
commit
fd4b001a0f
@ -952,6 +952,38 @@ const (
|
||||
LOCK_NB = 0x4
|
||||
LOCK_SH = 0x1
|
||||
LOCK_UN = 0x8
|
||||
MADV_DONTNEED = 0x4
|
||||
MADV_FREE = 0x6
|
||||
MADV_NORMAL = 0x0
|
||||
MADV_RANDOM = 0x1
|
||||
MADV_SEQUENTIAL = 0x2
|
||||
MADV_SPACEAVAIL = 0x5
|
||||
MADV_WILLNEED = 0x3
|
||||
MAP_ALIGNMENT_16MB = 0x18000000
|
||||
MAP_ALIGNMENT_1TB = 0x28000000
|
||||
MAP_ALIGNMENT_256TB = 0x30000000
|
||||
MAP_ALIGNMENT_4GB = 0x20000000
|
||||
MAP_ALIGNMENT_64KB = 0x10000000
|
||||
MAP_ALIGNMENT_64PB = 0x38000000
|
||||
MAP_ALIGNMENT_MASK = -0x1000000
|
||||
MAP_ALIGNMENT_SHIFT = 0x18
|
||||
MAP_ANON = 0x1000
|
||||
MAP_FILE = 0x0
|
||||
MAP_FIXED = 0x10
|
||||
MAP_HASSEMAPHORE = 0x200
|
||||
MAP_INHERIT = 0x80
|
||||
MAP_INHERIT_COPY = 0x1
|
||||
MAP_INHERIT_DEFAULT = 0x1
|
||||
MAP_INHERIT_DONATE_COPY = 0x3
|
||||
MAP_INHERIT_NONE = 0x2
|
||||
MAP_INHERIT_SHARE = 0x0
|
||||
MAP_NORESERVE = 0x40
|
||||
MAP_PRIVATE = 0x2
|
||||
MAP_RENAME = 0x20
|
||||
MAP_SHARED = 0x1
|
||||
MAP_STACK = 0x2000
|
||||
MAP_TRYFIXED = 0x400
|
||||
MAP_WIRED = 0x800
|
||||
MSG_BCAST = 0x100
|
||||
MSG_CMSG_CLOEXEC = 0x800
|
||||
MSG_CONTROLMBUF = 0x2000000
|
||||
@ -1029,6 +1061,10 @@ const (
|
||||
PARMRK = 0x8
|
||||
PARODD = 0x2000
|
||||
PENDIN = 0x20000000
|
||||
PROT_EXEC = 0x4
|
||||
PROT_NONE = 0x0
|
||||
PROT_READ = 0x1
|
||||
PROT_WRITE = 0x2
|
||||
PRI_IOFLUSH = 0x7c
|
||||
PRIO_PGRP = 0x1
|
||||
PRIO_PROCESS = 0x0
|
||||
|
Loading…
Reference in New Issue
Block a user