Fix: define _LGPL_SOURCE in C files
A message that is not in the archive (sent off-list or not yet received): [email protected]
Jérémie Galarneau
AppliedMerged, thanks!
Jérémie
Quoted 1,386 lines · Mathieu Desnoyers
Defining this in headers is a bad practice, since the header is not necessarily the first in the include list.
Signed-off-by Mathieu Desnoyers <[email protected]>--- src/bin/lttng-consumerd/health-consumerd.c | 1 + src/bin/lttng-consumerd/lttng-consumerd.c | 1 + src/bin/lttng-relayd/cmd-2-1.c | 1 + src/bin/lttng-relayd/cmd-2-2.c | 1 + src/bin/lttng-relayd/cmd-2-4.c | 1 + src/bin/lttng-relayd/cmd-generic.c | 1 + src/bin/lttng-relayd/connection.c | 1 + src/bin/lttng-relayd/ctf-trace.c | 1 + src/bin/lttng-relayd/health-relayd.c | 1 + src/bin/lttng-relayd/index.c | 1 + src/bin/lttng-relayd/live.c | 1 + src/bin/lttng-relayd/lttng-relayd.h | 1 - src/bin/lttng-relayd/main.c | 1 + src/bin/lttng-relayd/session.c | 1 + src/bin/lttng-relayd/stream.c | 1 + src/bin/lttng-relayd/utils.c | 1 + src/bin/lttng-relayd/viewer-stream.c | 1 + src/bin/lttng-sessiond/agent-thread.c | 1 + src/bin/lttng-sessiond/agent.c | 1 + src/bin/lttng-sessiond/buffer-registry.c | 1 + src/bin/lttng-sessiond/channel.c | 1 + src/bin/lttng-sessiond/cmd.c | 1 + src/bin/lttng-sessiond/consumer.c | 1 + src/bin/lttng-sessiond/context.c | 1 + src/bin/lttng-sessiond/event.c | 1 + src/bin/lttng-sessiond/fd-limit.c | 1 + src/bin/lttng-sessiond/ht-cleanup.c | 1 + src/bin/lttng-sessiond/kernel-consumer.c | 1 + src/bin/lttng-sessiond/kernel.c | 1 + src/bin/lttng-sessiond/load-session-thread.c | 1 + src/bin/lttng-sessiond/lttng-sessiond.h | 1 - src/bin/lttng-sessiond/main.c | 1 + src/bin/lttng-sessiond/modprobe.c | 1 + src/bin/lttng-sessiond/save.c | 1 + src/bin/lttng-sessiond/session.c | 1 + src/bin/lttng-sessiond/shm.c | 1 + src/bin/lttng-sessiond/snapshot.c | 1 + src/bin/lttng-sessiond/syscall.c | 1 + src/bin/lttng-sessiond/trace-kernel.c | 1 + src/bin/lttng-sessiond/trace-ust.c | 1 + src/bin/lttng-sessiond/ust-app.c | 1 + src/bin/lttng-sessiond/ust-consumer.c | 1 + src/bin/lttng-sessiond/ust-metadata.c | 1 + src/bin/lttng-sessiond/ust-registry.c | 1 + src/bin/lttng-sessiond/ust-thread.c | 1 + src/bin/lttng-sessiond/utils.c | 1 + src/bin/lttng/commands/add_context.c | 1 + src/bin/lttng/commands/calibrate.c | 1 + src/bin/lttng/commands/create.c | 1 + src/bin/lttng/commands/destroy.c | 1 + src/bin/lttng/commands/disable_channels.c | 1 + src/bin/lttng/commands/disable_events.c | 1 + src/bin/lttng/commands/enable_channels.c | 1 + src/bin/lttng/commands/enable_events.c | 1 + src/bin/lttng/commands/list.c | 1 + src/bin/lttng/commands/load.c | 1 + src/bin/lttng/commands/save.c | 1 + src/bin/lttng/commands/set_session.c | 1 + src/bin/lttng/commands/snapshot.c | 1 + src/bin/lttng/commands/start.c | 1 + src/bin/lttng/commands/stop.c | 1 + src/bin/lttng/commands/version.c | 1 + src/bin/lttng/commands/view.c | 1 + src/bin/lttng/conf.c | 1 + src/bin/lttng/lttng.c | 1 + src/bin/lttng/utils.c | 1 + src/common/compat/compat-epoll.c | 1 + src/common/compat/compat-fcntl.c | 1 + src/common/compat/compat-poll.c | 1 + src/common/config/config.c | 1 + src/common/consumer-metadata-cache.c | 1 + src/common/consumer-stream.c | 1 + src/common/consumer-timer.c | 1 + src/common/consumer.c | 1 + src/common/daemonize.c | 1 + src/common/defaults.c | 2 ++ src/common/error.c | 1 + src/common/futex.c | 1 + src/common/hashtable/hashtable.c | 1 + src/common/hashtable/rculfhash-mm-chunk.c | 2 ++ src/common/hashtable/rculfhash-mm-mmap.c | 2 ++ src/common/hashtable/rculfhash-mm-order.c | 2 ++ src/common/hashtable/utils.c | 1 + src/common/health/health.c | 1 + src/common/index/index.c | 1 + src/common/kernel-consumer/kernel-consumer.c | 1 + src/common/kernel-ctl/kernel-ctl.c | 2 ++ src/common/mi-lttng.c | 3 ++- src/common/pipe.c | 1 + src/common/readwrite.c | 2 ++ src/common/relayd/relayd.c | 1 + src/common/runas.c | 1 + src/common/sessiond-comm/inet.c | 1 + src/common/sessiond-comm/inet6.c | 1 + src/common/sessiond-comm/sessiond-comm.c | 1 + src/common/sessiond-comm/unix.c | 1 + src/common/testpoint/testpoint.c | 1 + src/common/uri.c | 1 + src/common/ust-consumer/ust-consumer.c | 1 + src/common/utils.c | 1 + src/lib/lttng-ctl/load.c | 1 + src/lib/lttng-ctl/lttng-ctl-health.c | 2 ++ src/lib/lttng-ctl/lttng-ctl.c | 1 + src/lib/lttng-ctl/save.c | 1 + src/lib/lttng-ctl/snapshot.c | 1 + 105 files changed, 111 insertions(+), 3 deletions(-)src/bin/lttng-consumerd/health-consumerd.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <fcntl.h> #include <getopt.h> #include <grp.h> src/bin/lttng-consumerd/lttng-consumerd.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <fcntl.h> #include <getopt.h> #include <grp.h> src/bin/lttng-relayd/cmd-2-1.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> src/bin/lttng-relayd/cmd-2-2.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> src/bin/lttng-relayd/cmd-2-4.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> src/bin/lttng-relayd/cmd-generic.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/common.h> src/bin/lttng-relayd/connection.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/common.h> #include "connection.h" src/bin/lttng-relayd/ctf-trace.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/common.h> src/bin/lttng-relayd/health-relayd.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <fcntl.h> #include <getopt.h> #include <grp.h> src/bin/lttng-relayd/index.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/common.h> src/bin/lttng-relayd/live.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <getopt.h> #include <grp.h> #include <limits.h> src/bin/lttng-relayd/lttng-relayd.h +0
-1@@ -19,7 +19,6 @@#ifndef LTTNG_RELAYD_H #define LTTNG_RELAYD_H -#define _LGPL_SOURCE#include <limits.h> #include <urcu.h> #include <urcu/wfcqueue.h> src/bin/lttng-relayd/main.c +1
-0@@ -18,6 +18,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <getopt.h> #include <grp.h> #include <limits.h> src/bin/lttng-relayd/session.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/common.h> #include "ctf-trace.h" src/bin/lttng-relayd/stream.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/common.h> #include "index.h" src/bin/lttng-relayd/utils.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng-relayd/viewer-stream.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/common.h> #include <common/index/index.h> src/bin/lttng-sessiond/agent-thread.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/common.h> src/bin/lttng-sessiond/agent.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <urcu/uatomic.h> src/bin/lttng-sessiond/buffer-registry.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <inttypes.h> #include <common/common.h> src/bin/lttng-sessiond/channel.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <inttypes.h> #include <string.h> #include <unistd.h> src/bin/lttng-sessiond/cmd.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <urcu/list.h> src/bin/lttng-sessiond/consumer.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng-sessiond/context.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdio.h> #include <stdlib.h> #include <string.h> src/bin/lttng-sessiond/event.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <errno.h> #include <urcu/list.h> #include <string.h> src/bin/lttng-sessiond/fd-limit.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <urcu/uatomic.h> #include <sys/time.h> #include <sys/resource.h> src/bin/lttng-sessiond/ht-cleanup.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/hashtable/hashtable.h> src/bin/lttng-sessiond/kernel-consumer.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdio.h> #include <stdlib.h> #include <string.h> src/bin/lttng-sessiond/kernel.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <errno.h> #include <fcntl.h> #include <stdlib.h> src/bin/lttng-sessiond/load-session-thread.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/error.h> #include <common/config/config.h> src/bin/lttng-sessiond/lttng-sessiond.h +0
-1@@ -19,7 +19,6 @@#ifndef _LTT_SESSIOND_H#define _LTT_SESSIOND_H -#define _LGPL_SOURCE#include <urcu.h> #include <urcu/wfcqueue.h> src/bin/lttng-sessiond/main.c +1
-0@@ -18,6 +18,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <getopt.h> #include <grp.h> #include <limits.h> src/bin/lttng-sessiond/modprobe.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng-sessiond/save.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <string.h> src/bin/lttng-sessiond/session.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <limits.h> #include <inttypes.h> #include <stdio.h> src/bin/lttng-sessiond/shm.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <fcntl.h> #include <limits.h> #include <sys/mman.h> src/bin/lttng-sessiond/snapshot.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <string.h> src/bin/lttng-sessiond/syscall.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/bitfield.h> #include <common/common.h> #include <common/kernel-ctl/kernel-ctl.h> src/bin/lttng-sessiond/trace-kernel.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdio.h> #include <stdlib.h> #include <string.h> src/bin/lttng-sessiond/trace-ust.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdio.h> #include <stdlib.h> #include <string.h> src/bin/lttng-sessiond/ust-app.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <errno.h> #include <inttypes.h> #include <pthread.h> src/bin/lttng-sessiond/ust-consumer.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <errno.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng-sessiond/ust-metadata.c +1
-0@@ -20,6 +20,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdint.h> #include <string.h> #include <stdarg.h> src/bin/lttng-sessiond/ust-registry.c +1
-0@@ -15,6 +15,7 @@* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> src/bin/lttng-sessiond/ust-thread.c +1
-0@@ -15,6 +15,7 @@* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <common/common.h> src/bin/lttng-sessiond/utils.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <stdlib.h> #include <unistd.h> src/bin/lttng/commands/add_context.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <ctype.h> #include <popt.h> #include <stdio.h> src/bin/lttng/commands/calibrate.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/create.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <ctype.h> #include <popt.h> src/bin/lttng/commands/destroy.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/disable_channels.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/disable_events.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/enable_channels.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/enable_events.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <popt.h> #include <stdio.h> src/bin/lttng/commands/list.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <inttypes.h> #include <popt.h> #include <stdio.h> src/bin/lttng/commands/load.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <inttypes.h> #include <popt.h> #include <stdio.h> src/bin/lttng/commands/save.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <inttypes.h> #include <popt.h> #include <stdio.h> src/bin/lttng/commands/set_session.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/snapshot.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <popt.h> src/bin/lttng/commands/start.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/stop.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/version.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/commands/view.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <popt.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/conf.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <limits.h> #include <stdio.h> #include <stdlib.h> src/bin/lttng/lttng.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <getopt.h> #include <signal.h> #include <stdio.h> src/bin/lttng/utils.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdlib.h> #include <ctype.h> src/common/compat/compat-epoll.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <fcntl.h> #include <limits.h> src/common/compat/compat-fcntl.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <common/compat/fcntl.h> #include <unistd.h> src/common/compat/compat-poll.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdlib.h> #include <sys/resource.h> src/common/config/config.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <ctype.h> #include <stdio.h> src/common/consumer-metadata-cache.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <pthread.h> #include <stdlib.h> src/common/consumer-stream.c +1
-0@@ -18,6 +18,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <sys/mman.h> src/common/consumer-timer.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <signal.h> src/common/consumer.c +1
-0@@ -18,6 +18,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <poll.h> #include <pthread.h> src/common/daemonize.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <unistd.h> #include <paths.h> #include <fcntl.h> src/common/defaults.c +2
-0@@ -15,6 +15,8 @@* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <stddef.h> #include <unistd.h> src/common/error.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> src/common/futex.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <limits.h> #include <sys/syscall.h> #include <unistd.h> src/common/hashtable/hashtable.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> #include <urcu.h> src/common/hashtable/rculfhash-mm-chunk.c +2
-0@@ -20,6 +20,8 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <stddef.h> #include "rculfhash-internal.h" src/common/hashtable/rculfhash-mm-mmap.c +2
-0@@ -20,6 +20,8 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <unistd.h> #include <sys/mman.h> #include "rculfhash-internal.h" src/common/hashtable/rculfhash-mm-order.c +2
-0@@ -21,6 +21,8 @@* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include "rculfhash-internal.h" staticsrc/common/hashtable/utils.c +1
-0@@ -49,6 +49,7 @@* byte), but shoehorning those bytes into integers efficiently is messy. */ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdint.h> /* defines uint32_t etc */ #include <stdio.h> /* defines printf for tests */ src/common/health/health.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <inttypes.h> #include <stdio.h> src/common/index/index.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <sys/stat.h> #include <sys/types.h> src/common/kernel-consumer/kernel-consumer.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <poll.h> #include <pthread.h> src/common/kernel-ctl/kernel-ctl.c +2
-0@@ -16,6 +16,8 @@* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#define __USE_LINUX_IOCTL_DEFS#include <sys/ioctl.h> #include <string.h> src/common/mi-lttng.c +2
-1@@ -16,7 +16,8 @@* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ - +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <include/config.h> #include <common/config/config.h> #include <lttng/snapshot-internal.h> src/common/pipe.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <fcntl.h> #include <unistd.h> src/common/readwrite.c +2
-0@@ -15,6 +15,8 @@* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <errno.h> #include <limits.h> src/common/relayd/relayd.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <stdio.h> #include <stdlib.h> src/common/runas.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <errno.h> #include <limits.h> #include <stdio.h> src/common/sessiond-comm/inet.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <limits.h> #include <stdio.h> src/common/sessiond-comm/inet6.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <limits.h> #include <stdio.h> src/common/sessiond-comm/sessiond-comm.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <limits.h> #include <stdio.h> src/common/sessiond-comm/unix.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <limits.h> #include <stdio.h> src/common/testpoint/testpoint.c +1
-0@@ -18,6 +18,7 @@#ifndef NTESTPOINT #define _GNU_SOURCE/* for RTLD_DEFAULT GNU extension */ +#define _LGPL_SOURCE#include <dlfcn.h> /* for dlsym */ #include <stdlib.h> /* for getenv */ #include <string.h> /* for strncmp */ src/common/uri.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <arpa/inet.h> #include <netdb.h> src/common/ust-consumer/ust-consumer.c +1
-0@@ -17,6 +17,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <lttng/ust-ctl.h> #include <poll.h> src/common/utils.c +1
-0@@ -18,6 +18,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <ctype.h> #include <fcntl.h> src/lib/lttng-ctl/load.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> src/lib/lttng-ctl/lttng-ctl-health.c +2
-0@@ -20,6 +20,8 @@* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _GNU_SOURCE +#define _LGPL_SOURCE#include <unistd.h> #include <sys/types.h> #include <stdint.h> src/lib/lttng-ctl/lttng-ctl.c +1
-0@@ -20,6 +20,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <grp.h> #include <errno.h> src/lib/lttng-ctl/save.c +1
-0@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> src/lib/lttng-ctl/snapshot.c +1
-1@@ -16,6 +16,7 @@*/ #define _GNU_SOURCE +#define _LGPL_SOURCE#include <assert.h> #include <string.h> --2.1.1
Signature · 8 lines
Jérémie Galarneau EfficiOS Inc. http://www.efficios.com _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev