X-Git-Url: https://git.cworth.org/git?p=tar;a=blobdiff_plain;f=gnu%2Fopenat.h;fp=gnu%2Fopenat.h;h=590e5760175164d08ecd15f013e492f6c772ea0f;hp=7cc7ad99a5a99cf4aab74c0996d89f739810f810;hb=de7372b23c3da92fbfaea2d1ac592f0b2ba87914;hpb=fbbfb9406a82e647ce27b6462b11a802fa48f31a diff --git a/gnu/openat.h b/gnu/openat.h index 7cc7ad9..590e576 100644 --- a/gnu/openat.h +++ b/gnu/openat.h @@ -95,22 +95,10 @@ lstatat (int fd, char const *name, struct stat *st) return fstatat (fd, name, st, AT_SYMLINK_NOFOLLOW); } -#if GNULIB_FACCESSAT /* For now, there are no wrappers named laccessat or leuidaccessat, since gnulib doesn't support faccessat(,AT_SYMLINK_NOFOLLOW) and - since access rights on symlinks are of limited utility. */ - -static inline int -accessat (int fd, char const *file, int mode) -{ - return faccessat (fd, file, mode, 0); -} - -static inline int -euidaccessat (int fd, char const *file, int mode) -{ - return faccessat (fd, file, mode, AT_EACCESS); -} -#endif + since access rights on symlinks are of limited utility. Likewise, + wrappers are not provided for accessat or euidaccessat, so as to + avoid dragging in -lgen on some platforms. */ #endif /* _GL_HEADER_OPENAT */