summaryrefslogtreecommitdiff
path: root/syscall.awk
blob: 521fee8e7e49634faefdf8519345fc116f794a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
BEGIN {
	print ".ifndef __SYSCALL__"
	print ".set __SYSCALL__, 1"
	print ""
}

/#define __NR_/ { printf ".equ %s, %s\n", $2, $3 }

END {
	print ""
	print ".endif"
}