diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2021-11-10 21:54:37 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-11-12 16:32:52 +0100 |
| commit | 0afefce7b7d6ac6f7f4489b6c0b9d06f8be2f5a6 (patch) | |
| tree | 041b37340a6d0f7de15c496b9095553eedac7587 /sys | |
| parent | 0dd854679a8119610343853c6d9229d1d041fde0 (diff) | |
sys: remove confusing comments that fake directives
It's a somewhat common mistake to write comments instead of directives:
#include <foo>
#define FOO BAR
because that's how it's done in C.
In preparation for warning about such cases remove all existing
comments that fake directives.
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/freebsd/capsicum.txt | 3 | ||||
| -rw-r--r-- | sys/linux/dev_infiniband_rdma.txt | 1 | ||||
| -rw-r--r-- | sys/linux/sys.txt | 39 | ||||
| -rw-r--r-- | sys/openbsd/socket_inet6.txt | 1 | ||||
| -rw-r--r-- | sys/openbsd/socket_unix.txt | 1 |
5 files changed, 19 insertions, 26 deletions
diff --git a/sys/freebsd/capsicum.txt b/sys/freebsd/capsicum.txt index 142c03027..1cd188229 100644 --- a/sys/freebsd/capsicum.txt +++ b/sys/freebsd/capsicum.txt @@ -1,9 +1,6 @@ # Copyright 2020 syzkaller project authors. All rights reserved. # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. -#include <sys/types.h> -#include <sys/capsicum.h> - cap_enter() cap_getmode(mode ptr[out, int32]) cap_rights_limit(fd fd, rights ptr[in, array[int64, 2]]) diff --git a/sys/linux/dev_infiniband_rdma.txt b/sys/linux/dev_infiniband_rdma.txt index 8375cb591..72178cbc7 100644 --- a/sys/linux/dev_infiniband_rdma.txt +++ b/sys/linux/dev_infiniband_rdma.txt @@ -31,7 +31,6 @@ type ah_handle int32 type mr_lkey int32 type qp_number int32 -# defines define IB_USER_VERBS_EX_CMD_QUERY_DEVICE 0x80000001 define IB_USER_VERBS_EX_CMD_CREATE_FLOW 0x80000032 define IB_USER_VERBS_EX_CMD_DESTROY_FLOW 0x80000033 diff --git a/sys/linux/sys.txt b/sys/linux/sys.txt index 39ae0501c..2b2756ea5 100644 --- a/sys/linux/sys.txt +++ b/sys/linux/sys.txt @@ -1303,23 +1303,22 @@ _ = KCOV_INIT_TRACE, KCOV_ENABLE, KCOV_DISABLE, KCOV_TRACE_PC, KCOV_TRACE_CMP, P # Hardcode KCOV_REMOTE_ENABLE value for amd64 until new kcov patches reach mainline. define KCOV_REMOTE_ENABLE 1075340134 -# Not yet implemented syscalls -#define __NR_umask 95 -#define __NR_vhangup 153 -#define __NR__sysctl 156 -#define __NR_adjtimex 159 -#define __NR_swapon 167 -#define __NR_swapoff 168 -#define __NR_quotactl 179 -#define __NR_nfsservctl 180 -#define __NR_getcpu 309 - -# Probably no sense in calling there. -# Also affect system-wide state, so not reproducble anyway. -#define __NR_gettimeofday 96 -#define __NR_settimeofday 164 -#define __NR_reboot 169 -#define __NR_sethostname 170 -#define __NR_setdomainname 171 -#define __NR_sched_get_priority_max 146 -#define __NR_sched_get_priority_min 147 +# Not yet implemented syscalls: +# umask +# vhangup +# _sysctl +# adjtimex +# swapon +# swapoff +# nfsservctl +# getcpu + +# Probably no sense in calling these. +# Also affect system-wide state, so not reproducible anyway. +# gettimeofday +# settimeofday +# reboot +# sethostname +# setdomainname +# sched_get_priority_max +# sched_get_priority_min diff --git a/sys/openbsd/socket_inet6.txt b/sys/openbsd/socket_inet6.txt index 7eb456622..d2ae21cab 100644 --- a/sys/openbsd/socket_inet6.txt +++ b/sys/openbsd/socket_inet6.txt @@ -7,7 +7,6 @@ include <sys/socket.h> include <netinet/in.h> include <net/route.h> include <netinet6/ip6_mroute.h> -# include <compat/linux/common/linux_socket.h> include <sys/sockio.h> # IPv6 sockets diff --git a/sys/openbsd/socket_unix.txt b/sys/openbsd/socket_unix.txt index 770f23eb7..7fe0601dc 100644 --- a/sys/openbsd/socket_unix.txt +++ b/sys/openbsd/socket_unix.txt @@ -6,7 +6,6 @@ include <sys/types.h> include <sys/socket.h> include <netinet/in.h> -# include <compat/linux/common/linux_socket.h> resource sock_unix[sock] |
