From 4fab3d74a3631a6e53b24711c66da7db6589ae6f Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 11 Nov 2011 15:57:53 -0800 Subject: [PATCH] --- yaml --- r: 285910 b: refs/heads/master c: 29dc54c673ea2531d589400badb4ada5f5f60dae h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/checksyscalls.sh | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index be5230a3e29f..0d1a0162bd7c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d181764ccf6207e02abb95fb3052639b947f4833 +refs/heads/master: 29dc54c673ea2531d589400badb4ada5f5f60dae diff --git a/trunk/scripts/checksyscalls.sh b/trunk/scripts/checksyscalls.sh index 3ab316e52313..d24810fc6af6 100755 --- a/trunk/scripts/checksyscalls.sh +++ b/trunk/scripts/checksyscalls.sh @@ -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 < /dev/null