mirror of git://sourceware.org/git/glibc.git
* 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.
This commit is contained in:
parent
8ce9ea74cc
commit
c6f688a090
|
@ -1,3 +1,11 @@
|
|||
2005-11-17 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* 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.
|
||||
|
||||
2005-11-17 Steven Munroe <sjmunroe@us.ibm.com>
|
||||
|
||||
[BZ #1877]
|
||||
|
|
|
@ -114,9 +114,11 @@ extern int __REDIRECT (openat, (int __fd, __const char *__file, int __oflag,
|
|||
# endif
|
||||
# endif
|
||||
|
||||
# ifdef __USE_LARGEFILE64
|
||||
extern int openat64 (int __fd, __const char *__file, int __oflag, ...)
|
||||
__nonnull ((2));
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* Create and open FILE, with mode MODE. This takes an `int' MODE
|
||||
argument because that is what `mode_t' will be widened to.
|
||||
|
|
|
@ -236,14 +236,20 @@ 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
|
||||
# ifndef __USE_FILE_OFFSET64
|
||||
|
@ -446,7 +452,6 @@ __NTH (fstat64 (int __fd, struct stat64 *__statbuf))
|
|||
{
|
||||
return __fxstat64 (_STAT_VER, __fd, __statbuf);
|
||||
}
|
||||
# endif
|
||||
|
||||
# ifdef __USE_GNU
|
||||
extern __inline__ int
|
||||
|
@ -459,6 +464,8 @@ __NTH (fstatat64 (int __fd, __const char *__filename, struct stat64 *__statbuf,
|
|||
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue