diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-03-18 06:29:25 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-03-18 06:29:25 -0700 |
commit | 1ef8071c738db67214e7d20502496146d2a40821 (patch) | |
tree | 6b552ee894deab4c77915e45a8c96082ab42f850 /txr.1 | |
parent | e84da36197b809c50a0c43cceb5c7b27b3d5733e (diff) | |
download | txr-1ef8071c738db67214e7d20502496146d2a40821.tar.gz txr-1ef8071c738db67214e7d20502496146d2a40821.tar.bz2 txr-1ef8071c738db67214e7d20502496146d2a40821.zip |
New l and u letters in stream open mode strings.
* stream.c (parse_mode): Recognize "l" and "u", and
set new flags.
(set_mode_props): More complicated behavior to
integrate the new options with the line mode defaulting
behavior of "i".
* stream.h (struct stdio_mode): New members unbuf
and linebuf. All members become bit fields of width 1.
(stdio_mode_init_trivial): Initializers for new members.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 33 |
1 files changed, 30 insertions, 3 deletions
@@ -34430,17 +34430,44 @@ argument is omitted, mode .str r is used. +Additional option letters are supported in +.meta mode-string +which are not feature of the standard C +.code fopen +function. These letters cannot occur anywhere in the string. They can occur in the +same position as the +.str b +option, in any order with respect to that +.str b +or each other. Their relative order doesn't matter. + +The letter +.str l +indicates that the stream will be line buffered. This means that an implicit +flush operation takes place whenever the newline character is output. + +The letter +.str u +indicates that the stream will be unbuffered. + +It is erroneous for both +.str l +and +.str u +to be specified. + The option letter .str i -is supported. If present, it will create a stream which has the real-time +indicates that the stream will have the real-time property set. For a description of the semantics, see the .code real-time-stream-p function. Briefly, this property affects the semantics of lazy lists which draw input from the stream. In addition, for a stream opened for writing or reading and writing, the .str i -mode letter specifies that the stream will be line-buffered. This means that an -implicit flush operation takes place whenever the newline character is output. +mode letter specifies that the stream will be line buffered, unless +specified as unbuffered with +.strn u . .coNP Function @ open-tail .synb |