Port: implement posix_fallocate wrapper
[babeltrace.git] / formats / ctf / ctf.c
index 865e2c2e0e8e21ebddcce42c55db55f497e182c9..af1809efc8a0390986027bded924e6d2b3bb932e 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
 
@@ -906,7 +907,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.022842 seconds and 4 git commands to generate.