From 1b20f727196f5f3361c2edf5ca28ac0032425706 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 3 Jun 2011 17:35:07 +0200 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ top/maint.mk | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 561ff8309a..fbd5ccd3b4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-06-03 Jim Meyering + + 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 allocator: 'die' routine is now given requested size diff --git a/top/maint.mk b/top/maint.mk index 9f20900a32..c55571cb47 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -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='\