From: Eric Blake Date: Tue, 5 Oct 2010 14:06:50 +0000 (-0600) Subject: faccessat: remove unused wrappers X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e7fbfdc91b5d825d0d482c8bdc3e660711da578;p=pspp 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 index edc7c8b69b..87559f4b24 100644 --- 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 index 11a0314d24..1d4432e6ca 100644 --- a/lib/openat.h +++ b/lib/openat.h @@ -93,22 +93,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 */