10 echo " [$nr] = \"$name\","
17 syscall_macro "$nr" "$entry"
20 echo "static const char *syscalltbl_${arch}[] = {"
22 sorted_table=$(mktemp /tmp/syscalltbl.XXXXXX)
23 grep '^[0-9]' "$in" | sort -n > $sorted_table
26 while read nr abi name entry compat; do
27 if [ $nr -ge 512 ] ; then # discard compat sycalls
39 echo "#define SYSCALLTBL_${arch}_MAX_ID ${max_nr}"