See upstream commit :
commit
04e85bbf71c9072dcf0ad9a7150495d72461105c
Author: Alexey Dobriyan <adobriyan@gmail.com>
Date: Mon Aug 2 23:43:15 2021 +0300
isystem: delete global -isystem compile option
Further isolate kernel from userspace, prevent accidental inclusion of
undesireable headers, mainly float.h and stdatomic.h.
nds32 keeps -isystem globally due to intrinsics used in entrenched header.
-isystem is selectively reenabled for some files, again, for intrinsics.
Change-Id: I5bea29687dc2bc15e96eeb13008aefe1acc97b8a
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <stddef.h>
#ifdef __KERNEL__
#include <linux/types.h>
#else /* __KERNEL__ */
* Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com>
*/
-#include <stdbool.h>
-
typedef char (*strutils_get_char_at_cb)(size_t, void *);
bool strutils_is_star_glob_pattern(const char *pattern);
* Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
*/
-#include <stdarg.h>
#include <linux/types.h>
#include <linux/limits.h>
#include <linux/list.h>
#define _GNU_SOURCE
#define _LGPL_SOURCE
-#include <stddef.h>
#define MSGPACK_FIXSTR_ID_MASK 0xA0
#define MSGPACK_FIXMAP_ID_MASK 0x80
#include <ringbuffer/frontend.h>
#include <wrapper/time.h>
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0))
+#include <linux/stdarg.h>
+#else
+#include <stdarg.h>
+#endif
+
#define METADATA_CACHE_DEFAULT_SIZE 4096
static LIST_HEAD(sessions);
#include <wrapper/file.h>
#include <wrapper/rcu.h>
#include <wrapper/syscall.h>
+#include <wrapper/limits.h>
#include <lttng/events.h>
#include <lttng/events-internal.h>
#include <lttng/utils.h>
#ifndef LTTNG_SYSCALLS_H
#define LTTNG_SYSCALLS_H
-#include <stddef.h>
-
#include <asm/ptrace.h>
#include <linux/compat.h>
#include <linux/fcntl.h>