diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2018-02-13 01:17:35 +0100 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2018-02-13 01:17:35 +0100 |
commit | c32d9bf24c3b670c3a56ea55aeefb6232f3d4ec8 (patch) | |
tree | f9891ff5b851d40c2f48c8e73e36e32197bfcc89 /vendor/golang.org/x/sys/unix/mkerrors.sh | |
parent | 886201867ac7383535c08d81dbabc6c9c77fe855 (diff) |
switch to subcommands
Diffstat (limited to 'vendor/golang.org/x/sys/unix/mkerrors.sh')
-rwxr-xr-x | vendor/golang.org/x/sys/unix/mkerrors.sh | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 22bf41d..4dd40c1 100755 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -38,6 +38,8 @@ includes_Darwin=' #define _DARWIN_C_SOURCE #define KERNEL #define _DARWIN_USE_64_BIT_INODE +#include <stdint.h> +#include <sys/attr.h> #include <sys/types.h> #include <sys/event.h> #include <sys/ptrace.h> @@ -46,6 +48,7 @@ includes_Darwin=' #include <sys/sysctl.h> #include <sys/mman.h> #include <sys/mount.h> +#include <sys/utsname.h> #include <sys/wait.h> #include <net/bpf.h> #include <net/if.h> @@ -84,6 +87,7 @@ includes_FreeBSD=' #include <sys/sockio.h> #include <sys/sysctl.h> #include <sys/mman.h> +#include <sys/mount.h> #include <sys/wait.h> #include <sys/ioctl.h> #include <net/bpf.h> @@ -183,6 +187,8 @@ struct ltchars { #include <linux/vm_sockets.h> #include <linux/taskstats.h> #include <linux/genetlink.h> +#include <linux/stat.h> +#include <linux/watchdog.h> #include <net/route.h> #include <asm/termbits.h> @@ -283,6 +289,7 @@ includes_SunOS=' #include <sys/mman.h> #include <sys/wait.h> #include <sys/ioctl.h> +#include <sys/mkdev.h> #include <net/bpf.h> #include <net/if.h> #include <net/if_arp.h> @@ -347,6 +354,7 @@ ccflags="$@" $2 !~ /^EXPR_/ && $2 ~ /^E[A-Z0-9_]+$/ || $2 ~ /^B[0-9_]+$/ || + $2 ~ /^(OLD|NEW)DEV$/ || $2 == "BOTHER" || $2 ~ /^CI?BAUD(EX)?$/ || $2 == "IBSHIFT" || @@ -380,7 +388,9 @@ ccflags="$@" $2 == "SOMAXCONN" || $2 == "NAME_MAX" || $2 == "IFNAMSIZ" || - $2 ~ /^CTL_(MAXNAME|NET|QUERY)$/ || + $2 ~ /^CTL_(HW|KERN|MAXNAME|NET|QUERY)$/ || + $2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ || + $2 ~ /^HW_MACHINE$/ || $2 ~ /^SYSCTL_VERS/ || $2 ~ /^(MS|MNT|UMOUNT)_/ || $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || @@ -415,9 +425,16 @@ ccflags="$@" $2 ~ /^SECCOMP_MODE_/ || $2 ~ /^SPLICE_/ || $2 ~ /^(VM|VMADDR)_/ || + $2 ~ /^IOCTL_VM_SOCKETS_/ || $2 ~ /^(TASKSTATS|TS)_/ || + $2 ~ /^CGROUPSTATS_/ || $2 ~ /^GENL_/ || + $2 ~ /^STATX_/ || + $2 ~ /^UTIME_/ || $2 ~ /^XATTR_(CREATE|REPLACE)/ || + $2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ || + $2 ~ /^FSOPT_/ || + $2 ~ /^WDIOC_/ || $2 !~ "WMESGLEN" && $2 ~ /^W[A-Z0-9]+$/ || $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} |