Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285910
b: refs/heads/master
c: 29dc54c
h: refs/heads/master
v: v3
  • Loading branch information
H. Peter Anvin committed Nov 17, 2011
1 parent b361431 commit 4fab3d7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d181764ccf6207e02abb95fb3052639b947f4833
refs/heads/master: 29dc54c673ea2531d589400badb4ada5f5f60dae
15 changes: 10 additions & 5 deletions trunk/scripts/checksyscalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,16 @@ EOF
}

syscall_list() {
sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
\#warning syscall \1 not implemented\
\#endif/p' $1
grep '^[0-9]' "$1" | sort -n | (
while read nr abi name entry ; do
echo <<EOF
#if !defined(__NR_${name}) && !defined(__IGNORE_${name})
#warning syscall ${name} not implemented
#endif
EOF
done
)
}

(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \
(ignore_list && syscall_list $(dirname $0)/../arch/x86/syscalls/syscall_32.tbl) | \
$* -E -x c - > /dev/null

0 comments on commit 4fab3d7

Please sign in to comment.