This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11216] fmemopen returns NULL when len=0
- From: "ldv at altlinux dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 24 Jan 2010 21:49:55 -0000
- Subject: [Bug libc/11216] fmemopen returns NULL when len=0
- References: <20100124113552.11216.alexshinn@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ldv at altlinux dot org 2010-01-24 21:49 -------
(In reply to comment #0)
> [However, since it doesn't make sense to have an output stream
> with an empty buffer, it seems reasonable to continue to return
> NULL for the "w"rite case.]
It might have a sense, too: every write would fail with ENOSPC, like every write
to /dev/full does.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11216
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.