strace/linux/dummy_check.sh
Denys Vlasenko aea4b876c8 Remove stray sys_swapon() declaration
* linux/syscall.h: Remove stray sys_swapon() declaration.
* linux/mips/syscallent.h: Include dummy.h with correct relative path.
* linux/dummy.h: Tweak one place where spaces are used instead of tabs.
* linux/dummy_check.sh: New script. It helps in finding stray syscall
handler declarations.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-02-28 16:39:44 +01:00

7 lines
156 B
Bash
Executable File

#!/bin/sh
grep '^#define' dummy.h | cut -f2 | \
while read func; do
grep -q -F -- "${func}(" syscall.h && echo "Defined as macro and as func: $func"
done