about summary refs log tree commit diff
path: root/locale/loadlocale.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-01 02:26:05 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-01 02:26:05 +0000
commit8edf6e0d7e556fa80415ebd35da70ccf594b6373 (patch)
tree9d62f8c094e8fe32758f68a18845ef90850db924 /locale/loadlocale.c
parent3d784d830015dcb614bf2d154e726e67bd10ea32 (diff)
downloadglibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.tar.gz
glibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.tar.xz
glibc-8edf6e0d7e556fa80415ebd35da70ccf594b6373.zip
Update.
	* inet/rcmd.c: Use *stat64 instead of *stat internally.
	* inet/ruserpass.c: Likewise.
	* intl/loadmsgcat.c: Likewise.
	* io/getdirname.c: Likewise.
	* locale/loadlocale.c: Likewise.
	* misc/getusershell.c: Likewise.
	* stdlib/canonicalize.c: Likewise.
	* sysdeps/posix/euidaccess.c: Likewise.
	* sysdeps/posix/isfdtype.c: Likewise.
	* sysdeps/posix/posix_fallocate.c: Likewise.
	* sysdeps/posix/tempname.c: Likewise.
	* sysdeps/unix/grantpt.c: Likewise.
	* sysdeps/unix/opendir.c: Likewise.
	* sysdeps/unix/sysv/linux/fstatvfs.c: Likewise.
	* sysdeps/unix/sysv/linux/internal_statvfs.c: Likewise.
	* sysdeps/unix/sysv/linux/ptsname.c: Likewise.
	* sysdeps/unix/sysv/linux/statvfs.c: Likewise.
	* sysdeps/unix/sysv/linux/ttyname.c: Likewise.
	* sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
	* sysvipc/ftok.c: Likewise.
	* time/getdate.c: Likewise.

	* time/getdate.c: Add extra access test.

2000-08-31  Ulrich Drepper  <drepper@redhat.com>
Diffstat (limited to 'locale/loadlocale.c')
-rw-r--r--locale/loadlocale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/loadlocale.c b/locale/loadlocale.c
index 34f762388f..4aacbc9d26 100644
--- a/locale/loadlocale.c
+++ b/locale/loadlocale.c
@@ -69,7 +69,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
       unsigned int nstrings;
       unsigned int strindex[0];
     } *filedata;
-  struct stat st;
+  struct stat64 st;
   struct locale_data *newdata;
   int save_err;
   int mmaped = 1;
@@ -83,7 +83,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
     /* Cannot open the file.  */
     return;
 
-  if (__builtin_expect (__fstat (fd, &st), 0) < 0)
+  if (__builtin_expect (__fxstat64 (_STAT_VER, fd, &st), 0) < 0)
     goto puntfd;
   if (__builtin_expect (S_ISDIR (st.st_mode), 0))
     {
@@ -106,7 +106,7 @@ _nl_load_locale (struct loaded_l10nfile *file, int category)
       if (__builtin_expect (fd, 0) < 0)
 	return;
 
-      if (__builtin_expect (__fstat (fd, &st), 0) < 0)
+      if (__builtin_expect (__fxstat64 (_STAT_VER, fd, &st), 0) < 0)
 	goto puntfd;
     }