Re: off_t in libgsf interface is problematic



On Thu, Aug 08, 2002 at 02:35:32PM +0200, Jon-Kare Hellan wrote:
I think the solution chosen in glib for g_io_channels looks
reasonable. E.g:

GIOError  g_io_channel_seek     (GIOChannel    *channel,
                               gint64         offset, 
                               GSeekType      type);

The implementation uses off_t - 64 bits if available - and checks for
overflow.

What do you think?

Sounds reasonable.  We should convert from GsfOff_t to GSeekType I
had not noticed that enum.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]