Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v3.3 27 lines 644 B view raw
1#!/bin/sh 2 3in="$1" 4out="$2" 5my_abis=`echo "($3)" | tr ',' '|'` 6prefix="$4" 7offset="$5" 8 9fileguard=_ASM_X86_`basename "$out" | sed \ 10 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \ 11 -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g'` 12grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | ( 13 echo "#ifndef ${fileguard}" 14 echo "#define ${fileguard} 1" 15 echo "" 16 17 while read nr abi name entry ; do 18 if [ -z "$offset" ]; then 19 echo "#define __NR_${prefix}${name} $nr" 20 else 21 echo "#define __NR_${prefix}${name} ($offset + $nr)" 22 fi 23 done 24 25 echo "" 26 echo "#endif /* ${fileguard} */" 27) > "$out"