equal
deleted
inserted
replaced
640 |
640 |
641 # Pull out the signal names for later. |
641 # Pull out the signal names for later. |
642 signals=$( |
642 signals=$( |
643 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | |
643 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | |
644 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | |
644 awk '$1=="#define" && $2 ~ /^SIG[A-Z0-9]+$/ { print $2 }' | |
645 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | |
645 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | |
646 sort |
646 sort |
647 ) |
647 ) |
648 |
648 |
649 # Again, writing regexps to a file. |
649 # Again, writing regexps to a file. |
650 echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags | |
650 echo '#include <errno.h>' | $CC -x c - -E -dM $ccflags | |
651 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]*=" }' | |
652 sort >_error.grep |
652 sort >_error.grep |
653 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | |
653 echo '#include <signal.h>' | $CC -x c - -E -dM $ccflags | |
654 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]*=" }' | |
655 egrep -v '(SIGSTKSIZE|SIGSTKSZ|SIGRT|SIGMAX64)' | |
655 grep -v 'SIGSTKSIZE\|SIGSTKSZ\|SIGRT\|SIGMAX64' | |
656 sort >_signal.grep |
656 sort >_signal.grep |
657 |
657 |
658 echo '// mkerrors.sh' "$@" |
658 echo '// mkerrors.sh' "$@" |
659 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.' |
660 echo |
660 echo |