aboutsummaryrefslogtreecommitdiff
path: root/vendor/golang.org/x/sys/unix/mkerrors.sh
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/golang.org/x/sys/unix/mkerrors.sh')
-rw-r--r--vendor/golang.org/x/sys/unix/mkerrors.sh60
1 files changed, 42 insertions, 18 deletions
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh
index 85cfbd0..96bf2a9 100644
--- a/vendor/golang.org/x/sys/unix/mkerrors.sh
+++ b/vendor/golang.org/x/sys/unix/mkerrors.sh
@@ -44,6 +44,7 @@ includes_AIX='
44#include <sys/stropts.h> 44#include <sys/stropts.h>
45#include <sys/mman.h> 45#include <sys/mman.h>
46#include <sys/poll.h> 46#include <sys/poll.h>
47#include <sys/select.h>
47#include <sys/termio.h> 48#include <sys/termio.h>
48#include <termios.h> 49#include <termios.h>
49#include <fcntl.h> 50#include <fcntl.h>
@@ -60,6 +61,7 @@ includes_Darwin='
60#include <sys/types.h> 61#include <sys/types.h>
61#include <sys/event.h> 62#include <sys/event.h>
62#include <sys/ptrace.h> 63#include <sys/ptrace.h>
64#include <sys/select.h>
63#include <sys/socket.h> 65#include <sys/socket.h>
64#include <sys/sockio.h> 66#include <sys/sockio.h>
65#include <sys/sysctl.h> 67#include <sys/sysctl.h>
@@ -80,6 +82,7 @@ includes_Darwin='
80includes_DragonFly=' 82includes_DragonFly='
81#include <sys/types.h> 83#include <sys/types.h>
82#include <sys/event.h> 84#include <sys/event.h>
85#include <sys/select.h>
83#include <sys/socket.h> 86#include <sys/socket.h>
84#include <sys/sockio.h> 87#include <sys/sockio.h>
85#include <sys/stat.h> 88#include <sys/stat.h>
@@ -103,6 +106,7 @@ includes_FreeBSD='
103#include <sys/param.h> 106#include <sys/param.h>
104#include <sys/types.h> 107#include <sys/types.h>
105#include <sys/event.h> 108#include <sys/event.h>
109#include <sys/select.h>
106#include <sys/socket.h> 110#include <sys/socket.h>
107#include <sys/sockio.h> 111#include <sys/sockio.h>
108#include <sys/stat.h> 112#include <sys/stat.h>
@@ -179,24 +183,34 @@ struct ltchars {
179#include <sys/stat.h> 183#include <sys/stat.h>
180#include <sys/types.h> 184#include <sys/types.h>
181#include <sys/time.h> 185#include <sys/time.h>
186#include <sys/select.h>
182#include <sys/signalfd.h> 187#include <sys/signalfd.h>
183#include <sys/socket.h> 188#include <sys/socket.h>
189#include <sys/uio.h>
184#include <sys/xattr.h> 190#include <sys/xattr.h>
185#include <linux/bpf.h> 191#include <linux/bpf.h>
192#include <linux/can.h>
186#include <linux/capability.h> 193#include <linux/capability.h>
194#include <linux/cryptouser.h>
195#include <linux/devlink.h>
187#include <linux/errqueue.h> 196#include <linux/errqueue.h>
197#include <linux/falloc.h>
198#include <linux/fanotify.h>
199#include <linux/filter.h>
200#include <linux/fs.h>
201#include <linux/fscrypt.h>
202#include <linux/genetlink.h>
203#include <linux/hdreg.h>
204#include <linux/icmpv6.h>
188#include <linux/if.h> 205#include <linux/if.h>
206#include <linux/if_addr.h>
189#include <linux/if_alg.h> 207#include <linux/if_alg.h>
190#include <linux/if_arp.h> 208#include <linux/if_arp.h>
191#include <linux/if_ether.h> 209#include <linux/if_ether.h>
192#include <linux/if_ppp.h> 210#include <linux/if_ppp.h>
193#include <linux/if_tun.h> 211#include <linux/if_tun.h>
194#include <linux/if_packet.h> 212#include <linux/if_packet.h>
195#include <linux/if_addr.h> 213#include <linux/if_xdp.h>
196#include <linux/falloc.h>
197#include <linux/fanotify.h>
198#include <linux/filter.h>
199#include <linux/fs.h>
200#include <linux/kexec.h> 214#include <linux/kexec.h>
201#include <linux/keyctl.h> 215#include <linux/keyctl.h>
202#include <linux/loop.h> 216#include <linux/loop.h>
@@ -208,25 +222,21 @@ struct ltchars {
208#include <linux/net_namespace.h> 222#include <linux/net_namespace.h>
209#include <linux/nsfs.h> 223#include <linux/nsfs.h>
210#include <linux/perf_event.h> 224#include <linux/perf_event.h>
225#include <linux/ptrace.h>
211#include <linux/random.h> 226#include <linux/random.h>
212#include <linux/reboot.h> 227#include <linux/reboot.h>
228#include <linux/rtc.h>
213#include <linux/rtnetlink.h> 229#include <linux/rtnetlink.h>
214#include <linux/ptrace.h>
215#include <linux/sched.h> 230#include <linux/sched.h>
216#include <linux/seccomp.h> 231#include <linux/seccomp.h>
217#include <linux/sockios.h>
218#include <linux/wait.h>
219#include <linux/icmpv6.h>
220#include <linux/serial.h> 232#include <linux/serial.h>
221#include <linux/can.h> 233#include <linux/sockios.h>
222#include <linux/vm_sockets.h>
223#include <linux/taskstats.h> 234#include <linux/taskstats.h>
224#include <linux/genetlink.h> 235#include <linux/tipc.h>
236#include <linux/vm_sockets.h>
237#include <linux/wait.h>
225#include <linux/watchdog.h> 238#include <linux/watchdog.h>
226#include <linux/hdreg.h> 239
227#include <linux/rtc.h>
228#include <linux/if_xdp.h>
229#include <linux/cryptouser.h>
230#include <mtd/ubi-user.h> 240#include <mtd/ubi-user.h>
231#include <net/route.h> 241#include <net/route.h>
232 242
@@ -265,6 +275,11 @@ struct ltchars {
265#define FS_KEY_DESC_PREFIX "fscrypt:" 275#define FS_KEY_DESC_PREFIX "fscrypt:"
266#define FS_KEY_DESC_PREFIX_SIZE 8 276#define FS_KEY_DESC_PREFIX_SIZE 8
267#define FS_MAX_KEY_SIZE 64 277#define FS_MAX_KEY_SIZE 64
278
279// The code generator produces -0x1 for (~0), but an unsigned value is necessary
280// for the tipc_subscr timeout __u32 field.
281#undef TIPC_WAIT_FOREVER
282#define TIPC_WAIT_FOREVER 0xffffffff
268' 283'
269 284
270includes_NetBSD=' 285includes_NetBSD='
@@ -274,6 +289,7 @@ includes_NetBSD='
274#include <sys/extattr.h> 289#include <sys/extattr.h>
275#include <sys/mman.h> 290#include <sys/mman.h>
276#include <sys/mount.h> 291#include <sys/mount.h>
292#include <sys/select.h>
277#include <sys/socket.h> 293#include <sys/socket.h>
278#include <sys/sockio.h> 294#include <sys/sockio.h>
279#include <sys/sysctl.h> 295#include <sys/sysctl.h>
@@ -300,6 +316,7 @@ includes_OpenBSD='
300#include <sys/event.h> 316#include <sys/event.h>
301#include <sys/mman.h> 317#include <sys/mman.h>
302#include <sys/mount.h> 318#include <sys/mount.h>
319#include <sys/select.h>
303#include <sys/socket.h> 320#include <sys/socket.h>
304#include <sys/sockio.h> 321#include <sys/sockio.h>
305#include <sys/stat.h> 322#include <sys/stat.h>
@@ -336,6 +353,7 @@ includes_OpenBSD='
336includes_SunOS=' 353includes_SunOS='
337#include <limits.h> 354#include <limits.h>
338#include <sys/types.h> 355#include <sys/types.h>
356#include <sys/select.h>
339#include <sys/socket.h> 357#include <sys/socket.h>
340#include <sys/sockio.h> 358#include <sys/sockio.h>
341#include <sys/stat.h> 359#include <sys/stat.h>
@@ -428,6 +446,7 @@ ccflags="$@"
428 $2 == "XCASE" || 446 $2 == "XCASE" ||
429 $2 == "ALTWERASE" || 447 $2 == "ALTWERASE" ||
430 $2 == "NOKERNINFO" || 448 $2 == "NOKERNINFO" ||
449 $2 == "NFDBITS" ||
431 $2 ~ /^PAR/ || 450 $2 ~ /^PAR/ ||
432 $2 ~ /^SIG[^_]/ || 451 $2 ~ /^SIG[^_]/ ||
433 $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ || 452 $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
@@ -467,7 +486,7 @@ ccflags="$@"
467 $2 ~ /^TCSET/ || 486 $2 ~ /^TCSET/ ||
468 $2 ~ /^TC(FLSH|SBRKP?|XONC)$/ || 487 $2 ~ /^TC(FLSH|SBRKP?|XONC)$/ ||
469 $2 !~ "RTF_BITS" && 488 $2 !~ "RTF_BITS" &&
470 $2 ~ /^(IFF|IFT|NET_RT|RTM|RTF|RTV|RTA|RTAX)_/ || 489 $2 ~ /^(IFF|IFT|NET_RT|RTM(GRP)?|RTF|RTV|RTA|RTAX)_/ ||
471 $2 ~ /^BIOC/ || 490 $2 ~ /^BIOC/ ||
472 $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ || 491 $2 ~ /^RUSAGE_(SELF|CHILDREN|THREAD)/ ||
473 $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ || 492 $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ ||
@@ -479,7 +498,9 @@ ccflags="$@"
479 $2 ~ /^CAN_/ || 498 $2 ~ /^CAN_/ ||
480 $2 ~ /^CAP_/ || 499 $2 ~ /^CAP_/ ||
481 $2 ~ /^ALG_/ || 500 $2 ~ /^ALG_/ ||
482 $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ || 501 $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE)/ ||
502 $2 ~ /^FS_IOC_.*ENCRYPTION/ ||
503 $2 ~ /^FSCRYPT_/ ||
483 $2 ~ /^GRND_/ || 504 $2 ~ /^GRND_/ ||
484 $2 ~ /^RND/ || 505 $2 ~ /^RND/ ||
485 $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || 506 $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ ||
@@ -506,8 +527,11 @@ ccflags="$@"
506 $2 ~ /^WDIOC_/ || 527 $2 ~ /^WDIOC_/ ||
507 $2 ~ /^NFN/ || 528 $2 ~ /^NFN/ ||
508 $2 ~ /^XDP_/ || 529 $2 ~ /^XDP_/ ||
530 $2 ~ /^RWF_/ ||
509 $2 ~ /^(HDIO|WIN|SMART)_/ || 531 $2 ~ /^(HDIO|WIN|SMART)_/ ||
510 $2 ~ /^CRYPTO_/ || 532 $2 ~ /^CRYPTO_/ ||
533 $2 ~ /^TIPC_/ ||
534 $2 ~ /^DEVLINK_/ ||
511 $2 !~ "WMESGLEN" && 535 $2 !~ "WMESGLEN" &&
512 $2 ~ /^W[A-Z0-9]+$/ || 536 $2 ~ /^W[A-Z0-9]+$/ ||
513 $2 ~/^PPPIOC/ || 537 $2 ~/^PPPIOC/ ||