Mercurial > gnulib
diff top/maint.mk @ 14855:d08e35db9bba
maint.mk: add three prohibit-header-without-use rules
Prohibit use of cloexec.h, posixver.h, same.h without use.
* top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
(sc_prohibit_posixver_without_use): Likewise.
(sc_prohibit_same_without_use): Likewise.
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Fri, 03 Jun 2011 17:35:07 +0200 |
parents | 60872968acd0 |
children | 93b21a56e926 |
line wrap: on
line diff
--- a/top/maint.mk Thu Jun 02 01:15:18 2011 -0700 +++ b/top/maint.mk Fri Jun 03 17:35:07 2011 +0200 @@ -495,6 +495,16 @@ re='$(_hash_fn)|$(_hash_struct)'\ $(_sc_header_without_use) +sc_prohibit_cloexec_without_use: + @h='"cloexec.h"' re='\<(set_cloexec_flag|dup_cloexec) *\(' \ + $(_sc_header_without_use) + +sc_prohibit_posixver_without_use: + @h='"posixver.h"' re='\<posix2_version *\(' $(_sc_header_without_use) + +sc_prohibit_same_without_use: + @h='"same.h"' re='\<same_name *\(' $(_sc_header_without_use) + sc_prohibit_hash_pjw_without_use: @h='"hash-pjw.h"' \ re='\<hash_pjw *\(' \