projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add FreeBSD compat layer for splice and sync_file_range
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 16c09af8a14befab07fc824999282f375c607a0e..9a5775b8ed3bff1bf996dc244516b1dce2685257 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-26,13
+26,14
@@
#include <string.h>
#include <sys/mman.h>
#include <sys/socket.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/socket.h>
+#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <lttng/ust-ctl.h>
#include <sys/types.h>
#include <unistd.h>
#include <lttng/ust-ctl.h>
-#include <common/lttngerr.h>
-#include <common/runas.h>
+#include <common/common.h>
#include <common/sessiond-comm/sessiond-comm.h>
#include <common/sessiond-comm/sessiond-comm.h>
+#include <common/compat/fcntl.h>
#include "ust-consumer.h"
#include "ust-consumer.h"
@@
-72,7
+73,7
@@
int lttng_ustconsumer_on_read_subbuffer_mmap(
goto end;
}
/* This won't block, but will start writeout asynchronously */
goto end;
}
/* This won't block, but will start writeout asynchronously */
- sync_file_range(outfd, stream->out_fd_offset, ret,
+
lttng_
sync_file_range(outfd, stream->out_fd_offset, ret,
SYNC_FILE_RANGE_WRITE);
stream->out_fd_offset += ret;
}
SYNC_FILE_RANGE_WRITE);
stream->out_fd_offset += ret;
}
This page took
0.023508 seconds
and
4
git commands to generate.