Skip to content

Commit

Permalink
scripts/checksyscalls.sh: fix for non-gnu sed
Browse files Browse the repository at this point in the history
Make the checksyscalls script work even on systems where sed is non-gnu.

Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
Thomas Volpini authored and sravnborg committed Oct 29, 2008
1 parent 13797b7 commit bd8f89f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/checksyscalls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ EOF
}

syscall_list() {
sed -n -e '/^\#define/ { s/[^_]*__NR_\([^[:space:]]*\).*/\
sed -n -e '/^\#define/ s/[^_]*__NR_\([^[:space:]]*\).*/\
\#if !defined \(__NR_\1\) \&\& !defined \(__IGNORE_\1\)\
\#warning syscall \1 not implemented\
\#endif/p }' $1
\#endif/p' $1
}

(ignore_list && syscall_list ${srctree}/arch/x86/include/asm/unistd_32.h) | \
Expand Down

0 comments on commit bd8f89f

Please sign in to comment.