This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/11216] fmemopen returns NULL when len=0
- From: "mtk.manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 28 Apr 2012 03:21:41 +0000
- Subject: [Bug stdio/11216] fmemopen returns NULL when len=0
- Auto-submitted: auto-generated
- References: <bug-11216-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=11216
--- Comment #5 from Michael Kerrisk <mtk.manpages at gmail dot com> 2012-04-28 03:21:41 UTC ---
I've added the following text to the fmemopen(3) man page:
[[
If
.I size
is specified as zero,
.BR fmemopen ()
fails with the error
.BR EINVAL .
.\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=11216
It would be more consistent if this case successfully created
a stream that then returned end of file on the first attempt at reading.
]]
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.