aboutsummaryrefslogtreecommitdiff
path: root/testcases/kernel/syscalls/ptrace/make_syscall_list.sh
blob: e5d6d2765bcffe57a5d7d2351050345b8cc3cfc6 (plain)
1
2
3
4
5
6
7
#!/bin/sh
set -- $( \
	printf '#include <sys/syscall.h>' | \
	${CC:-gcc} -E -dD - | \
	awk '$2 ~ /^SYS_/ { sub(/SYS_/,"",$2); print $2; }'
)
printf 'P(%s)\n' "$@"