fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / src / common / compat / compat-fcntl.cpp
... / ...
CommitLineData
1/*
2 * Copyright (C) 2011 David Goulet <dgoulet@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#define _LGPL_SOURCE
9#include <common/compat/fcntl.hpp>
10#include <common/macros.hpp>
11
12#include <unistd.h>
13
14#ifdef __linux__
15
16int compat_sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags)
17{
18#ifdef HAVE_SYNC_FILE_RANGE
19 return sync_file_range(fd, offset, nbytes, flags);
20#else
21 return fdatasync(fd);
22#endif
23}
24
25#endif /* __linux__ */
This page took 0.022027 seconds and 4 git commands to generate.