Artifact d84e39d1e142218ce67db5e095c6259ebc35dde89fa980973f2e045290d731a8:
- 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]
#!/usr/bin/env bash set -eu OUTDIR=$1 ABI=$2 INC_DEF=/usr/src/linux p_include="${LINUX_SRC:-$INC_DEF}" p_uapi="$p_include/tools/include/uapi" cpp -D__"$ABI"__ -undef -dM -I"$p_uapi" "$p_uapi/asm/errno.h" | sort -nrk3 | awk -F' ' '{ if ($2 !~ "^_"){ ids[$2] = $3; if ($3 ~ /^[0-9]+$/) val=$3; else val=ids[$3]; print $2 " " val; }}' | sort -nk2 > "$OUTDIR/error_table.tbl"