aboutsummaryrefslogtreecommitdiff
path: root/io/sys
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-11-17 21:32:27 +0000
committerUlrich Drepper <drepper@redhat.com>2005-11-17 21:32:27 +0000
commitc6f688a090909c9865340460fd64e2e59c33be05 (patch)
treeb071e645b3837dda4a592a1a792a1c7319faaeb8 /io/sys
parent8ce9ea74cc2a6ce6fdafac0e0829b1bc93788143 (diff)
downloadglibc-c6f688a090909c9865340460fd64e2e59c33be05.zip
glibc-c6f688a090909c9865340460fd64e2e59c33be05.tar.gz
glibc-c6f688a090909c9865340460fd64e2e59c33be05.tar.bz2
* io/sys/stat.h (fstatat): If __REDIRECT_NTH isn't defined,
define fstatat to fstatat64. (fstatat64): Only provide prototype if __USE_LARGEFILE64, similarly with the inline. * io/fcntl.h (openat64): Only provide prototype if __USE_LARGEFILE64.
Diffstat (limited to 'io/sys')
-rw-r--r--io/sys/stat.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/io/sys/stat.h b/io/sys/stat.h
index c4b307f..7221b4e 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -236,13 +236,19 @@ extern int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
extern int fstatat (int __fd, __const char *__file, struct stat *__buf,
int __flag) __THROW __nonnull ((2, 3));
# else
+# ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH (fstatat, (int __fd, __const char *__file,
struct stat *__buf, int __flag),
fstatat64) __nonnull ((2, 3));
+# else
+# define fstatat fstatat64
+# endif
# endif
+# ifdef __USE_LARGEFILE64
extern int fstatat64 (int __fd, __const char *__file, struct stat64 *__buf,
int __flag) __THROW __nonnull ((2, 3));
+# endif
#endif
#if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
@@ -446,15 +452,16 @@ __NTH (fstat64 (int __fd, struct stat64 *__statbuf))
{
return __fxstat64 (_STAT_VER, __fd, __statbuf);
}
-# endif
-# ifdef __USE_GNU
+# ifdef __USE_GNU
extern __inline__ int
__NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,
int __flag))
{
return __fxstatat64 (_STAT_VER, __fd, __filename, __statbuf, __flag);
}
+# endif
+
# endif
#endif