diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/golang.org/x/sys/unix/mkerrors.sh | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/golang.org/x/sys/unix/mkerrors.sh')
-rw-r--r-- | vendor/golang.org/x/sys/unix/mkerrors.sh | 43 |
1 files changed, 24 insertions, 19 deletions
diff --git a/vendor/golang.org/x/sys/unix/mkerrors.sh b/vendor/golang.org/x/sys/unix/mkerrors.sh index 73e179a..b3c33c2 100644 --- a/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vendor/golang.org/x/sys/unix/mkerrors.sh | |||
@@ -17,12 +17,10 @@ if test -z "$GOARCH" -o -z "$GOOS"; then | |||
17 | fi | 17 | fi |
18 | 18 | ||
19 | # Check that we are using the new build system if we should | 19 | # Check that we are using the new build system if we should |
20 | if [[ "$GOOS" = "linux" ]] && [[ "$GOARCH" != "sparc64" ]]; then | 20 | if [[ "$GOOS" = "linux" ]] && [[ "$GOLANG_SYS_BUILD" != "docker" ]]; then |
21 | if [[ "$GOLANG_SYS_BUILD" != "docker" ]]; then | 21 | echo 1>&2 "In the Docker based build system, mkerrors should not be called directly." |
22 | echo 1>&2 "In the new build system, mkerrors should not be called directly." | 22 | echo 1>&2 "See README.md" |
23 | echo 1>&2 "See README.md" | 23 | exit 1 |
24 | exit 1 | ||
25 | fi | ||
26 | fi | 24 | fi |
27 | 25 | ||
28 | if [[ "$GOOS" = "aix" ]]; then | 26 | if [[ "$GOOS" = "aix" ]]; then |
@@ -101,7 +99,7 @@ includes_DragonFly=' | |||
101 | ' | 99 | ' |
102 | 100 | ||
103 | includes_FreeBSD=' | 101 | includes_FreeBSD=' |
104 | #include <sys/capability.h> | 102 | #include <sys/capsicum.h> |
105 | #include <sys/param.h> | 103 | #include <sys/param.h> |
106 | #include <sys/types.h> | 104 | #include <sys/types.h> |
107 | #include <sys/event.h> | 105 | #include <sys/event.h> |
@@ -181,16 +179,20 @@ struct ltchars { | |||
181 | #include <sys/stat.h> | 179 | #include <sys/stat.h> |
182 | #include <sys/types.h> | 180 | #include <sys/types.h> |
183 | #include <sys/time.h> | 181 | #include <sys/time.h> |
182 | #include <sys/signalfd.h> | ||
184 | #include <sys/socket.h> | 183 | #include <sys/socket.h> |
185 | #include <sys/xattr.h> | 184 | #include <sys/xattr.h> |
185 | #include <linux/errqueue.h> | ||
186 | #include <linux/if.h> | 186 | #include <linux/if.h> |
187 | #include <linux/if_alg.h> | 187 | #include <linux/if_alg.h> |
188 | #include <linux/if_arp.h> | 188 | #include <linux/if_arp.h> |
189 | #include <linux/if_ether.h> | 189 | #include <linux/if_ether.h> |
190 | #include <linux/if_ppp.h> | ||
190 | #include <linux/if_tun.h> | 191 | #include <linux/if_tun.h> |
191 | #include <linux/if_packet.h> | 192 | #include <linux/if_packet.h> |
192 | #include <linux/if_addr.h> | 193 | #include <linux/if_addr.h> |
193 | #include <linux/falloc.h> | 194 | #include <linux/falloc.h> |
195 | #include <linux/fanotify.h> | ||
194 | #include <linux/filter.h> | 196 | #include <linux/filter.h> |
195 | #include <linux/fs.h> | 197 | #include <linux/fs.h> |
196 | #include <linux/kexec.h> | 198 | #include <linux/kexec.h> |
@@ -220,9 +222,18 @@ struct ltchars { | |||
220 | #include <linux/hdreg.h> | 222 | #include <linux/hdreg.h> |
221 | #include <linux/rtc.h> | 223 | #include <linux/rtc.h> |
222 | #include <linux/if_xdp.h> | 224 | #include <linux/if_xdp.h> |
225 | #include <linux/cryptouser.h> | ||
223 | #include <mtd/ubi-user.h> | 226 | #include <mtd/ubi-user.h> |
224 | #include <net/route.h> | 227 | #include <net/route.h> |
228 | |||
229 | #if defined(__sparc__) | ||
230 | // On sparc{,64}, the kernel defines struct termios2 itself which clashes with the | ||
231 | // definition in glibc. As only the error constants are needed here, include the | ||
232 | // generic termibits.h (which is included by termbits.h on sparc). | ||
233 | #include <asm-generic/termbits.h> | ||
234 | #else | ||
225 | #include <asm/termbits.h> | 235 | #include <asm/termbits.h> |
236 | #endif | ||
226 | 237 | ||
227 | #ifndef MSG_FASTOPEN | 238 | #ifndef MSG_FASTOPEN |
228 | #define MSG_FASTOPEN 0x20000000 | 239 | #define MSG_FASTOPEN 0x20000000 |
@@ -250,16 +261,6 @@ struct ltchars { | |||
250 | #define FS_KEY_DESC_PREFIX "fscrypt:" | 261 | #define FS_KEY_DESC_PREFIX "fscrypt:" |
251 | #define FS_KEY_DESC_PREFIX_SIZE 8 | 262 | #define FS_KEY_DESC_PREFIX_SIZE 8 |
252 | #define FS_MAX_KEY_SIZE 64 | 263 | #define FS_MAX_KEY_SIZE 64 |
253 | |||
254 | // XDP socket constants do not appear to be picked up otherwise. | ||
255 | // Copied from samples/bpf/xdpsock_user.c. | ||
256 | #ifndef SOL_XDP | ||
257 | #define SOL_XDP 283 | ||
258 | #endif | ||
259 | |||
260 | #ifndef AF_XDP | ||
261 | #define AF_XDP 44 | ||
262 | #endif | ||
263 | ' | 264 | ' |
264 | 265 | ||
265 | includes_NetBSD=' | 266 | includes_NetBSD=' |
@@ -446,7 +447,7 @@ ccflags="$@" | |||
446 | $2 !~ "MNT_BITS" && | 447 | $2 !~ "MNT_BITS" && |
447 | $2 ~ /^(MS|MNT|UMOUNT)_/ || | 448 | $2 ~ /^(MS|MNT|UMOUNT)_/ || |
448 | $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || | 449 | $2 ~ /^TUN(SET|GET|ATTACH|DETACH)/ || |
449 | $2 ~ /^(O|F|E?FD|NAME|S|PTRACE|PT)_/ || | 450 | $2 ~ /^(O|F|[ES]?FD|NAME|S|PTRACE|PT)_/ || |
450 | $2 ~ /^KEXEC_/ || | 451 | $2 ~ /^KEXEC_/ || |
451 | $2 ~ /^LINUX_REBOOT_CMD_/ || | 452 | $2 ~ /^LINUX_REBOOT_CMD_/ || |
452 | $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ || | 453 | $2 ~ /^LINUX_REBOOT_MAGIC[12]$/ || |
@@ -467,12 +468,13 @@ ccflags="$@" | |||
467 | $2 ~ /^CLONE_[A-Z_]+/ || | 468 | $2 ~ /^CLONE_[A-Z_]+/ || |
468 | $2 !~ /^(BPF_TIMEVAL)$/ && | 469 | $2 !~ /^(BPF_TIMEVAL)$/ && |
469 | $2 ~ /^(BPF|DLT)_/ || | 470 | $2 ~ /^(BPF|DLT)_/ || |
470 | $2 ~ /^CLOCK_/ || | 471 | $2 ~ /^(CLOCK|TIMER)_/ || |
471 | $2 ~ /^CAN_/ || | 472 | $2 ~ /^CAN_/ || |
472 | $2 ~ /^CAP_/ || | 473 | $2 ~ /^CAP_/ || |
473 | $2 ~ /^ALG_/ || | 474 | $2 ~ /^ALG_/ || |
474 | $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ || | 475 | $2 ~ /^FS_(POLICY_FLAGS|KEY_DESC|ENCRYPTION_MODE|[A-Z0-9_]+_KEY_SIZE|IOC_(GET|SET)_ENCRYPTION)/ || |
475 | $2 ~ /^GRND_/ || | 476 | $2 ~ /^GRND_/ || |
477 | $2 ~ /^RND/ || | ||
476 | $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || | 478 | $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || |
477 | $2 ~ /^KEYCTL_/ || | 479 | $2 ~ /^KEYCTL_/ || |
478 | $2 ~ /^PERF_EVENT_IOC_/ || | 480 | $2 ~ /^PERF_EVENT_IOC_/ || |
@@ -498,8 +500,11 @@ ccflags="$@" | |||
498 | $2 ~ /^NFN/ || | 500 | $2 ~ /^NFN/ || |
499 | $2 ~ /^XDP_/ || | 501 | $2 ~ /^XDP_/ || |
500 | $2 ~ /^(HDIO|WIN|SMART)_/ || | 502 | $2 ~ /^(HDIO|WIN|SMART)_/ || |
503 | $2 ~ /^CRYPTO_/ || | ||
501 | $2 !~ "WMESGLEN" && | 504 | $2 !~ "WMESGLEN" && |
502 | $2 ~ /^W[A-Z0-9]+$/ || | 505 | $2 ~ /^W[A-Z0-9]+$/ || |
506 | $2 ~/^PPPIOC/ || | ||
507 | $2 ~ /^FAN_|FANOTIFY_/ || | ||
503 | $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} | 508 | $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)} |
504 | $2 ~ /^__WCOREFLAG$/ {next} | 509 | $2 ~ /^__WCOREFLAG$/ {next} |
505 | $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)} | 510 | $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)} |