vendor/golang.org/x/sys/unix/mkerrors.sh
changeset 256 6d9efbef00a9
parent 251 1c52a0eeb952
child 260 445e01aede7e
equal deleted inserted replaced
255:4f153a23adab 256:6d9efbef00a9
    54 
    54 
    55 includes_Darwin='
    55 includes_Darwin='
    56 #define _DARWIN_C_SOURCE
    56 #define _DARWIN_C_SOURCE
    57 #define KERNEL
    57 #define KERNEL
    58 #define _DARWIN_USE_64_BIT_INODE
    58 #define _DARWIN_USE_64_BIT_INODE
       
    59 #define __APPLE_USE_RFC_3542
    59 #include <stdint.h>
    60 #include <stdint.h>
    60 #include <sys/attr.h>
    61 #include <sys/attr.h>
       
    62 #include <sys/clonefile.h>
       
    63 #include <sys/kern_control.h>
    61 #include <sys/types.h>
    64 #include <sys/types.h>
    62 #include <sys/event.h>
    65 #include <sys/event.h>
    63 #include <sys/ptrace.h>
    66 #include <sys/ptrace.h>
    64 #include <sys/select.h>
    67 #include <sys/select.h>
    65 #include <sys/socket.h>
    68 #include <sys/socket.h>
       
    69 #include <sys/un.h>
    66 #include <sys/sockio.h>
    70 #include <sys/sockio.h>
       
    71 #include <sys/sys_domain.h>
    67 #include <sys/sysctl.h>
    72 #include <sys/sysctl.h>
    68 #include <sys/mman.h>
    73 #include <sys/mman.h>
    69 #include <sys/mount.h>
    74 #include <sys/mount.h>
    70 #include <sys/utsname.h>
    75 #include <sys/utsname.h>
    71 #include <sys/wait.h>
    76 #include <sys/wait.h>
    91 #include <sys/mount.h>
    96 #include <sys/mount.h>
    92 #include <sys/wait.h>
    97 #include <sys/wait.h>
    93 #include <sys/ioctl.h>
    98 #include <sys/ioctl.h>
    94 #include <net/bpf.h>
    99 #include <net/bpf.h>
    95 #include <net/if.h>
   100 #include <net/if.h>
       
   101 #include <net/if_clone.h>
    96 #include <net/if_types.h>
   102 #include <net/if_types.h>
    97 #include <net/route.h>
   103 #include <net/route.h>
    98 #include <netinet/in.h>
   104 #include <netinet/in.h>
    99 #include <termios.h>
   105 #include <termios.h>
   100 #include <netinet/ip.h>
   106 #include <netinet/ip.h>
   103 
   109 
   104 includes_FreeBSD='
   110 includes_FreeBSD='
   105 #include <sys/capsicum.h>
   111 #include <sys/capsicum.h>
   106 #include <sys/param.h>
   112 #include <sys/param.h>
   107 #include <sys/types.h>
   113 #include <sys/types.h>
       
   114 #include <sys/disk.h>
   108 #include <sys/event.h>
   115 #include <sys/event.h>
       
   116 #include <sys/sched.h>
   109 #include <sys/select.h>
   117 #include <sys/select.h>
   110 #include <sys/socket.h>
   118 #include <sys/socket.h>
       
   119 #include <sys/un.h>
   111 #include <sys/sockio.h>
   120 #include <sys/sockio.h>
   112 #include <sys/stat.h>
   121 #include <sys/stat.h>
   113 #include <sys/sysctl.h>
   122 #include <sys/sysctl.h>
   114 #include <sys/mman.h>
   123 #include <sys/mman.h>
   115 #include <sys/mount.h>
   124 #include <sys/mount.h>
   184 #include <sys/types.h>
   193 #include <sys/types.h>
   185 #include <sys/time.h>
   194 #include <sys/time.h>
   186 #include <sys/select.h>
   195 #include <sys/select.h>
   187 #include <sys/signalfd.h>
   196 #include <sys/signalfd.h>
   188 #include <sys/socket.h>
   197 #include <sys/socket.h>
       
   198 #include <sys/timerfd.h>
   189 #include <sys/uio.h>
   199 #include <sys/uio.h>
   190 #include <sys/xattr.h>
   200 #include <sys/xattr.h>
   191 #include <linux/bpf.h>
   201 #include <linux/bpf.h>
   192 #include <linux/can.h>
   202 #include <linux/can.h>
       
   203 #include <linux/can/error.h>
       
   204 #include <linux/can/raw.h>
   193 #include <linux/capability.h>
   205 #include <linux/capability.h>
   194 #include <linux/cryptouser.h>
   206 #include <linux/cryptouser.h>
   195 #include <linux/devlink.h>
   207 #include <linux/devlink.h>
       
   208 #include <linux/dm-ioctl.h>
   196 #include <linux/errqueue.h>
   209 #include <linux/errqueue.h>
       
   210 #include <linux/ethtool_netlink.h>
   197 #include <linux/falloc.h>
   211 #include <linux/falloc.h>
   198 #include <linux/fanotify.h>
   212 #include <linux/fanotify.h>
   199 #include <linux/filter.h>
   213 #include <linux/filter.h>
   200 #include <linux/fs.h>
   214 #include <linux/fs.h>
   201 #include <linux/fscrypt.h>
   215 #include <linux/fscrypt.h>
       
   216 #include <linux/fsverity.h>
   202 #include <linux/genetlink.h>
   217 #include <linux/genetlink.h>
   203 #include <linux/hdreg.h>
   218 #include <linux/hdreg.h>
       
   219 #include <linux/hidraw.h>
       
   220 #include <linux/icmp.h>
   204 #include <linux/icmpv6.h>
   221 #include <linux/icmpv6.h>
   205 #include <linux/if.h>
   222 #include <linux/if.h>
   206 #include <linux/if_addr.h>
   223 #include <linux/if_addr.h>
   207 #include <linux/if_alg.h>
   224 #include <linux/if_alg.h>
   208 #include <linux/if_arp.h>
   225 #include <linux/if_arp.h>
   209 #include <linux/if_ether.h>
   226 #include <linux/if_ether.h>
   210 #include <linux/if_ppp.h>
   227 #include <linux/if_ppp.h>
   211 #include <linux/if_tun.h>
   228 #include <linux/if_tun.h>
   212 #include <linux/if_packet.h>
   229 #include <linux/if_packet.h>
   213 #include <linux/if_xdp.h>
   230 #include <linux/if_xdp.h>
       
   231 #include <linux/input.h>
   214 #include <linux/kexec.h>
   232 #include <linux/kexec.h>
   215 #include <linux/keyctl.h>
   233 #include <linux/keyctl.h>
   216 #include <linux/loop.h>
   234 #include <linux/loop.h>
       
   235 #include <linux/lwtunnel.h>
   217 #include <linux/magic.h>
   236 #include <linux/magic.h>
   218 #include <linux/memfd.h>
   237 #include <linux/memfd.h>
   219 #include <linux/module.h>
   238 #include <linux/module.h>
   220 #include <linux/netfilter/nfnetlink.h>
   239 #include <linux/netfilter/nfnetlink.h>
   221 #include <linux/netlink.h>
   240 #include <linux/netlink.h>
   222 #include <linux/net_namespace.h>
   241 #include <linux/net_namespace.h>
       
   242 #include <linux/nfc.h>
   223 #include <linux/nsfs.h>
   243 #include <linux/nsfs.h>
   224 #include <linux/perf_event.h>
   244 #include <linux/perf_event.h>
       
   245 #include <linux/pps.h>
   225 #include <linux/ptrace.h>
   246 #include <linux/ptrace.h>
   226 #include <linux/random.h>
   247 #include <linux/random.h>
   227 #include <linux/reboot.h>
   248 #include <linux/reboot.h>
   228 #include <linux/rtc.h>
   249 #include <linux/rtc.h>
   229 #include <linux/rtnetlink.h>
   250 #include <linux/rtnetlink.h>
   236 #include <linux/vm_sockets.h>
   257 #include <linux/vm_sockets.h>
   237 #include <linux/wait.h>
   258 #include <linux/wait.h>
   238 #include <linux/watchdog.h>
   259 #include <linux/watchdog.h>
   239 
   260 
   240 #include <mtd/ubi-user.h>
   261 #include <mtd/ubi-user.h>
       
   262 #include <mtd/mtd-user.h>
   241 #include <net/route.h>
   263 #include <net/route.h>
   242 
   264 
   243 #if defined(__sparc__)
   265 #if defined(__sparc__)
   244 // On sparc{,64}, the kernel defines struct termios2 itself which clashes with the
   266 // On sparc{,64}, the kernel defines struct termios2 itself which clashes with the
   245 // definition in glibc. As only the error constants are needed here, include the
   267 // definition in glibc. As only the error constants are needed here, include the
   278 
   300 
   279 // The code generator produces -0x1 for (~0), but an unsigned value is necessary
   301 // The code generator produces -0x1 for (~0), but an unsigned value is necessary
   280 // for the tipc_subscr timeout __u32 field.
   302 // for the tipc_subscr timeout __u32 field.
   281 #undef TIPC_WAIT_FOREVER
   303 #undef TIPC_WAIT_FOREVER
   282 #define TIPC_WAIT_FOREVER 0xffffffff
   304 #define TIPC_WAIT_FOREVER 0xffffffff
       
   305 
       
   306 // Copied from linux/l2tp.h
       
   307 // Including linux/l2tp.h here causes conflicts between linux/in.h
       
   308 // and netinet/in.h included via net/route.h above.
       
   309 #define IPPROTO_L2TP		115
       
   310 
       
   311 // Copied from linux/hid.h.
       
   312 // Keep in sync with the size of the referenced fields.
       
   313 #define _HIDIOCGRAWNAME_LEN	128 // sizeof_field(struct hid_device, name)
       
   314 #define _HIDIOCGRAWPHYS_LEN	64  // sizeof_field(struct hid_device, phys)
       
   315 #define _HIDIOCGRAWUNIQ_LEN	64  // sizeof_field(struct hid_device, uniq)
       
   316 
       
   317 #define _HIDIOCGRAWNAME		HIDIOCGRAWNAME(_HIDIOCGRAWNAME_LEN)
       
   318 #define _HIDIOCGRAWPHYS		HIDIOCGRAWPHYS(_HIDIOCGRAWPHYS_LEN)
       
   319 #define _HIDIOCGRAWUNIQ		HIDIOCGRAWUNIQ(_HIDIOCGRAWUNIQ_LEN)
       
   320 
   283 '
   321 '
   284 
   322 
   285 includes_NetBSD='
   323 includes_NetBSD='
   286 #include <sys/types.h>
   324 #include <sys/types.h>
   287 #include <sys/param.h>
   325 #include <sys/param.h>
   288 #include <sys/event.h>
   326 #include <sys/event.h>
   289 #include <sys/extattr.h>
   327 #include <sys/extattr.h>
   290 #include <sys/mman.h>
   328 #include <sys/mman.h>
   291 #include <sys/mount.h>
   329 #include <sys/mount.h>
       
   330 #include <sys/sched.h>
   292 #include <sys/select.h>
   331 #include <sys/select.h>
   293 #include <sys/socket.h>
   332 #include <sys/socket.h>
   294 #include <sys/sockio.h>
   333 #include <sys/sockio.h>
   295 #include <sys/sysctl.h>
   334 #include <sys/sysctl.h>
   296 #include <sys/termios.h>
   335 #include <sys/termios.h>
   315 #include <sys/param.h>
   354 #include <sys/param.h>
   316 #include <sys/event.h>
   355 #include <sys/event.h>
   317 #include <sys/mman.h>
   356 #include <sys/mman.h>
   318 #include <sys/mount.h>
   357 #include <sys/mount.h>
   319 #include <sys/select.h>
   358 #include <sys/select.h>
       
   359 #include <sys/sched.h>
   320 #include <sys/socket.h>
   360 #include <sys/socket.h>
   321 #include <sys/sockio.h>
   361 #include <sys/sockio.h>
   322 #include <sys/stat.h>
   362 #include <sys/stat.h>
   323 #include <sys/sysctl.h>
   363 #include <sys/sysctl.h>
   324 #include <sys/termios.h>
   364 #include <sys/termios.h>
   355 #include <sys/types.h>
   395 #include <sys/types.h>
   356 #include <sys/select.h>
   396 #include <sys/select.h>
   357 #include <sys/socket.h>
   397 #include <sys/socket.h>
   358 #include <sys/sockio.h>
   398 #include <sys/sockio.h>
   359 #include <sys/stat.h>
   399 #include <sys/stat.h>
       
   400 #include <sys/stream.h>
   360 #include <sys/mman.h>
   401 #include <sys/mman.h>
   361 #include <sys/wait.h>
   402 #include <sys/wait.h>
   362 #include <sys/ioctl.h>
   403 #include <sys/ioctl.h>
   363 #include <sys/mkdev.h>
   404 #include <sys/mkdev.h>
   364 #include <net/bpf.h>
   405 #include <net/bpf.h>
   365 #include <net/if.h>
   406 #include <net/if.h>
   366 #include <net/if_arp.h>
   407 #include <net/if_arp.h>
   367 #include <net/if_types.h>
   408 #include <net/if_types.h>
   368 #include <net/route.h>
   409 #include <net/route.h>
       
   410 #include <netinet/icmp6.h>
   369 #include <netinet/in.h>
   411 #include <netinet/in.h>
   370 #include <termios.h>
       
   371 #include <netinet/ip.h>
   412 #include <netinet/ip.h>
   372 #include <netinet/ip_mroute.h>
   413 #include <netinet/ip_mroute.h>
       
   414 #include <termios.h>
   373 '
   415 '
   374 
   416 
   375 
   417 
   376 includes='
   418 includes='
   377 #include <sys/types.h>
   419 #include <sys/types.h>
   422 		$2 !~ /^ECCAPBITS/ &&
   464 		$2 !~ /^ECCAPBITS/ &&
   423 		$2 !~ /^ETH_/ &&
   465 		$2 !~ /^ETH_/ &&
   424 		$2 !~ /^EPROC_/ &&
   466 		$2 !~ /^EPROC_/ &&
   425 		$2 !~ /^EQUIV_/ &&
   467 		$2 !~ /^EQUIV_/ &&
   426 		$2 !~ /^EXPR_/ &&
   468 		$2 !~ /^EXPR_/ &&
       
   469 		$2 !~ /^EVIOC/ &&
       
   470 		$2 !~ /^EV_/ &&
   427 		$2 ~ /^E[A-Z0-9_]+$/ ||
   471 		$2 ~ /^E[A-Z0-9_]+$/ ||
   428 		$2 ~ /^B[0-9_]+$/ ||
   472 		$2 ~ /^B[0-9_]+$/ ||
   429 		$2 ~ /^(OLD|NEW)DEV$/ ||
   473 		$2 ~ /^(OLD|NEW)DEV$/ ||
   430 		$2 == "BOTHER" ||
   474 		$2 == "BOTHER" ||
   431 		$2 ~ /^CI?BAUD(EX)?$/ ||
   475 		$2 ~ /^CI?BAUD(EX)?$/ ||
   456 		$2 ~ /^TC[IO](ON|OFF)$/ ||
   500 		$2 ~ /^TC[IO](ON|OFF)$/ ||
   457 		$2 ~ /^IN_/ ||
   501 		$2 ~ /^IN_/ ||
   458 		$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
   502 		$2 ~ /^LOCK_(SH|EX|NB|UN)$/ ||
   459 		$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
   503 		$2 ~ /^LO_(KEY|NAME)_SIZE$/ ||
   460 		$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
   504 		$2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ ||
   461 		$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|ICMP6|TCP|MCAST|EVFILT|NOTE|EV|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR)_/ ||
   505 		$2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL)_/ ||
       
   506 		$2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ ||
       
   507 		$2 ~ /^NFC_.*_(MAX)?SIZE$/ ||
       
   508 		$2 ~ /^RAW_PAYLOAD_/ ||
   462 		$2 ~ /^TP_STATUS_/ ||
   509 		$2 ~ /^TP_STATUS_/ ||
   463 		$2 ~ /^FALLOC_/ ||
   510 		$2 ~ /^FALLOC_/ ||
   464 		$2 == "ICMPV6_FILTER" ||
   511 		$2 ~ /^ICMPV?6?_(FILTER|SEC)/ ||
   465 		$2 == "SOMAXCONN" ||
   512 		$2 == "SOMAXCONN" ||
   466 		$2 == "NAME_MAX" ||
   513 		$2 == "NAME_MAX" ||
   467 		$2 == "IFNAMSIZ" ||
   514 		$2 == "IFNAMSIZ" ||
   468 		$2 ~ /^CTL_(HW|KERN|MAXNAME|NET|QUERY)$/ ||
   515 		$2 ~ /^CTL_(HW|KERN|MAXNAME|NET|QUERY)$/ ||
   469 		$2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ ||
   516 		$2 ~ /^KERN_(HOSTNAME|OS(RELEASE|TYPE)|VERSION)$/ ||
   471 		$2 ~ /^SYSCTL_VERS/ ||
   518 		$2 ~ /^SYSCTL_VERS/ ||
   472 		$2 !~ "MNT_BITS" &&
   519 		$2 !~ "MNT_BITS" &&
   473 		$2 ~ /^(MS|MNT|UMOUNT)_/ ||
   520 		$2 ~ /^(MS|MNT|UMOUNT)_/ ||
   474 		$2 ~ /^NS_GET_/ ||
   521 		$2 ~ /^NS_GET_/ ||
   475 		$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
   522 		$2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ ||
   476 		$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ ||
   523 		$2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT|TFD)_/ ||
   477 		$2 ~ /^KEXEC_/ ||
   524 		$2 ~ /^KEXEC_/ ||
   478 		$2 ~ /^LINUX_REBOOT_CMD_/ ||
   525 		$2 ~ /^LINUX_REBOOT_CMD_/ ||
   479 		$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
   526 		$2 ~ /^LINUX_REBOOT_MAGIC[12]$/ ||
   480 		$2 ~ /^MODULE_INIT_/ ||
   527 		$2 ~ /^MODULE_INIT_/ ||
   481 		$2 !~ "NLA_TYPE_MASK" &&
   528 		$2 !~ "NLA_TYPE_MASK" &&
       
   529 		$2 !~ /^RTC_VL_(ACCURACY|BACKUP|DATA)/ &&
   482 		$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
   530 		$2 ~ /^(NETLINK|NLM|NLMSG|NLA|IFA|IFAN|RT|RTC|RTCF|RTN|RTPROT|RTNH|ARPHRD|ETH_P|NETNSA)_/ ||
       
   531 		$2 ~ /^FIORDCHK$/ ||
   483 		$2 ~ /^SIOC/ ||
   532 		$2 ~ /^SIOC/ ||
   484 		$2 ~ /^TIOC/ ||
   533 		$2 ~ /^TIOC/ ||
   485 		$2 ~ /^TCGET/ ||
   534 		$2 ~ /^TCGET/ ||
   486 		$2 ~ /^TCSET/ ||
   535 		$2 ~ /^TCSET/ ||
   487 		$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
   536 		$2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
   488 		$2 !~ "RTF_BITS" &&
   537 		$2 !~ "RTF_BITS" &&
   489 		$2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ ||
   538 		$2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ ||
   490 		$2 ~ /^BIOC/ ||
   539 		$2 ~ /^BIOC/ ||
       
   540 		$2 ~ /^DIOC/ ||
   491 		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
   541 		$2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
   492 		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
   542 		$2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
   493 		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
   543 		$2 ~ /^PRIO_(PROCESS|PGRP|USER)/ ||
   494 		$2 ~ /^CLONE_[A-Z_]+/ ||
   544 		$2 ~ /^CLONE_[A-Z_]+/ ||
   495 		$2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+)$/ &&
   545 		$2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+)$/ &&
   496 		$2 ~ /^(BPF|DLT)_/ ||
   546 		$2 ~ /^(BPF|DLT)_/ ||
   497 		$2 ~ /^(CLOCK|TIMER)_/ ||
   547 		$2 ~ /^(CLOCK|TIMER)_/ ||
   498 		$2 ~ /^CAN_/ ||
   548 		$2 ~ /^CAN_/ ||
   499 		$2 ~ /^CAP_/ ||
   549 		$2 ~ /^CAP_/ ||
       
   550 		$2 ~ /^CP_/ ||
       
   551 		$2 ~ /^CPUSTATES$/ ||
       
   552 		$2 ~ /^CTLIOCGINFO$/ ||
   500 		$2 ~ /^ALG_/ ||
   553 		$2 ~ /^ALG_/ ||
       
   554 		$2 ~ /^FI(CLONE|DEDUPERANGE)/ ||
   501 		$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ ||
   555 		$2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ ||
   502 		$2 ~ /^FS_IOC_.*ENCRYPTION/ ||
   556 		$2 ~ /^FS_IOC_.*(ENCRYPTION|VERITY|[GS]ETFLAGS)/ ||
       
   557 		$2 ~ /^FS_VERITY_/ ||
   503 		$2 ~ /^FSCRYPT_/ ||
   558 		$2 ~ /^FSCRYPT_/ ||
       
   559 		$2 ~ /^DM_/ ||
   504 		$2 ~ /^GRND_/ ||
   560 		$2 ~ /^GRND_/ ||
   505 		$2 ~ /^RND/ ||
   561 		$2 ~ /^RND/ ||
   506 		$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
   562 		$2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
   507 		$2 ~ /^KEYCTL_/ ||
   563 		$2 ~ /^KEYCTL_/ ||
   508 		$2 ~ /^PERF_EVENT_IOC_/ ||
   564 		$2 ~ /^PERF_/ ||
   509 		$2 ~ /^SECCOMP_MODE_/ ||
   565 		$2 ~ /^SECCOMP_MODE_/ ||
       
   566 		$2 ~ /^SEEK_/ ||
   510 		$2 ~ /^SPLICE_/ ||
   567 		$2 ~ /^SPLICE_/ ||
   511 		$2 ~ /^SYNC_FILE_RANGE_/ ||
   568 		$2 ~ /^SYNC_FILE_RANGE_/ ||
   512 		$2 !~ /^AUDIT_RECORD_MAGIC/ &&
   569 		$2 !~ /^AUDIT_RECORD_MAGIC/ &&
   513 		$2 !~ /IOC_MAGIC/ &&
   570 		$2 !~ /IOC_MAGIC/ &&
   514 		$2 ~ /^[A-Z][A-Z0-9_]+_MAGIC2?$/ ||
   571 		$2 ~ /^[A-Z][A-Z0-9_]+_MAGIC2?$/ ||
   522 		$2 ~ /^UBI_IOC[A-Z]/ ||
   579 		$2 ~ /^UBI_IOC[A-Z]/ ||
   523 		$2 ~ /^UTIME_/ ||
   580 		$2 ~ /^UTIME_/ ||
   524 		$2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
   581 		$2 ~ /^XATTR_(CREATE|REPLACE|NO(DEFAULT|FOLLOW|SECURITY)|SHOWCOMPRESSION)/ ||
   525 		$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
   582 		$2 ~ /^ATTR_(BIT_MAP_COUNT|(CMN|VOL|FILE)_)/ ||
   526 		$2 ~ /^FSOPT_/ ||
   583 		$2 ~ /^FSOPT_/ ||
   527 		$2 ~ /^WDIOC_/ ||
   584 		$2 ~ /^WDIO[CFS]_/ ||
   528 		$2 ~ /^NFN/ ||
   585 		$2 ~ /^NFN/ ||
   529 		$2 ~ /^XDP_/ ||
   586 		$2 ~ /^XDP_/ ||
   530 		$2 ~ /^RWF_/ ||
   587 		$2 ~ /^RWF_/ ||
   531 		$2 ~ /^(HDIO|WIN|SMART)_/ ||
   588 		$2 ~ /^(HDIO|WIN|SMART)_/ ||
   532 		$2 ~ /^CRYPTO_/ ||
   589 		$2 ~ /^CRYPTO_/ ||
   533 		$2 ~ /^TIPC_/ ||
   590 		$2 ~ /^TIPC_/ ||
       
   591 		$2 !~  "DEVLINK_RELOAD_LIMITS_VALID_MASK" &&
   534 		$2 ~ /^DEVLINK_/ ||
   592 		$2 ~ /^DEVLINK_/ ||
       
   593 		$2 ~ /^ETHTOOL_/ ||
       
   594 		$2 ~ /^LWTUNNEL_IP/ ||
   535 		$2 !~ "WMESGLEN" &&
   595 		$2 !~ "WMESGLEN" &&
   536 		$2 ~ /^W[A-Z0-9]+$/ ||
   596 		$2 ~ /^W[A-Z0-9]+$/ ||
   537 		$2 ~/^PPPIOC/ ||
   597 		$2 ~/^PPPIOC/ ||
   538 		$2 ~ /^FAN_|FANOTIFY_/ ||
   598 		$2 ~ /^FAN_|FANOTIFY_/ ||
       
   599 		$2 == "HID_MAX_DESCRIPTOR_SIZE" ||
       
   600 		$2 ~ /^_?HIDIOC/ ||
       
   601 		$2 ~ /^BUS_(USB|HIL|BLUETOOTH|VIRTUAL)$/ ||
       
   602 		$2 ~ /^MTD/ ||
       
   603 		$2 ~ /^OTP/ ||
       
   604 		$2 ~ /^MEM/ ||
   539 		$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
   605 		$2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
   540 		$2 ~ /^__WCOREFLAG$/ {next}
   606 		$2 ~ /^__WCOREFLAG$/ {next}
   541 		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
   607 		$2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
   542 
   608 
   543 		{next}
   609 		{next}
   571 	sort >_signal.grep
   637 	sort >_signal.grep
   572 
   638 
   573 echo '// mkerrors.sh' "$@"
   639 echo '// mkerrors.sh' "$@"
   574 echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
   640 echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
   575 echo
   641 echo
       
   642 echo "//go:build ${GOARCH} && ${GOOS}"
   576 echo "// +build ${GOARCH},${GOOS}"
   643 echo "// +build ${GOARCH},${GOOS}"
   577 echo
   644 echo
   578 go tool cgo -godefs -- "$@" _const.go >_error.out
   645 go tool cgo -godefs -- "$@" _const.go >_error.out
   579 cat _error.out | grep -vf _error.grep | grep -vf _signal.grep
   646 cat _error.out | grep -vf _error.grep | grep -vf _signal.grep
   580 echo
   647 echo