1#!/bin/sh23# This job is very easy because app and kernel ABI are identical4# until the 4th parameter, so we only have to set the syscall5# number in rax67sed -n "8 s/[ ]*#.*//9 /$1/p" syscall.lst |10while read num name11do12cat <<EOF > $name.s13 .file "$name.s"1415 .globl $name16$name:17 mov x8,#$num18 svc 019 b _cerrno20EOF21done