Differences From Artifact [e1301e6d16]:
- Executable file arch/mktbl.errno.linux.sh — part of check-in [b9dd92f73e] at 2019-08-25 00:16:41 on branch trunk — arch: add crude script to generate errno tables from Linux sources (user: lachs0r, size: 406) [annotate] [blame] [check-ins using]
To Artifact [d84e39d1e1]:
- Executable file arch/mktbl.errno.linux.sh — part of check-in [f45d66f6db] at 2019-08-25 01:05:28 on branch trunk — arch/mktbl.errno.linux.sh: simplify (user: lachs0r, size: 379) [annotate] [blame] [check-ins using]
- Executable file arch/mktbl.linux.errno.sh — part of check-in [c15c92895e] at 2019-08-25 02:42:11 on branch trunk — arch: add script to generate linux syscall tables from generic headers; add arm.lin.64 (untested) (user: lachs0r, size: 379) [annotate] [blame] [check-ins using]
4 4 OUTDIR=$1 5 5 ABI=$2 6 6 7 7 INC_DEF=/usr/src/linux 8 8 p_include="${LINUX_SRC:-$INC_DEF}" 9 9 p_uapi="$p_include/tools/include/uapi" 10 10 11 -cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm/errno.h" | sort -nrk3 | awk '{ 12 -split($0, a, " "); 13 -if (a[2] !~ "^_"){ 14 - ids[a[2]] = a[3]; 15 - if (a[3] ~ /^[0-9]+$/) val=a[3]; 16 - else val=ids[a[3]]; 17 - print a[2] " " val; 11 +cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm/errno.h" | sort -nrk3 | awk -F' ' '{ 12 +if ($2 !~ "^_"){ 13 + ids[$2] = $3; 14 + if ($3 ~ /^[0-9]+$/) val=$3; 15 + else val=ids[$3]; 16 + print $2 " " val; 18 17 }}' | sort -nk2 > "$OUTDIR/error_table.tbl"