# HG changeset patch # User Eric Blake # Date 1286287610 21600 # Node ID 9ef7abcf9136135c0f25a6e6f6fa715831a43206 # Parent 700531ee17e05e348addc8191c5c95fc68579ca7 faccessat: remove unused wrappers * lib/openat.h (accessat, euidaccesat): Delete, since the mere presence of these wrappers dragged in -lgen on Solaris. Reported by Clemens Brogi; fix suggested by Paul Eggert. Signed-off-by: Eric Blake diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-10-05 Eric Blake + + faccessat: remove unused wrappers + * lib/openat.h (accessat, euidaccesat): Delete, since the mere + presence of these wrappers dragged in -lgen on Solaris. + Reported by Clemens Brogi; fix suggested by Paul Eggert. + 2010-10-05 Jim Meyering tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@ diff --git a/lib/openat.h b/lib/openat.h --- a/lib/openat.h +++ b/lib/openat.h @@ -93,22 +93,10 @@ 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 */