Port: implement posix_fallocate wrapper
[babeltrace.git] / formats / ctf / ctf.c
index 3194cfdf394f71c4ed2ecb7fc6c2d411e1992625..b23026d1b23af2ee7cc38f4ca56fded4570569f2 100644 (file)
@@ -53,6 +53,7 @@
 #include "metadata/ctf-ast.h"
 #include "events-private.h"
 #include <babeltrace/compat/memstream.h>
+#include <babeltrace/compat/fcntl.h>
 
 #define LOG2_CHAR_BIT  3
 
@@ -904,7 +905,7 @@ void ctf_packet_seek(struct bt_stream_pos *stream_pos, size_t index, int whence)
                }
                pos->content_size = -1U;        /* Unknown at this point */
                pos->packet_size = WRITE_PACKET_LEN;
-               off = posix_fallocate(pos->fd, pos->mmap_offset,
+               off = bt_posix_fallocate(pos->fd, pos->mmap_offset,
                                      pos->packet_size / CHAR_BIT);
                assert(off == 0);
                pos->offset = 0;
This page took 0.023079 seconds and 4 git commands to generate.