Updated.
authorOwen Taylor <otaylor@redhat.com>
Fri, 15 Feb 2002 16:41:54 +0000 (16:41 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 15 Feb 2002 16:41:54 +0000 (16:41 +0000)
Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>

        * NEWS: Updated.

        * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
        (#71410, Sven Neumann)

        * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
        Change offset type for g_io_channel_seek[_position] to
        gint64.

14 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
NEWS
configure.in
glib/giochannel.c
glib/giochannel.h
glib/giounix.c
glib/giowin32.c

index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
index 1f515420ca3f20bb94d006f27bcfd5d301a70bcd..48a0336b319629237fed716905b2e8811394b6d6 100644 (file)
@@ -1,3 +1,14 @@
+Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * NEWS: Updated.
+
+       * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
+       (#71410, Sven Neumann)
+
+       * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
+       Change offset type for g_io_channel_seek[_position] to
+       gint64.
+
 2002-02-15  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
 
        * tests/thread-test.c: Do not assume, that after
diff --git a/NEWS b/NEWS
index 6faa07cf724ba4af3876fe79e59cdac32bae1ce8..364d25cc39e8843ecf595ad380de48fa1c63c719 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,18 @@
+Overview of Changes in GLib 1.3.14:
+===================================
+
+* Register value transformations for gint64, guint64 [Andy Wingo]
+* Build with large-file support [Sven Neumann, Owen Taylor]
+* Fix handling of hostnames in URI's [Darin Adler]
+* Main loop bug fixes [Havoc Pennington, Owen]
+* Doc fixes and improvements [Manish Singh, Tim Janik]
+* Support ' as attribute delimiters in GMarkup [Matthias Clasen]
+* Win32 fixes [Hans Breuer, Tor Lillqvist]
+* Threading bug and build fixes [Sebastian Wilhelmi, Miroslaw Dobrzanski-Neumann]
+* Miscellaneous bug fixes
+
+Other contributors: Matthias Clasen, Mitch Natterer, James Henstridge
+
 Overview of Changes in GLib 1.3.13:
 ===================================
 
index 252d80ccf515a18878621e4ff14d69aeb99d6e25..b06f8a3d6078628754cd1b9ec986750cf1c4aee0 100644 (file)
@@ -5,8 +5,8 @@ builtin(include, acglib.m4)dnl
 builtin(include, glib/libcharset/codeset.m4)dnl
 builtin(include, glib/libcharset/glibc21.m4)dnl
 
-# require autoconf 2.13
-AC_PREREQ(2.13)
+# require autoconf 2.52
+AC_PREREQ(2.52)
 
 # Process this file with autoconf to produce a configure script.
 AC_INIT(glib/glib.h)
@@ -196,6 +196,8 @@ AC_LANG_RESTORE
 AM_PROG_CC_STDC
 AC_PROG_INSTALL
 
+AC_SYS_LARGEFILE
+
 #
 # Find pkg-config
 #
index fe60dc7f5614034ed6595f0942576a51c0866d69..a82bf0e47d9029a8bbcb834c7527f00587121cb6 100644 (file)
@@ -239,7 +239,7 @@ g_io_channel_write (GIOChannel  *channel,
  **/
 GIOError 
 g_io_channel_seek  (GIOChannel   *channel,
-                   glong         offset, 
+                   gint64        offset, 
                    GSeekType     type)
 {
   GError *err = NULL;
@@ -799,7 +799,7 @@ g_io_channel_get_close_on_unref     (GIOChannel *channel)
  **/
 GIOStatus
 g_io_channel_seek_position     (GIOChannel* channel,
-                                glong       offset,
+                                gint64      offset,
                                 GSeekType   type,
                                 GError    **error)
 {
index 1ff325b5b3ab2dff19332bc67f3ff442f5c15566..80d2d9bf31b370b6005a9471602a435873b3bfb4 100644 (file)
@@ -145,7 +145,7 @@ struct _GIOFuncs
                                  gsize        *bytes_written,
                                  GError      **err);
   GIOStatus (*io_seek)           (GIOChannel   *channel, 
-                                 glong         offset, 
+                                 gint64        offset, 
                                  GSeekType     type,
                                  GError      **err);
   GIOStatus  (*io_close)         (GIOChannel   *channel,
@@ -173,7 +173,7 @@ GIOError  g_io_channel_write    (GIOChannel    *channel,
                                 gsize          count,
                                 gsize         *bytes_written);
 GIOError  g_io_channel_seek     (GIOChannel    *channel,
-                                glong          offset, 
+                                gint64         offset, 
                                 GSeekType      type);
 void      g_io_channel_close    (GIOChannel    *channel);
 #endif /* G_DISABLE_DEPRECATED */
@@ -254,7 +254,7 @@ GIOStatus   g_io_channel_write_unichar    (GIOChannel   *channel,
                                           gunichar      thechar,
                                           GError      **error);
 GIOStatus   g_io_channel_seek_position    (GIOChannel   *channel,
-                                          glong         offset,
+                                          gint64        offset,
                                           GSeekType     type,
                                           GError      **error);
 GIOChannel* g_io_channel_new_file         (const gchar  *filename,
index bc5211215f21b98f20b26903e274ca4a2dfabe09..826a2e5b440d2d80231adae3588a3148fe9d7d1b 100644 (file)
@@ -31,6 +31,8 @@
  * MT safe
  */
 
+#include "config.h"
+
 #include "glib.h"
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -73,7 +75,7 @@ static GIOStatus      g_io_unix_write         (GIOChannel   *channel,
                                                 gsize        *bytes_written,
                                                 GError      **err);
 static GIOStatus       g_io_unix_seek          (GIOChannel   *channel,
-                                                glong         offset,
+                                                gint64        offset,
                                                 GSeekType     type,
                                                 GError      **err);
 static GIOStatus       g_io_unix_close         (GIOChannel   *channel,
@@ -251,12 +253,13 @@ g_io_unix_write (GIOChannel  *channel,
 
 static GIOStatus
 g_io_unix_seek (GIOChannel *channel,
-               glong       offset, 
+               gint64      offset, 
                GSeekType   type,
                 GError    **err)
 {
   GIOUnixChannel *unix_channel = (GIOUnixChannel *)channel;
   int whence;
+  off_t tmp_offset;
   off_t result;
 
   switch (type)
@@ -275,7 +278,16 @@ g_io_unix_seek (GIOChannel *channel,
       g_assert_not_reached ();
     }
 
-  result = lseek (unix_channel->fd, offset, whence);
+  tmp_offset = offset;
+  if (tmp_offset != offset)
+    {
+      g_set_error (err, G_IO_CHANNEL_ERROR,
+                  g_io_channel_error_from_errno (EINVAL),
+                  strerror (EINVAL));
+      return G_IO_STATUS_ERROR;
+    }
+  
+  result = lseek (unix_channel->fd, tmp_offset, whence);
 
   if (result < 0)
     {
index 20bc22a83c9a99ca38aec35e4602c8ffbf878d08..e2a29d5b267dcc886a6c6213644bd7dcab3afbe8 100644 (file)
@@ -32,6 +32,8 @@
 /* Define this to get (very) verbose logging of all channels */
 /* #define G_IO_WIN32_DEBUG */
 
+#include "config.h"
+
 #include "glib.h"
 
 #include <stdlib.h>
@@ -898,12 +900,13 @@ g_io_win32_fd_write (GIOChannel  *channel,
 
 static GIOStatus
 g_io_win32_fd_seek (GIOChannel *channel,
-                   glong       offset,
+                   gint64      offset,
                    GSeekType   type,
                    GError    **err)
 {
   GIOWin32Channel *win32_channel = (GIOWin32Channel *)channel;
   int whence;
+  off_t tmp_offset;
   off_t result;
   
   switch (type)
@@ -921,8 +924,17 @@ g_io_win32_fd_seek (GIOChannel *channel,
       whence = -1; /* Keep the compiler quiet */
       g_assert_not_reached();
     }
+
+  tmp_offset = offset;
+  if (tmp_offset != offset)
+    {
+      g_set_error (err, G_IO_CHANNEL_ERROR,
+                  g_io_channel_error_from_errno (EINVAL),
+                  strerror (EINVAL));
+      return G_IO_STATUS_ERROR;
+    }
   
-  result = lseek (win32_channel->fd, offset, whence);
+  result = lseek (win32_channel->fd, tmp_offset, whence);
   
   if (result < 0)
     {