changeset 37276:49b2ef5a8659

maint.mk: adapt openat.h-include-without-use test * top/maint.mk (sc_prohibit_openat_without_use): Also check for FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid failing on gnulib's own lib/{chmod,chown,stat}at.c files. With this change, running "make sc_maint" in gnulib's top-level directory now passes for me.
author Jim Meyering <meyering@fb.com>
date Fri, 03 Jan 2014 16:58:50 -0800
parents 996987e4b74e
children 1bd4d1c6cbb4
files ChangeLog top/maint.mk
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Jan 03 11:18:07 2014 -0800
+++ b/ChangeLog	Fri Jan 03 16:58:50 2014 -0800
@@ -1,3 +1,12 @@
+2014-01-03  Jim Meyering  <meyering@fb.com>
+
+	maint.mk: adapt openat.h-include-without-use test
+	* top/maint.mk (sc_prohibit_openat_without_use): Also check for
+	FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
+	failing on gnulib's own lib/{chmod,chown,stat}at.c files.
+	With this change, running "make sc_maint" in gnulib's top-level
+	directory now passes for me.
+
 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
 
 	doc: use ASCII in .texi files where UTF-8 isn't needed
--- a/top/maint.mk	Fri Jan 03 11:18:07 2014 -0800
+++ b/top/maint.mk	Fri Jan 03 16:58:50 2014 -0800
@@ -591,7 +591,7 @@
 
 sc_prohibit_openat_without_use:
 	@h='openat.h' \
-	re='\<(openat_(permissive|needs_fchdir|(save|restore)_fail)|l?(stat|ch(own|mod))at|(euid)?accessat)\>' \
+	re='\<(openat_(permissive|needs_fchdir|(save|restore)_fail)|l?(stat|ch(own|mod))at|(euid)?accessat|(FCHMOD|FCHOWN|STAT)AT_INLINE)\>' \
 	  $(_sc_header_without_use)
 
 # Prohibit the inclusion of c-ctype.h without an actual use.