X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fopenat.h;h=29e23a547a55a3602e512c01554ce31b55ba68a4;hb=25a6731afb775d2fe8ab53ea944158137d458462;hp=0f542c6ef43527dcd83fe3b77383d91349d2d9dd;hpb=d202279380436696dc5889edcf07ad92ef59f541;p=gnulib.git diff --git a/lib/openat.h b/lib/openat.h index 0f542c6ef..29e23a547 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -1,5 +1,5 @@ /* provide a replacement openat function - Copyright (C) 2004-2006, 2008-2012 Free Software Foundation, Inc. + Copyright (C) 2004-2006, 2008-2014 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -26,6 +26,9 @@ #include #include +#ifndef _GL_INLINE_HEADER_BEGIN + #error "Please include config.h first." +#endif _GL_INLINE_HEADER_BEGIN #if !HAVE_OPENAT @@ -89,19 +92,19 @@ lchmodat (int fd, char const *file, mode_t mode) #endif -#if GNULIB_FSTATAT +#if GNULIB_STATAT -# ifndef FSTATAT_INLINE -# define FSTATAT_INLINE _GL_INLINE +# ifndef STATAT_INLINE +# define STATAT_INLINE _GL_INLINE # endif -FSTATAT_INLINE int +STATAT_INLINE int statat (int fd, char const *name, struct stat *st) { return fstatat (fd, name, st, 0); } -FSTATAT_INLINE int +STATAT_INLINE int lstatat (int fd, char const *name, struct stat *st) { return fstatat (fd, name, st, AT_SYMLINK_NOFOLLOW);