X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcompat_futex.c;h=151a40cbae2b9cfa8cc1528d5c7630c6a1c4bcd0;hb=HEAD;hp=9e918fe8e2aac035dc39e6e23868410348d02627;hpb=6893800a4d1cc14dff0395ddcd660a5138db183d;p=urcu.git diff --git a/src/compat_futex.c b/src/compat_futex.c index 9e918fe..151a40c 100644 --- a/src/compat_futex.c +++ b/src/compat_futex.c @@ -1,34 +1,20 @@ +// SPDX-FileCopyrightText: 2009 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later + /* - * compat_futex.c - * * Userspace RCU library - sys_futex compatibility code - * - * Copyright (c) 2009 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. - * - * 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 */ #include #include #include -#include #include #include #include #include +#include #include #include @@ -60,9 +46,9 @@ int compat_futex_noasync(int32_t *uaddr, int op, int32_t val, * Check if NULL. Don't let users expect that they are taken into * account. */ - assert(!timeout); - assert(!uaddr2); - assert(!val3); + urcu_posix_assert(!timeout); + urcu_posix_assert(!uaddr2); + urcu_posix_assert(!val3); /* * memory barriers to serialize with the previous uaddr modification. @@ -124,9 +110,9 @@ int compat_futex_async(int32_t *uaddr, int op, int32_t val, * Check if NULL. Don't let users expect that they are taken into * account. */ - assert(!timeout); - assert(!uaddr2); - assert(!val3); + urcu_posix_assert(!timeout); + urcu_posix_assert(!uaddr2); + urcu_posix_assert(!val3); /* * Ensure previous memory operations on uaddr have completed.