diff options
Diffstat (limited to 'sysdeps/mach/hurd/fstatat64.c')
-rw-r--r-- | sysdeps/mach/hurd/fstatat64.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/mach/hurd/fstatat64.c b/sysdeps/mach/hurd/fstatat64.c index 56c1291b77..ca60ba43c4 100644 --- a/sysdeps/mach/hurd/fstatat64.c +++ b/sysdeps/mach/hurd/fstatat64.c @@ -23,14 +23,16 @@ #include <hurd.h> #include <hurd/fd.h> +#include <fstatat_common.h> + /* Get information about the file descriptor FD in BUF. */ int -__fstatat64 (int fd, const char *filename, struct stat64 *buf, int flag) +__fstatat64_common (int fd, const char *filename, struct stat64 *buf, int at_flags, int flags) { error_t err; io_t port; - port = __file_name_lookup_at (fd, flag, filename, 0, 0); + port = __file_name_lookup_at (fd, at_flags, filename, flags, 0); if (port == MACH_PORT_NULL) return -1; @@ -39,5 +41,11 @@ __fstatat64 (int fd, const char *filename, struct stat64 *buf, int flag) return __hurd_fail (err); } + +int +__fstatat64 (int fd, const char *filename, struct stat64 *buf, int at_flags) +{ + return __fstatat64_common (fd, filename, buf, at_flags, 0); +} libc_hidden_def (__fstatat64) weak_alias (__fstatat64, fstatat64) |