changeset 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 f5ea64b67bec
children c593fd7d2ab9
files ChangeLog top/maint.mk
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -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 *\(' \