Staging
v0.8.1
https://github.com/torvalds/linux
Raw File
Tip revision: dcb99fd9b08cfe1afe426af4d8d3cbc429190f15 authored by Linus Torvalds on 17 March 2014, 01:51:24 UTC
Linux 3.14-rc7
Tip revision: dcb99fd
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