1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1)
5 * Copyright (C) 2015 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 #ifndef _LTTNG_WRAPPER_TIME_H
9 #define _LTTNG_WRAPPER_TIME_H
11 #include <linux/version.h>
12 #include <linux/time.h>
14 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
16 static inline bool lttng_close_on_exec(int fd
, const struct fdtable
*fdt
)
18 return close_on_exec(fd
, fdt
);
23 static inline bool lttng_close_on_exec(int fd
, const struct fdtable
*fdt
)
25 return FD_ISSET(fd
, fdt
->close_on_exec
);
30 #endif /* _LTTNG_WRAPPER_TIME_H */
This page took 0.030242 seconds and 4 git commands to generate.