diff options
Diffstat (limited to 'scripts/checksyscalls.sh')
| -rwxr-xr-x | scripts/checksyscalls.sh | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/scripts/checksyscalls.sh b/scripts/checksyscalls.sh index fd8fa9aa7c4..3ab316e5231 100755 --- a/scripts/checksyscalls.sh +++ b/scripts/checksyscalls.sh | |||
| @@ -198,16 +198,11 @@ EOF | |||
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | syscall_list() { | 200 | syscall_list() { |
| 201 | grep '^[0-9]' "$1" | sort -n | ( | 201 | sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\ |
| 202 | while read nr abi name entry ; do | 202 | \#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\ |
| 203 | cat <<EOF | 203 | \#warning syscall \1 not implemented\ |
| 204 | #if !defined(__NR_${name}) && !defined(__IGNORE_${name}) | 204 | \#endif/p' $1 |
| 205 | #warning syscall ${name} not implemented | ||
| 206 | #endif | ||
| 207 | EOF | ||
| 208 | done | ||
| 209 | ) | ||
| 210 | } | 205 | } |
| 211 | 206 | ||
| 212 | (ignore_list && syscall_list $(dirname $0)/../arch/x86/syscalls/syscall_32.tbl) | \ | 207 | (ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \ |
| 213 | $* -E -x c - > /dev/null | 208 | $* -E -x c - > /dev/null |
