We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d181764 commit 29dc54cCopy full SHA for 29dc54c
scripts/checksyscalls.sh
@@ -198,11 +198,16 @@ EOF
198
}
199
200
syscall_list() {
201
-sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
202
-\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
203
-\#warning syscall \1 not implemented\
204
-\#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})
205
+#warning syscall ${name} not implemented
206
+#endif
207
+EOF
208
+ done
209
+ )
210
211
-(ignore_list && syscall_list $(dirname $0)/../arch/x86/include/asm/unistd_32.h) | \
212
+(ignore_list && syscall_list $(dirname $0)/../arch/x86/syscalls/syscall_32.tbl) | \
213
$* -E -x c - > /dev/null
0 commit comments