maint.mk: add three prohibit-header-without-use rules
authorJim Meyering <meyering@redhat.com>
Fri, 3 Jun 2011 15:35:07 +0000 (17:35 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 4 Jun 2011 07:37:47 +0000 (09:37 +0200)
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.

ChangeLog
top/maint.mk

index 561ff8309a8aaa80169f134394bfc832e37f3fd4..fbd5ccd3b4f1ad106ef8c42d717172e0fdf30bb6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-06-03  Jim Meyering  <meyering@redhat.com>
+
+       maint: three new 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.
+
 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        allocator: 'die' routine is now given requested size
index 9f20900a32c32b030f593aa5021a104caed8d81b..c55571cb47fa589777128daedab943f397db887b 100644 (file)
@@ -495,6 +495,16 @@ sc_prohibit_hash_without_use:
        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 *\(' \