fmemopen.3: Note one more memory stream bug that was fixed in glibc 2.22

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-03-02 16:14:49 +01:00
parent 39ef79baad
commit 9c048ec195
1 changed files with 17 additions and 0 deletions

View File

@ -296,6 +296,23 @@ by
.BR fopen (3).
This bug is fixed in glibc 2.22.
In versions of glibc before 2.22,
.\" https://sourceware.org/bugzilla/show_bug.cgi?id=14292
when a call to
.BR fseek (3)
with a
.I whence
value of
.B SEEK_END
was performed on a stream created by
.BR fmemopen (),
the
.I offset
was
.IR subtracted
from the end-of-stream position, instead of being added.
This bug is fixed in glibc 2.22.
The glibc 2.9 addition of "binary" mode for
.BR fmemopen ()
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=6544