[Bug stdio/13151] fmemopen streams fail to read eof

mtk.manpages at gmail dot com sourceware-bugzilla@sourceware.org
Sat Apr 28 03:28:00 GMT 2012


http://sourceware.org/bugzilla/show_bug.cgi?id=13151

--- Comment #4 from Michael Kerrisk <mtk.manpages at gmail dot com> 2012-04-28 03:27:37 UTC ---
I've added the following text to the man page under BUGS

[[
If the
.I size
argument given to
.BR fmemopen ()
does not cover a null byte in
.IR buf
then, according to POSIX.1-2008,
the file position should be set to the next byte after the end of the buffer.
However, in this case, the glibc
.\" FIXME http://sourceware.org/bugzilla/show_bug.cgi?id=13151
.BR fmemopen ()
sets the file position to \-1.
]]

-- 
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.



More information about the Glibc-bugs mailing list