X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=af1809efc8a0390986027bded924e6d2b3bb932e;hp=865e2c2e0e8e21ebddcce42c55db55f497e182c9;hb=edcad9c1c88e6e698040855d7518d0c27dfc4489;hpb=72a3bc16d8ecc59e593f5cfec4622cbc7fb2f3fc diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 865e2c2e..af1809ef 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -53,6 +53,7 @@ #include "metadata/ctf-ast.h" #include "events-private.h" #include +#include #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;