Changeset: b40ec3e66e8b for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b40ec3e66e8b
Modified Files:
common/stream/stdio_stream.c
Branch: makelibstreamgreatagain
Log Message:
Let open_stream() set the binary- and readonly flags
diffs (12 lines):
diff --git a/common/stream/stdio_stream.c b/common/stream/stdio_stream.c
--- a/common/stream/stdio_stream.c
+++ b/common/stream/stdio_stream.c
@@ -509,6 +509,8 @@ open_stream(const char *restrict filenam
destroy_stream(s);
return NULL;
}
+ s->readonly = flags[0] == 'r';
+ s->binary = flags[1] == 'b';
s->read = file_read;
s->write = file_write;
s->close = file_close;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list