f195c1528e7d89b8a950ab7da46962fc36626dd1
[lttng-ust.git] / libringbuffer / mmap.h
1 #ifndef _LTTNG_MMAP_H
2 #define _LTTNG_MMAP_H
3
4 /*
5 * Copyright (c) 2019 - Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; only
10 * version 2.1 of the License.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #include <sys/mman.h>
23
24 #if defined(__linux__) && defined(MAP_POPULATE)
25 # define LTTNG_MAP_POPULATE MAP_POPULATE
26 #else
27 # define LTTNG_MAP_POPULATE 0
28 #endif /* __linux__ && MAP_POPULATE */
29
30 #endif /* _LTTNG_MMAP_H */
This page took 0.036751 seconds and 3 git commands to generate.