Re: gnome_vfs_read returns EOF when requesting zero bytes
- From: Alexander Larsson <alexl redhat com>
- To: jersvik fastmail fm
- Cc: "gnome-vfs-list gnome org" <gnome-vfs-list gnome org>
- Subject: Re: gnome_vfs_read returns EOF when requesting zero bytes
- Date: Mon, 21 Feb 2005 08:59:07 +0100
On Sat, 2005-02-19 at 17:26 +0100, Johan Ersvik wrote:
> Hi,
> I noticed that the call gnome_vfs_read(handle, buffer, 0, &nchars)
> returns GNOME_VFS_ERROR_EOF. Is this on purpose or just a boundary case
> that has gone unnoticed? The documentation didn't clear things up much
> either. Rather it implies that the above call should return
> GNOME_VFS_OK.
I consider this a bug.
However, in the case where we have actually reached EOF, what should it
return then? I guess returning GNOME_VFS_OK in this case is ok too,
since you might say the operation succeeds before "reaching" the end of
the file.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's a world-famous native American shaman in drag. She's an orphaned psychic
bodyguard living homeless in New York's sewers. They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]