diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2012-08-29 21:09:50 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2012-09-22 01:58:23 -0700 |
commit | d202279380436696dc5889edcf07ad92ef59f541 (patch) | |
tree | 6369a1f36470aabbc4aca250ffe0651fee2a5673 /lib/fstatat.c | |
parent | 32d8297adbb0fc03f1e0706005e144c7f498507c (diff) | |
download | gnulib-d202279380436696dc5889edcf07ad92ef59f541.tar.gz |
fchmodat, fchownat, fstatat: use extern-inline
* lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
* lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
* lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
New macros.
* lib/openat.h:
Replace all uses of 'static inline' with them.
Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
* modules/fchmodat, modules/fchownat, modules/fstatat:
* modules/openat-h:
(Depends-on):
Add extern-inline.
(configure.ac): Remove AC_C_INLINE.
Diffstat (limited to 'lib/fstatat.c')
-rw-r--r-- | lib/fstatat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/fstatat.c b/lib/fstatat.c index 9b701c4d61..ed42fa8345 100644 --- a/lib/fstatat.c +++ b/lib/fstatat.c @@ -23,13 +23,15 @@ #define __need_system_sys_stat_h #include <config.h> +#include FSTATAT_INLINE _GL_EXTERN_INLINE + /* Get the original definition of fstatat. It might be defined as a macro. */ #include <sys/types.h> #include <sys/stat.h> #undef __need_system_sys_stat_h #if HAVE_FSTATAT -static inline int +static int orig_fstatat (int fd, char const *filename, struct stat *buf, int flags) { return fstatat (fd, filename, buf, flags); @@ -97,7 +99,7 @@ rpl_fstatat (int fd, char const *file, struct stat *st, int flag) because the preprocessor sees a use of a macro that requires two arguments but is only given one. Hence, we need an inline forwarder to get past the preprocessor. */ -static inline int +static int stat_func (char const *name, struct stat *st) { return stat (name, st); |