summaryrefslogtreecommitdiff
path: root/lib/freading.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-04-29 08:38:22 +0000
committerBruno Haible <bruno@clisp.org>2007-04-29 08:38:22 +0000
commit17fecfc4d6363d6d4127a97b42f0acbbcbd60a44 (patch)
tree66bbafcd8e5dd2f609bc027715f0113ffa9e51df /lib/freading.h
parent2efbc429c545367a904e03e6f62b271ce48b70fd (diff)
downloadgnulib-17fecfc4d6363d6d4127a97b42f0acbbcbd60a44.tar.gz
freading has an undefined value after repositioning a read-write stream.
Diffstat (limited to 'lib/freading.h')
-rw-r--r--lib/freading.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/freading.h b/lib/freading.h
index 1845de1a85..9bd2eaf3ab 100644
--- a/lib/freading.h
+++ b/lib/freading.h
@@ -24,10 +24,12 @@
writing and there is no current read operation (such as fputc).
freading and fwriting will never both be true. If STREAM supports
- both reads and writes, then both freading and fwriting might be
- false when the stream is first opened, after repositioning (such as
- fseek, fsetpos, or rewind), after read encounters EOF, or after
- fflush, depending on the underlying implementation.
+ both reads and writes, then:
+ - both freading and fwriting might be false when the stream is first
+ opened, after read encounters EOF, or after fflush,
+ - freading might be false or true and fwriting might be false
+ after repositioning (such as fseek, fsetpos, or rewind),
+ depending on the underlying implementation.
STREAM must not be wide-character oriented. */