syzkaller/sys/windows
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
..
gen sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00
init.go sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
sys_amd64.const sys/windows: add more descriptions 2017-09-27 20:17:09 +02:00
sys.txt sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00
windows.txt sys/windows: add more descriptions 2017-09-27 20:17:09 +02:00