comparison vendor/golang.org/x/sys/unix/mkerrors.sh @ 68:4b79810863f6 draft

Ready to release 0.6.0 Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author yakumo.izuru
date Wed, 13 Sep 2023 10:49:50 +0000
parents 787b5ee0289d
children
comparison
equal deleted inserted replaced
67:4edfa07d5fe0 68:4b79810863f6
293 #define PTRACE_SETREGS 0xd 293 #define PTRACE_SETREGS 0xd
294 #endif 294 #endif
295 295
296 #ifndef SOL_NETLINK 296 #ifndef SOL_NETLINK
297 #define SOL_NETLINK 270 297 #define SOL_NETLINK 270
298 #endif
299
300 #ifndef SOL_SMC
301 #define SOL_SMC 286
298 #endif 302 #endif
299 303
300 #ifdef SOL_BLUETOOTH 304 #ifdef SOL_BLUETOOTH
301 // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h 305 // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h
302 // but it is already in bluetooth_linux.go 306 // but it is already in bluetooth_linux.go
636 640
637 # Pull out the signal names for later. 641 # Pull out the signal names for later.
638 signals=$( 642 signals=$(
639 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 643 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
640 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | 644 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' |
641 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | 645 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
642 sort 646 sort
643 ) 647 )
644 648
645 # Again, writing regexps to a file. 649 # Again, writing regexps to a file.
646 echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags | 650 echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags |
647 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print "^\t" $2 "[ \t]*=" }' | 651 awk '$1=="#define" && $2 ~ /^E[A-Z0-9_]+$/ { print "^\t" $2 "[ \t]*=" }' |
648 sort >_error.grep 652 sort >_error.grep
649 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | 653 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags |
650 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' | 654 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print "^\t" $2 "[ \t]*=" }' |
651 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | 655 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' |
652 sort >_signal.grep 656 sort >_signal.grep
653 657
654 echo '// mkerrors.sh' "$@" 658 echo '// mkerrors.sh' "$@"
655 echo '// Code generated by the command above; see README.md. DO NOT EDIT.' 659 echo '// Code generated by the command above; see README.md. DO NOT EDIT.'
656 echo 660 echo