diff options
author | Jim Meyering <meyering@redhat.com> | 2011-11-05 17:34:09 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-11-05 17:34:15 +0100 |
commit | bc1c14f003edbadde570d0322433b6b961205340 (patch) | |
tree | 88c490efbfda04bc7bd13703e03c861b811b8415 /top | |
parent | d5a65f3e28c923d4b56deaeabb1e8ad594c51bae (diff) | |
download | gnulib-bc1c14f003edbadde570d0322433b6b961205340.tar.gz |
maint.mk: also prohibit inclusion of dirent.h without use
* top/maint.mk (sc_prohibit_dirent_without_use): New rule.
Diffstat (limited to 'top')
-rw-r--r-- | top/maint.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/top/maint.mk b/top/maint.mk index 72b7e06f08..9f4c032378 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -625,6 +625,16 @@ sc_prohibit_stddef_without_use: re='\<($(_stddef_syms_re))\>' \ $(_sc_header_without_use) +_de1 = dirfd|(close|(fd)?open|read|rewind|seek|tell)dir(64)?(_r)? +_de2 = (versionsort|struct dirent|getdirentries|alphasort|scandir(at)?)(64)? +_de3 = MAXNAMLEN|DIR|ino_t|d_ino|d_fileno|d_namlen +_dirent_syms_re = $(_de1)|$(_de2)|$(_de3) +# Prohibit the inclusion of dirent.h without an actual use. +sc_prohibit_dirent_without_use: + h='dirent.h' \ + re='\<($(_dirent_syms_re))\>' \ + $(_sc_header_without_use) + # Prohibit the inclusion of verify.h without an actual use. sc_prohibit_verify_without_use: @h='verify.h' \ |