syzkaller/sys/freebsd/posix_mm_amd64.const
Dmitry Vyukov ecb386fe6f sys: check that target consts are defined
Currently when we get target consts with target.ConstMap["name"]
during target initialization, we just get 0 for missing consts.
This is error-prone as we can mis-type a const, or a const may
be undefined only on some archs (as we have common unix code
shared between several OSes).
Check that all the consts are actually defined.
The check detects several violations, to fix them:
1. move mremap to linux as it's only defined on linux
2. move S_IFMT to openbsd, as it's only defined and used on openbsd
3. define missing MAP_ANONYMOUS for freebsd and netbsd
4. fix extract for netbsd
2018-10-19 19:11:22 +01:00

31 lines
497 B
Plaintext

# AUTOGENERATED FILE
MADV_DONTNEED = 4
MADV_NORMAL = 0
MADV_RANDOM = 1
MADV_SEQUENTIAL = 2
MADV_WILLNEED = 3
MAP_32BIT = 524288
MAP_ANONYMOUS = 4096
MAP_FILE = 0
MAP_FIXED = 16
MAP_PRIVATE = 2
MAP_SHARED = 1
MAP_STACK = 1024
MCL_CURRENT = 1
MCL_FUTURE = 2
MS_ASYNC = 1
MS_INVALIDATE = 2
MS_SYNC = 0
PROT_EXEC = 4
PROT_READ = 1
PROT_WRITE = 2
SYS_madvise = 75
SYS_mlock = 203
SYS_mlockall = 324
SYS_mmap = 477
SYS_mprotect = 74
SYS_msync = 65
SYS_munlock = 204
SYS_munlockall = 325
SYS_munmap = 73