Lines Matching +full:name +full:- +full:prefix
2 # SPDX-License-Identifier: GPL-2.0-only
8 # NR ABI NAME [NATIVE] [COMPAT]
11 # ABI ABI name
12 # NAME syscall name
15 set -e
18 echo >&2 "usage: $0 [--abis ABIS] [--prefix PREFIX] INFILE OUTFILE" >&2
24 echo >&2 " --abis ABIS ABI(s) to handle (By default, all lines are handled)"
25 echo >&2 " --prefix PREFIX The prefix to the macro like __NR_<PREFIX><NAME>"
31 prefix=
33 while [ $# -gt 0 ]
36 --abis)
39 --prefix)
40 prefix=$2
42 -*)
50 if [ $# -ne 2 ]; then
58 sed -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' \
59 -e 's/[^A-Z0-9_]/_/g' -e 's/__/_/g')
61 grep -E "^[0-9A-Fa-fXx]+[[:space:]]+$abis" "$infile" | sort -n | {
67 while read nr abi name native compat ; do
71 echo "#define __NR_${prefix}syscalls $(($max + 1))"