Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: b36f4be3de1b123d8601de062e7dbfc904f305fb authored by Linus Torvalds on 18 August 2013, 21:36:53 UTC
Linux 3.11-rc6
Tip revision: b36f4be
syscalltbl.sh
#!/bin/sh

in="$1"
out="$2"

grep '^[0-9]' "$in" | sort -n | (
    while read nr abi name entry compat; do
	abi=`echo "$abi" | tr '[a-z]' '[A-Z]'`
	if [ -n "$compat" ]; then
	    echo "__SYSCALL_${abi}($nr, $entry, $compat)"
	elif [ -n "$entry" ]; then
	    echo "__SYSCALL_${abi}($nr, $entry, $entry)"
	fi
    done
) > "$out"
back to top