Clean-up: sessiond: cmd_enable_channel_internal
[lttng-tools.git] / src / common / compat / fcntl.h
index 8bbdfe89cc75c122bda2ea7b77db27ca0727ebf6..9fca7f0cdc4699e8ed6155a08b6e7630d1417dfa 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright (C) 2011 David Goulet <dgoulet@efficios.com>
  *
- * SPDX-License-Identifier: GPL-2.0-only
+ * SPDX-License-Identifier: LGPL-2.1-only
  *
  */
 
 
 #include <common/compat/errno.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
 #if (defined(__CYGWIN__))
 typedef long long off64_t;
 #endif
@@ -41,8 +37,11 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
 #define SYNC_FILE_RANGE_WAIT_BEFORE   0
 #define SYNC_FILE_RANGE_WRITE         0
 
-static inline int lttng_sync_file_range(int fd, off64_t offset,
-               off64_t nbytes, unsigned int flags)
+static inline int lttng_sync_file_range(
+               int fd __attribute__((unused)),
+               off64_t offset __attribute__((unused)),
+               off64_t nbytes __attribute__((unused)),
+               unsigned int flags __attribute__((unused)))
 {
        return -ENOSYS;
 }
@@ -57,8 +56,13 @@ static inline int lttng_sync_file_range(int fd, off64_t offset,
 #define SPLICE_F_MORE       0
 #define SPLICE_F_GIFT       0
 
-static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out,
-               size_t len, unsigned int flags)
+static inline ssize_t splice(
+               int fd_in __attribute__((unused)),
+               loff_t *off_in __attribute__((unused)),
+               int fd_out __attribute__((unused)),
+               loff_t *off_out __attribute__((unused)),
+               size_t len __attribute__((unused)),
+               unsigned int flags __attribute__((unused)))
 {
        return -ENOSYS;
 }
@@ -68,8 +72,4 @@ static inline ssize_t splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_
 #error "Please add support for your OS."
 #endif /* __linux__ , __FreeBSD__, __CYGWIN__, __sun__, __APPLE__ */
 
-#ifdef __cplusplus
-}
-#endif
-
 #endif /* _COMPAT_FCNTL_H */
This page took 0.02406 seconds and 4 git commands to generate.