ref: 71fbf8ad9e06c29514a12e8840e59d3f50e33b4c
dir: /libc/src/sys/qbe-linux/syscall.awk/
# This job is very easy because app and kernel ABI are identical # until the 4th parameter, so we only have to set the syscall # number in rax /^#/ {next} {name=$2 ".s" printf "%s:\n" \ "\tmovq\t$%d,%%rax\n" \ "\tsyscall\n" \ "\tret\n",$2, $1 > name close(name)}