X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust%2Ffutex.h;h=18c46a13d35e3a6920b6b4914d7f8a7c7fbccb01;hb=5f6daaef86c3b4cff5af523cbbd8f2630634259d;hp=cbee19c2f522e13cc5a39ee97f9447f252d59326;hpb=a3bdb11cc1ba9817d92f3a3b409ab1baf3ba058e;p=lttng-ust.git diff --git a/liblttng-ust/futex.h b/liblttng-ust/futex.h index cbee19c2..18c46a13 100644 --- a/liblttng-ust/futex.h +++ b/liblttng-ust/futex.h @@ -1,28 +1,14 @@ -#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 - * - * 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. + * SPDX-License-Identifier: LGPL-2.1-or-later * - * 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. + * Copyright 2011-2012 Mathieu Desnoyers * - * 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 #include #include @@ -50,9 +36,12 @@ extern "C" { */ 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); + 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))