aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/fxstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/fxstat.c')
-rw-r--r--sysdeps/mach/hurd/fxstat.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/sysdeps/mach/hurd/fxstat.c b/sysdeps/mach/hurd/fxstat.c
index 8a90c00..28cfbbb 100644
--- a/sysdeps/mach/hurd/fxstat.c
+++ b/sysdeps/mach/hurd/fxstat.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 93, 94, 95, 96, 97, 2002 Free Software Foundation, Inc.
+/* Copyright (C) 1992,93,94,95,96,97,2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,8 +19,8 @@
#include <errno.h>
#include <stddef.h>
#include <sys/stat.h>
-#include <hurd.h>
-#include <hurd/fd.h>
+
+#include "xstatconv.c"
#undef __fxstat
@@ -28,15 +28,8 @@
int
__fxstat (int vers, int fd, struct stat *buf)
{
- error_t err;
-
- if (vers != _STAT_VER)
- return __hurd_fail (EINVAL);
-
- if (err = HURD_DPORT_USE (fd, __io_stat (port, buf)))
- return __hurd_dfail (fd, err);
-
- return 0;
+ struct stat64 buf64;
+ return __fxstat64 (vers, fd, &buf64) ?: xstat64_conv (buf, &buf64);
}
INTDEF(__fxstat)