2 # Copyright 2009 The Go Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style
4 # license that can be found in the LICENSE file.
6 # Generate Go code listing errors and other #defined constant
7 # values (ENAMETOOLONG etc.), by asking the preprocessor
8 # about the definitions.
14 if test -z "$GOARCH" -o -z "$GOOS"; then
15 echo 1>&2 "GOARCH or GOOS not defined in environment"
19 # Check that we are using the new build system if we should
20 if [[ "$GOOS" = "linux" ]] && [[ "$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 "See README.md"
26 if [[ "$GOOS" = "aix" ]]; then
32 if [[ "$GOOS" = "solaris" ]]; then
33 # Assumes GNU versions of utilities in PATH.
34 export PATH
=/usr
/gnu
/bin
:$PATH
41 #include <net/netopt.h>
42 #include <netinet/ip_mroute.h>
43 #include <sys/protosw.h>
44 #include <sys/stropts.h>
47 #include <sys/select.h>
48 #include <sys/termio.h>
52 #define AF_LOCAL AF_UNIX
56 #define _DARWIN_C_SOURCE
58 #define _DARWIN_USE_64_BIT_INODE
59 #define __APPLE_USE_RFC_3542
62 #include <sys/clonefile.h>
63 #include <sys/kern_control.h>
64 #include <sys/types.h>
65 #include <sys/event.h>
66 #include <sys/ptrace.h>
67 #include <sys/select.h>
68 #include <sys/socket.h>
70 #include <sys/sockio.h>
71 #include <sys/sys_domain.h>
72 #include <sys/sysctl.h>
74 #include <sys/mount.h>
75 #include <sys/utsname.h>
77 #include <sys/xattr.h>
78 #include <sys/vsock.h>
81 #include <net/if_types.h>
82 #include <net/route.h>
83 #include <netinet/in.h>
84 #include <netinet/ip.h>
87 // for backwards compatibility because moved TIOCREMOTE to Kernel.framework after MacOSX12.0.sdk.
88 #define TIOCREMOTE 0x80047469
92 #include <sys/types.h>
93 #include <sys/event.h>
94 #include <sys/select.h>
95 #include <sys/socket.h>
96 #include <sys/sockio.h>
98 #include <sys/sysctl.h>
100 #include <sys/mount.h>
101 #include <sys/wait.h>
102 #include <sys/ioctl.h>
105 #include <net/if_clone.h>
106 #include <net/if_types.h>
107 #include <net/route.h>
108 #include <netinet/in.h>
110 #include <netinet/ip.h>
111 #include <net/ip_mroute/ip_mroute.h>
115 #include <sys/capsicum.h>
116 #include <sys/param.h>
117 #include <sys/types.h>
118 #include <sys/disk.h>
119 #include <sys/event.h>
120 #include <sys/sched.h>
121 #include <sys/select.h>
122 #include <sys/socket.h>
124 #include <sys/sockio.h>
125 #include <sys/stat.h>
126 #include <sys/sysctl.h>
127 #include <sys/mman.h>
128 #include <sys/mount.h>
129 #include <sys/wait.h>
130 #include <sys/ioctl.h>
131 #include <sys/ptrace.h>
134 #include <net/if_types.h>
135 #include <net/route.h>
136 #include <netinet/in.h>
138 #include <netinet/ip.h>
139 #include <netinet/ip_mroute.h>
140 #include <sys/extattr.h>
142 #if __FreeBSD__ >= 10
143 #define IFT_CARP 0xf8 // IFT_CARP is deprecated in FreeBSD 10
145 #define SIOCAIFADDR _IOW(105, 26, struct oifaliasreq) // ifaliasreq contains if_data
146 #undef SIOCSIFPHYADDR
147 #define SIOCSIFPHYADDR _IOW(105, 70, struct oifaliasreq) // ifaliasreq contains if_data
152 #define _LARGEFILE_SOURCE
153 #define _LARGEFILE64_SOURCE
155 #define _FILE_OFFSET_BITS 64
159 // <sys/ioctl.h> is broken on powerpc64, as it fails to include definitions of
160 // these structures. We just include them copied from <bits/termios.h>.
161 #if defined(__powerpc__)
189 #include <bits/sockaddr.h>
190 #include <sys/epoll.h>
191 #include <sys/eventfd.h>
192 #include <sys/inotify.h>
193 #include <sys/ioctl.h>
194 #include <sys/mman.h>
195 #include <sys/mount.h>
196 #include <sys/prctl.h>
197 #include <sys/stat.h>
198 #include <sys/types.h>
199 #include <sys/time.h>
200 #include <sys/select.h>
201 #include <sys/signalfd.h>
202 #include <sys/socket.h>
203 #include <sys/timerfd.h>
205 #include <sys/xattr.h>
206 #include <linux/audit.h>
207 #include <linux/bpf.h>
208 #include <linux/can.h>
209 #include <linux/can/error.h>
210 #include <linux/can/netlink.h>
211 #include <linux/can/raw.h>
212 #include <linux/capability.h>
213 #include <linux/cryptouser.h>
214 #include <linux/devlink.h>
215 #include <linux/dm-ioctl.h>
216 #include <linux/errqueue.h>
217 #include <linux/ethtool_netlink.h>
218 #include <linux/falloc.h>
219 #include <linux/fanotify.h>
220 #include <linux/fib_rules.h>
221 #include <linux/filter.h>
222 #include <linux/fs.h>
223 #include <linux/fscrypt.h>
224 #include <linux/fsverity.h>
225 #include <linux/genetlink.h>
226 #include <linux/hdreg.h>
227 #include <linux/hidraw.h>
228 #include <linux/if.h>
229 #include <linux/if_addr.h>
230 #include <linux/if_alg.h>
231 #include <linux/if_arp.h>
232 #include <linux/if_ether.h>
233 #include <linux/if_ppp.h>
234 #include <linux/if_tun.h>
235 #include <linux/if_packet.h>
236 #include <linux/if_xdp.h>
237 #include <linux/input.h>
238 #include <linux/kcm.h>
239 #include <linux/kexec.h>
240 #include <linux/keyctl.h>
241 #include <linux/landlock.h>
242 #include <linux/loop.h>
243 #include <linux/lwtunnel.h>
244 #include <linux/magic.h>
245 #include <linux/memfd.h>
246 #include <linux/module.h>
247 #include <linux/mount.h>
248 #include <linux/netfilter/nfnetlink.h>
249 #include <linux/netlink.h>
250 #include <linux/net_namespace.h>
251 #include <linux/nfc.h>
252 #include <linux/nsfs.h>
253 #include <linux/perf_event.h>
254 #include <linux/pps.h>
255 #include <linux/ptrace.h>
256 #include <linux/random.h>
257 #include <linux/reboot.h>
258 #include <linux/rtc.h>
259 #include <linux/rtnetlink.h>
260 #include <linux/sched.h>
261 #include <linux/seccomp.h>
262 #include <linux/serial.h>
263 #include <linux/sockios.h>
264 #include <linux/taskstats.h>
265 #include <linux/tipc.h>
266 #include <linux/vm_sockets.h>
267 #include <linux/wait.h>
268 #include <linux/watchdog.h>
269 #include <linux/wireguard.h>
271 #include <mtd/ubi-user.h>
272 #include <mtd/mtd-user.h>
273 #include <net/route.h>
275 #if defined(__sparc__)
276 // On sparc{,64}, the kernel defines struct termios2 itself which clashes with the
277 // definition in glibc. As only the error constants are needed here, include the
278 // generic termibits.h (which is included by termbits.h on sparc).
279 #include <asm-generic/termbits.h>
281 #include <asm/termbits.h>
285 #define MSG_FASTOPEN 0x20000000
288 #ifndef PTRACE_GETREGS
289 #define PTRACE_GETREGS 0xc
292 #ifndef PTRACE_SETREGS
293 #define PTRACE_SETREGS 0xd
297 #define SOL_NETLINK 270
305 // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h
306 // but it is already in bluetooth_linux.go
310 // Certain constants are missing from the fs/crypto UAPI
311 #define FS_KEY_DESC_PREFIX "fscrypt:"
312 #define FS_KEY_DESC_PREFIX_SIZE 8
313 #define FS_MAX_KEY_SIZE 64
315 // The code generator produces -0x1 for (~0), but an unsigned value is necessary
316 // for the tipc_subscr timeout __u32 field.
317 #undef TIPC_WAIT_FOREVER
318 #define TIPC_WAIT_FOREVER 0xffffffff
320 // Copied from linux/l2tp.h
321 // Including linux/l2tp.h here causes conflicts between linux/in.h
322 // and netinet/in.h included via net/route.h above.
323 #define IPPROTO_L2TP 115
325 // Copied from linux/hid.h.
326 // Keep in sync with the size of the referenced fields.
327 #define _HIDIOCGRAWNAME_LEN 128 // sizeof_field(struct hid_device, name)
328 #define _HIDIOCGRAWPHYS_LEN 64 // sizeof_field(struct hid_device, phys)
329 #define _HIDIOCGRAWUNIQ_LEN 64 // sizeof_field(struct hid_device, uniq)
331 #define _HIDIOCGRAWNAME HIDIOCGRAWNAME(_HIDIOCGRAWNAME_LEN)
332 #define _HIDIOCGRAWPHYS HIDIOCGRAWPHYS(_HIDIOCGRAWPHYS_LEN)
333 #define _HIDIOCGRAWUNIQ HIDIOCGRAWUNIQ(_HIDIOCGRAWUNIQ_LEN)
338 #include <sys/types.h>
339 #include <sys/param.h>
340 #include <sys/event.h>
341 #include <sys/extattr.h>
342 #include <sys/mman.h>
343 #include <sys/mount.h>
344 #include <sys/sched.h>
345 #include <sys/select.h>
346 #include <sys/socket.h>
347 #include <sys/sockio.h>
348 #include <sys/sysctl.h>
349 #include <sys/termios.h>
350 #include <sys/ttycom.h>
351 #include <sys/wait.h>
354 #include <net/if_types.h>
355 #include <net/route.h>
356 #include <netinet/in.h>
357 #include <netinet/in_systm.h>
358 #include <netinet/ip.h>
359 #include <netinet/ip_mroute.h>
360 #include <netinet/if_ether.h>
362 // Needed since <sys/param.h> refers to it...
367 #include <sys/types.h>
368 #include <sys/param.h>
369 #include <sys/event.h>
370 #include <sys/mman.h>
371 #include <sys/mount.h>
372 #include <sys/select.h>
373 #include <sys/sched.h>
374 #include <sys/socket.h>
375 #include <sys/sockio.h>
376 #include <sys/stat.h>
377 #include <sys/sysctl.h>
378 #include <sys/termios.h>
379 #include <sys/ttycom.h>
380 #include <sys/unistd.h>
381 #include <sys/wait.h>
384 #include <net/if_types.h>
385 #include <net/if_var.h>
386 #include <net/route.h>
387 #include <netinet/in.h>
388 #include <netinet/in_systm.h>
389 #include <netinet/ip.h>
390 #include <netinet/ip_mroute.h>
391 #include <netinet/if_ether.h>
392 #include <net/if_bridge.h>
394 // We keep some constants not supported in OpenBSD 5.5 and beyond for
395 // the promise of compatibility.
396 #define EMUL_ENABLED 0x1
397 #define EMUL_NATIVE 0x2
398 #define IPV6_FAITH 0x1d
399 #define IPV6_OPTIONS 0x1
400 #define IPV6_RTHDR_STRICT 0x1
401 #define IPV6_SOCKOPT_RESERVED1 0x3
402 #define SIOCGIFGENERIC 0xc020693a
403 #define SIOCSIFGENERIC 0x80206939
409 #include <sys/types.h>
410 #include <sys/select.h>
411 #include <sys/socket.h>
412 #include <sys/sockio.h>
413 #include <sys/stat.h>
414 #include <sys/stream.h>
415 #include <sys/mman.h>
416 #include <sys/wait.h>
417 #include <sys/ioctl.h>
418 #include <sys/mkdev.h>
421 #include <net/if_arp.h>
422 #include <net/if_types.h>
423 #include <net/route.h>
424 #include <netinet/icmp6.h>
425 #include <netinet/in.h>
426 #include <netinet/ip.h>
427 #include <netinet/ip_mroute.h>
433 #include <sys/types.h>
434 #include <sys/file.h>
437 #include <sys/socket.h>
438 #include <netinet/in.h>
439 #include <netinet/ip.h>
440 #include <netinet/ip6.h>
441 #include <netinet/tcp.h>
443 #include <sys/signal.h>
445 #include <sys/resource.h>
450 # Write go tool cgo -godefs input.
455 indirect
="includes_$(uname)"
456 echo "${!indirect} $includes"
459 echo 'import "syscall"'
463 # The gcc command line prints all the #defines
464 # it encounters while processing the input
465 echo "${!indirect} $includes" |
$CC -x c
- -E -dM $ccflags |
467 $1 != "#define" || $2 ~ /\(/ || $3 == "" {next}
469 $2 ~ /^E([ABCD]X|[BIS]P|[SD]I|S|FL)$/ {next} # 386 registers
470 $2 ~ /^(SIGEV_|SIGSTKSZ|SIGRT(MIN|MAX))/ {next}
471 $2 ~ /^(SCM_SRCRT)$/ {next}
472 $2 ~ /^(MAP_FAILED)$/ {next}
473 $2 ~ /^ELF_.*$/ {next}# <asm/elf.h> contains ELF_ARCH, etc.
475 $2 ~ /^EXTATTR_NAMESPACE_NAMES/ ||
476 $2 ~ /^EXTATTR_NAMESPACE_[A-Z]+_STRING/ {next}
478 $2 !~ /^ECCAPBITS/ &&
484 $2 ~ /^E[A-Z0-9_]+$/ ||
486 $2 ~ /^(OLD|NEW)DEV$/ ||
488 $2 ~ /^CI?BAUD(EX)?$/ ||
490 $2 ~ /^V[A-Z0-9]+$/ ||
491 $2 ~ /^CS[A-Z0-9]/ ||
492 $2 ~ /^I(SIG|CANON|CRNL|UCLC|EXTEN|MAXBEL|STRIP|UTF8)$/ ||
494 $2 ~ /^IX(ON|ANY|OFF)$/ ||
495 $2 ~ /^IN(LCR|PCK)$/ ||
496 $2 !~ "X86_CR3_PCID_NOFLUSH" &&
497 $2 ~ /(^FLU?SH)|(FLU?SH$)/ ||
498 $2 ~ /^C(LOCAL|READ|MSPAR|RTSCTS)$/ ||
505 $2 == "NOKERNINFO" ||
509 $2 ~ /^O[CNPFPL][A-Z]+[^_][A-Z]+$/ ||
510 $2 ~ /^(NL|CR|TAB|BS|V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~ /^WDIO[CFS]_/ ||
603 $2 ~ /^(HDIO|WIN|SMART)_/ ||
606 $2 !~ "DEVLINK_RELOAD_LIMITS_VALID_MASK" &&
609 $2 ~ /^LWTUNNEL_IP/ ||
612 $2 ~ /^W[A-Z0-9]+$/ ||
615 $2 ~ /^FAN_|FANOTIFY_/ ||
616 $2 == "HID_MAX_DESCRIPTOR_SIZE" ||
618 $2 ~ /^BUS_(USB|HIL|BLUETOOTH|VIRTUAL)$/ ||
624 $2 ~ /^BLK[A-Z]*(GET$|SET$|BUF$|PART$|SIZE)/ {printf("\t%s = C.%s\n", $2, $2)}
625 $2 ~ /^__WCOREFLAG$/ {next}
626 $2 ~ /^__W[A-Z0-9]+$/ {printf("\t%s = C.%s\n", substr($2,3), $2)}
634 # Pull out the error names for later.
636 echo '#include <errno.h>' |
$CC -x c
- -E -dM $ccflags |
637 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print $2 }' |
641 # Pull out the signal names for later.
643 echo '#include <signal.h>' |
$CC -x c
- -E -dM $ccflags |
644 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
645 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
649 # Again, writing regexps to a file.
650 echo '#include <errno.h>' |
$CC -x c
- -E -dM $ccflags |
651 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print "^\t" $2 "[ \t]*=" }' |
653 echo '#include <signal.h>' |
$CC -x c
- -E -dM $ccflags |
654 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
655 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
658 echo '// mkerrors.sh' "$@"
659 echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
661 echo "//go:build ${GOARCH} && ${GOOS}"
662 echo "// +build ${GOARCH},${GOOS}"
664 go tool cgo
-godefs -- "$@" _const.go
>_error.out
665 cat _error.out |
grep -vf _error.
grep |
grep -vf _signal.
grep
669 cat _error.out |
grep -f _error.
grep |
sed 's/=\(.*\)/= syscall.Errno(\1)/'
675 cat _error.out |
grep -f _signal.
grep |
sed 's/=\(.*\)/= syscall.Signal(\1)/'
678 # Run C program to print error and syscall strings.
688 #define nelem(x) (sizeof(x)/sizeof((x)[0]))
690 enum { A = 'A', Z = 'Z', a = 'a', z = 'z' }; // avoid need for single quotes below
697 struct tuple errors[] = {
701 echo -E ' {'$i', "'$i'" },'
707 struct tuple signals[] = {
711 echo -E ' {'$i', "'$i'" },'
714 # Use -E because on some systems bash builtin interprets \n itself.
719 tuplecmp(const void *a, const void *b)
721 return ((struct tuple *)a)->num - ((struct tuple *)b)->num;
730 printf("\n\n// Error table\n");
731 printf("var errorList = [...]struct {\n");
732 printf("\tnum syscall.Errno\n");
733 printf("\tname string\n");
734 printf("\tdesc string\n");
736 qsort(errors, nelem(errors), sizeof errors[0], tuplecmp);
737 for(i=0; i<nelem(errors); i++) {
739 if(i > 0 && errors[i-1].num == e)
741 strcpy(buf, strerror(e));
742 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
743 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
745 printf("\t{ %d, \"%s\", \"%s\" },\n", e, errors[i].name, buf);
749 printf("\n\n// Signal table\n");
750 printf("var signalList = [...]struct {\n");
751 printf("\tnum syscall.Signal\n");
752 printf("\tname string\n");
753 printf("\tdesc string\n");
755 qsort(signals, nelem(signals), sizeof signals[0], tuplecmp);
756 for(i=0; i<nelem(signals); i++) {
758 if(i > 0 && signals[i-1].num == e)
760 strcpy(buf, strsignal(e));
761 // lowercase first letter: Bad -> bad, but STREAM -> STREAM.
762 if(A <= buf[0] && buf[0] <= Z && a <= buf[1] && buf[1] <= z)
764 // cut trailing : number.
765 p = strrchr(buf, ":"[0]);
768 printf("\t{ %d, \"%s\", \"%s\" },\n", e, signals[i].name, buf);
778 $CC $ccflags -o _errors _errors.c
&& $GORUN .
/_errors
&& rm -f _errors.c _errors _const.go _error.
grep _signal.
grep _error.out