+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
+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
+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
+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
+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
+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
+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
+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
+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:
===================================
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)
AM_PROG_CC_STDC
AC_PROG_INSTALL
+AC_SYS_LARGEFILE
+
#
# Find pkg-config
#
**/
GIOError
g_io_channel_seek (GIOChannel *channel,
- glong offset,
+ gint64 offset,
GSeekType type)
{
GError *err = NULL;
**/
GIOStatus
g_io_channel_seek_position (GIOChannel* channel,
- glong offset,
+ gint64 offset,
GSeekType type,
GError **error)
{
gsize *bytes_written,
GError **err);
GIOStatus (*io_seek) (GIOChannel *channel,
- glong offset,
+ gint64 offset,
GSeekType type,
GError **err);
GIOStatus (*io_close) (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 */
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,
* MT safe
*/
+#include "config.h"
+
#include "glib.h"
#include <sys/types.h>
#include <sys/stat.h>
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,
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)
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)
{
/* Define this to get (very) verbose logging of all channels */
/* #define G_IO_WIN32_DEBUG */
+#include "config.h"
+
#include "glib.h"
#include <stdlib.h>
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)
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)
{