Artifact 736d8ba137bccb8f54e146af1d2669798f69560220861ace3c2004ad231987c4:
- Executable file arch/mktbl.linux.syscall.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: 416) [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-generic/unistd.h" | sort -nrk3 | awk -F' ' '{ if ($2 ~ "__NR") { ids[$2]=$3; sub("^.*_", "", $2); if ($3 ~ /^[0-9]+$/) val=$3; else val=ids[$3]; print val "\tcommon\t" $2}}' | sort -n > "$OUTDIR/system_calls.tbl"