sprofalyze fixes
[minix.git] / kernel / extract-errno.sh
blob0629f03a04199a7a7f602a2ad7d1457387c2b1a3
1 #!/bin/sh
3 set -e
5 # grep message type and errno constants and make them into a .h file
6 cat ../sys/sys/errno.h | \
7 tr -s ' \t' ' ' | \
8 sed 's/^# /#/' | \
9 egrep '^#define [A-Z_][A-Z0-9_]* \( ?_SIGN ?[0-9]+ ?\)' | \
10 cut -d' ' -f2 | \
11 sed 's/\(.*\)/IDENT(\1)/' | \
12 sort