summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
Diffstat (limited to 'stream.h')
-rw-r--r--stream.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/stream.h b/stream.h
index b96a0ae6..2474ce13 100644
--- a/stream.h
+++ b/stream.h
@@ -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)))