Fix: pass private data to context callbacks
[lttng-ust.git] / liblttng-ust / futex.h
index 06172d3d1f721bd6a6e4d02c34f67b4291a53d3d..18c46a13d35e3a6920b6b4914d7f8a7c7fbccb01 100644 (file)
@@ -1,35 +1,19 @@
-#ifndef _LTTNG_UST_FUTEX_H
-#define _LTTNG_UST_FUTEX_H
-
 /*
- * liblttng-ust/futex.h
- *
- * Userspace RCU - sys_futex/compat_futex header.
- *
- * Copyright 2011-2012 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
+ * SPDX-License-Identifier: LGPL-2.1-or-later
  *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
+ * Copyright 2011-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Userspace RCU - sys_futex/compat_futex header.
  */
 
+#ifndef _LTTNG_UST_FUTEX_H
+#define _LTTNG_UST_FUTEX_H
+
 #include <errno.h>
 #include <stdint.h>
 #include <time.h>
 #include <sys/syscall.h>
 
-#include "helper.h"
-
 #ifdef __cplusplus
 extern "C" {
 #endif
@@ -51,12 +35,13 @@ extern "C" {
  * (returns EINTR).
  */
 
-LTTNG_HIDDEN
 extern int lttng_ust_compat_futex_noasync(int32_t *uaddr, int op, int32_t val,
-               const struct timespec *timeout, int32_t *uaddr2, int32_t val3);
-LTTNG_HIDDEN
+               const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
+       __attribute__((visibility("hidden")));
+
 extern int lttng_ust_compat_futex_async(int32_t *uaddr, int op, int32_t val,
-               const struct timespec *timeout, int32_t *uaddr2, int32_t val3);
+               const struct timespec *timeout, int32_t *uaddr2, int32_t val3)
+       __attribute__((visibility("hidden")));
 
 #if (defined(__linux__) && defined(__NR_futex))
 
This page took 0.023324 seconds and 4 git commands to generate.