syzkaller/sys/freebsd
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: check that target consts are defined 2018-10-19 19:11:22 +01:00
init.go Makefile: don't compile all targets into target binaries 2018-08-02 19:07:22 +02:00
ipc_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
ipc.txt sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
posix_fs_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
posix_fs.txt sys: mark output resources as opt 2018-06-18 19:45:47 +02:00
posix_mm_amd64.const sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
posix_mm.txt sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
socket_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet6_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet6.txt pkg/compiler: check for unused declarations 2018-06-30 19:34:41 +02:00
socket_inet_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet_icmp_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet_icmp.txt sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet_tcp_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet_tcp.txt pkg/compiler: check for unused declarations 2018-06-30 19:34:41 +02:00
socket_inet_udp_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet_udp.txt sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_inet.txt pkg/compiler: check for unused declarations 2018-06-30 19:34:41 +02:00
socket_unix_amd64.const sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00
socket_unix.txt pkg/compiler: add check that len does not refer to array with varlen elements 2017-11-28 14:55:21 +01:00
socket.txt pkg/compiler: check for unused declarations 2018-06-30 19:34:41 +02:00
sys_amd64.const sys: check that target consts are defined 2018-10-19 19:11:22 +01:00
sys.txt sys/linux: add syz_execute_func 2018-08-30 21:45:04 -07:00
vnet.txt sys/freebsd: more syscall descriptions 2017-10-17 13:50:05 +02:00