X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Ffutex.h;h=8305c929b3ed9da7dae0fa7d8801e2ce09cb59ff;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=902ceecf9a500e1db81ac359b5860db9343c7eb0;hpb=10544ee8af31afb239e3dfa71cb2fe09d3de3771;p=lttng-ust.git diff --git a/liblttng-ust/futex.h b/liblttng-ust/futex.h index 902ceecf..8305c929 100644 --- a/liblttng-ust/futex.h +++ b/liblttng-ust/futex.h @@ -1,33 +1,21 @@ -#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 + * 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 * - * 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 #include #include #include +#include "helper.h" + #ifdef __cplusplus extern "C" { #endif @@ -49,8 +37,10 @@ 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 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); @@ -144,7 +134,7 @@ static inline int lttng_ust_futex_async(int32_t *uaddr, int op, int32_t val, static inline int lttng_ust_futex_noasync(int32_t *uaddr, int op, int32_t val, const struct timespec *timeout, int32_t *uaddr2, int32_t val3) { - return futex_async(uaddr, op, val, timeout, uaddr2, val3); + return lttng_ust_futex_async(uaddr, op, val, timeout, uaddr2, val3); } #elif defined(__CYGWIN__)