aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man3/fmemopen.316
1 files changed, 16 insertions, 0 deletions
diff --git a/man3/fmemopen.3 b/man3/fmemopen.3
index ea09636099..39ea297e30 100644
--- a/man3/fmemopen.3
+++ b/man3/fmemopen.3
@@ -233,6 +233,22 @@ sets the initial file position to the first null byte, but
the end of the stream)
does not force subsequent writes to append at the end of the stream.
+If the
+.I mode
+argument to
+.BR fmemopen ()
+specifies append ("a" or "a+"), and the
+.I size
+argument does not cover a null byte in
+.IR buf
+then, according to POSIX.1-2008,
+the initial 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.
+
The glibc 2.9 addition of "binary" mode for
.BR fmemopen ()
.\" http://sourceware.org/bugzilla/show_bug.cgi?id=6544