Use O_RDWR for open write mode (for mmap)
[babeltrace.git] / formats / ctf / types / float.c
index c494ee8202dec2ef9f9ac7d0f23b82c2fc377cf2..ebd7b7ae166c91a3be761b2ea9da6198e3cf9277 100644 (file)
@@ -148,7 +148,7 @@ int ctf_float_read(struct stream_pos *ppos, struct definition *definition)
        struct ctf_stream_pos destp;
        int ret;
 
-       ctf_init_pos(&destp, -1, O_WRONLY);
+       ctf_init_pos(&destp, -1, O_RDWR);
        destp.base = (char *) u.bits;
 
        ctf_align_pos(pos, float_declaration->p.alignment);
This page took 0.023167 seconds and 4 git commands to generate.