]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove _G_off64_t and _G_stat64 from _G_config.h.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 9 Oct 2012 15:09:32 +0000 (15:09 +0000)
ChangeLog
libio/filedoalloc.c
libio/fileops.c
libio/libio.h
libio/oldfileops.c
libio/wfileops.c
sysdeps/generic/_G_config.h
sysdeps/unix/sysv/linux/_G_config.h

index 6af01e5f13fce99932e152eeb20d46d0d76e6dc0..80bce18cca59edc8b10471ab68a128a46a7125cc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2012-10-09  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
+       (_G_stat64): Likewise.
+       * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
+       (_G_stat64): Likewise.
+       * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
+       instead of struct _G_stat64.
+       * libio/fileops.c (mmap_remap_check): Likewise.
+       (decide_maybe_mmap): Likewise.
+       (_IO_new_file_seekoff): Likewise.
+       (_IO_file_stat): Likewise.
+       * libio/libio.h (_IO_off64_t): Define to __off64_t, not
+       _G_off64_t.
+       * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
+       instead of struct _G_stat64.
+       * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
+
 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
 
        [BZ #14602]
index b7733c7f889ffb75095e68abbe588e330a3d8166..c9b0f01722a1c5b65f4e2df24e951154d133ae21 100644 (file)
@@ -96,7 +96,7 @@ _IO_file_doallocate (fp)
 {
   _IO_size_t size;
   char *p;
-  struct _G_stat64 st;
+  struct stat64 st;
 
 #ifndef _LIBC
   /* If _IO_cleanup_registration_needed is non-zero, we should call the
index 173091cc6c591c16f3ece136396e13804d03d5a6..5367ea951707f2e7623ff0fad50e9295ffedaa8e 100644 (file)
@@ -635,7 +635,7 @@ libc_hidden_ver (_IO_new_file_underflow, _IO_file_underflow)
 static int
 mmap_remap_check (_IO_FILE *fp)
 {
-  struct _G_stat64 st;
+  struct stat64 st;
 
   if (_IO_SYSSTAT (fp, &st) == 0
       && S_ISREG (st.st_mode) && st.st_size != 0
@@ -763,7 +763,7 @@ decide_maybe_mmap (_IO_FILE *fp)
      file descriptors are for mmap-able objects and on 32-bit
      machines we don't want to map files which are too large since
      this would require too much virtual memory.  */
-  struct _G_stat64 st;
+  struct stat64 st;
 
   if (_IO_SYSSTAT (fp, &st) == 0
       && S_ISREG (st.st_mode) && st.st_size != 0
@@ -1049,7 +1049,7 @@ _IO_new_file_seekoff (fp, offset, dir, mode)
       break;
     case _IO_seek_end:
       {
-       struct _G_stat64 st;
+       struct stat64 st;
        if (_IO_SYSSTAT (fp, &st) == 0 && S_ISREG (st.st_mode))
          {
            offset += st.st_size;
@@ -1250,7 +1250,7 @@ _IO_file_stat (fp, st)
      void *st;
 {
 #ifdef _G_FSTAT64
-  return _G_FSTAT64 (fp->_fileno, (struct _G_stat64 *) st);
+  return _G_FSTAT64 (fp->_fileno, (struct stat64 *) st);
 #else
   return fstat (fp->_fileno, (struct stat *) st);
 #endif
index f093a93e9924cf62f28e009b7b8f611f383763c2..45f4707e66860c99a6f6046f6309951942854612 100644 (file)
@@ -37,7 +37,7 @@
 #define _IO_size_t size_t
 #define _IO_ssize_t __ssize_t
 #define _IO_off_t __off_t
-#define _IO_off64_t _G_off64_t
+#define _IO_off64_t __off64_t
 #define _IO_pid_t __pid_t
 #define _IO_uid_t __uid_t
 #define _IO_iconv_t _G_iconv_t
index 8fda0484aa323a64f74991f2e6845f4d84dc70f9..aa4e3f5f916db9c1bb8ca533a1ce2ccddee13a18 100644 (file)
@@ -530,7 +530,7 @@ _IO_old_file_seekoff (fp, offset, dir, mode)
       break;
     case _IO_seek_end:
       {
-       struct _G_stat64 st;
+       struct stat64 st;
        if (_IO_SYSSTAT (fp, &st) == 0 && S_ISREG (st.st_mode))
          {
            offset += st.st_size;
index 1087e8df8d060600624e1daf41905fd6c4ea3e44..44b1236c01030cfabb9135316074ffde20dbff02 100644 (file)
@@ -787,7 +787,7 @@ _IO_wfile_seekoff (fp, offset, dir, mode)
       break;
     case _IO_seek_end:
       {
-       struct _G_stat64 st;
+       struct stat64 st;
        if (_IO_SYSSTAT (fp, &st) == 0 && S_ISREG (st.st_mode))
          {
            offset += st.st_size;
index b3a7db72ab965b6a57d417422e8885439d26b16c..e4f27673136ae3183b4d1ca57b68213b786683e9 100644 (file)
@@ -28,8 +28,6 @@ typedef struct
   __off64_t __pos;
   __mbstate_t __state;
 } _G_fpos64_t;
-#define _G_off64_t     __off64_t
-#define _G_stat64      stat64
 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
 # include <gconv.h>
 typedef union
index 4d3ae36c4d2ce3984f421b81c533ad9132a5dce6..ec2e33317d6326ecb12abca5848e7fdf0daad547 100644 (file)
@@ -28,8 +28,6 @@ typedef struct
   __off64_t __pos;
   __mbstate_t __state;
 } _G_fpos64_t;
-#define _G_off64_t     __off64_t
-#define _G_stat64      stat64
 #if defined _LIBC || defined _GLIBCPP_USE_WCHAR_T
 # include <gconv.h>
 typedef union