x86, syscall: Re-fix typo in comment
[deliverable/linux.git] / arch / x86 / syscalls / syscallhdr.sh
CommitLineData
d181764c
PA
1#!/bin/sh
2
3in="$1"
4out="$2"
f14525f9 5my_abis=`echo "($3)" | tr ',' '|'`
d181764c
PA
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'`
f14525f9 12grep -E "^[0-9A-Fa-fXx]+[[:space:]]+${my_abis}" "$in" | sort -n | (
d181764c
PA
13 echo "#ifndef ${fileguard}"
14 echo "#define ${fileguard} 1"
15 echo ""
16
17 while read nr abi name entry ; do
f14525f9 18 echo "#define __NR_${prefix}${name}" $((nr+offset))
d181764c
PA
19 done
20
21 echo ""
22 echo "#endif /* ${fileguard} */"
23) > "$out"
This page took 0.036611 seconds and 5 git commands to generate.