Mercurial > gnulib
diff top/maint.mk @ 11954:c2aabb82023d
syntax-check: detect unnecessary inclusion of openat.h
* top/maint.mk (sc_prohibit_openat_without_use): New rule.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Sat, 05 Sep 2009 19:54:12 +0200 |
parents | 234941dec230 |
children | 25d12bf7e5bf |
line wrap: on
line diff
--- a/top/maint.mk Sat Sep 05 18:06:54 2009 +0200 +++ b/top/maint.mk Sat Sep 05 19:54:12 2009 +0200 @@ -293,6 +293,11 @@ re='(\<ROOT_DEV_INO_(CHECK|WARN)\>|\<get_root_dev_ino *\()' \ $(_header_without_use) +sc_prohibit_openat_without_use: + @h='"openat.h"' \ + re='\<(openat_(permissive|needs_fchdir|(save|restore)_fail)|l?ch(own|mod)at)\>' \ + $(_header_without_use) + # Prohibit the inclusion of c-ctype.h without an actual use. ctype_re = isalnum|isalpha|isascii|isblank|iscntrl|isdigit|isgraph|islower\ |isprint|ispunct|isspace|isupper|isxdigit|tolower|toupper