# HG changeset patch # User Jim Meyering # Date 1307115307 -7200 # Node ID d08e35db9bba4a34fcb1e7afe2943aafbaaf25ef # Parent f5ea64b67becb89d1f81cb9cb0ebdf9920ff2059 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. diff --git a/ChangeLog b/ChangeLog --- 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 --- 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='\