diff options
author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-09 04:31:40 +0100 |
---|---|---|
committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-03-09 04:31:40 +0100 |
commit | d779692dc772a756e04a6cfeb02d6358b25bdb70 (patch) | |
tree | e685e6009871e976324a5f38cd6baf35d85b2889 | |
parent | 82aa5cf962a2f435007de52be26755665be15bf4 (diff) | |
download | man-pages-d779692dc772a756e04a6cfeb02d6358b25bdb70.tar.gz |
fmemopen.3: Small clarification to the discussion of write errors
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r-- | man3/fmemopen.3 | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/man3/fmemopen.3 b/man3/fmemopen.3 index 6517bb0d37..4cac0db487 100644 --- a/man3/fmemopen.3 +++ b/man3/fmemopen.3 @@ -134,12 +134,17 @@ only when the file current position advances .I size bytes past the start of the buffer. +Write operations take place either at the current position +(for modes other than append), or at the current size of the stream +(for append modes). + Attempts to write more than .I size bytes to the buffer result in an error. -(By default, such errors will be visible only when the +By default, such errors will be visible +(by the absence of data) only when the .I stdio -buffer is flushed.) +buffer is flushed. Disabling buffering with the following call may be useful to detect errors at the time of an output operation: |