detect more obsolete headers

This commit is contained in:
Mike Frysinger 2006-04-29 04:44:08 +00:00
parent 59c6baedf7
commit 02fe81033f

View File

@ -68,7 +68,7 @@ rm -f src.obsolete.funcs
# don't allow obsolete headers
#
find $srcdir/.. '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 \
grep -E -e '\<(malloc|memory)\.h\>' \
grep -E -e '\<(malloc|memory|sys/(errno|fcntl|signal|stropts|termios|unistd))\.h\>' \
| sed -e "s:^$srcdir/\.\./::g" > src.obsolete.headers
testing "Obsolete headers" "cat src.obsolete.headers" "" "" ""
rm -f src.obsolete.headers