diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-07-06 07:35:57 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-07-06 07:35:57 -0700 |
commit | 567baab047c82c17c7e3d5a16dc508b5abf6cd25 (patch) | |
tree | cf320330fef3daa46db221c4fb01ba9ad565ada3 /txr.1 | |
parent | 8b3d6f7449e73781e4442aed029b55810b04c75e (diff) | |
download | txr-567baab047c82c17c7e3d5a16dc508b5abf6cd25.tar.gz txr-567baab047c82c17c7e3d5a16dc508b5abf6cd25.tar.bz2 txr-567baab047c82c17c7e3d5a16dc508b5abf6cd25.zip |
Clarify clear-error and flush return value.
* stream.c (stdio_clear_error): Return the prior value of h->err.
Do not inspect feof(h->f) or ferror(h->f); just clear the error
status of the stream.
(stdio_close): Set h->err from errno if fclose failed.
(dir_clear_error): Return prior value of h->err.
* txr.1: Document return value convetion for clear-error,
and flush-stream.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -24228,6 +24228,9 @@ The function removes the error situation from a stream. On some streams, it does nothing. If an error has occurred on a stream, this function should be called prior to re-trying any I/O or positioning operations. +The return value is the previous error code, or +.code nil +if there was no error, or the operation is not supported on the stream. .coNP Functions @, get-line @ get-char and @ get-byte .synb @@ -24452,7 +24455,8 @@ causes all accumulated data inside .meta stream to be passed to the operating system. If called on streams for which this function is not -meaningful, it does nothing. +meaningful, it does nothing, and returns +.codn nil . .coNP Function @ seek-stream .synb |