5 read -d '' payload <<EOF
6 #define SYSCALL(x) __NR##x __COUNTER__
7 #include <asm/syscall_nr.inc>
10 body=$(echo "$payload" \
11 | gcc $CFLAGS -x none -E - -o- -nostdlib -P \
12 | sed -e 's/^__NR__/#define __NR__/' \
13 | sed -e '/#define/!d')
15 cat <<EOF > "$outfile"
16 #ifndef __LUNAIX_SYSCALL_H
17 #define __LUNAIX_SYSCALL_H