diff options
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -83,16 +83,18 @@ struct strm_ops { } struct stdio_mode { - int malformed; - int read; - int write; - int create; - int append; - int binary; - int interactive; + unsigned malformed : 1; + unsigned read : 1; + unsigned write : 1; + unsigned create : 1; + unsigned append : 1; + unsigned binary : 1; + unsigned interactive : 1; + unsigned unbuf : 1; + unsigned linebuf : 1; }; -#define stdio_mode_init_trivial(read) { 0, read, 0, 0, 0, 0, 0 } +#define stdio_mode_init_trivial(read) { 0, read, 0, 0, 0, 0, 0, 0, 0 } #define std_input (deref(lookup_var_l(nil, stdin_s))) #define std_output (deref(lookup_var_l(nil, stdout_s))) |