summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-01-03 16:58:50 -0800
committerJim Meyering <meyering@fb.com>2014-01-03 17:00:01 -0800
commita75f17adf4664d5c34366f62fbca38dc5cd8e9dc (patch)
tree08d66a728ee8cfd96b3fbb5f09d379e19fec5b92 /top
parentfe3419dc7ec3ae91c9c4808cbc48f6477b2cfca9 (diff)
downloadgnulib-a75f17adf4664d5c34366f62fbca38dc5cd8e9dc.tar.gz
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.
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/maint.mk b/top/maint.mk
index cae2dda039..d5bb427a25 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -591,7 +591,7 @@ sc_prohibit_root_dev_ino_without_use:
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.