From 09153638cfef9166586b0c21e852ea0d6f15a0fd Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Fri, 27 Dec 2019 17:21:56 -0300 Subject: alpha: Set wait4 as cancellation entrypoint Since both wait and waitpid are implemented on top of wait4. It fixes nptl/tst-cancel{x}{4,5,7}. Checked on alpha-linux-gnu. --- sysdeps/unix/sysv/linux/alpha/wait4.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/alpha/wait4.c (limited to 'sysdeps/unix/sysv/linux/alpha/wait4.c') diff --git a/sysdeps/unix/sysv/linux/alpha/wait4.c b/sysdeps/unix/sysv/linux/alpha/wait4.c new file mode 100644 index 0000000000..0c86306a5a --- /dev/null +++ b/sysdeps/unix/sysv/linux/alpha/wait4.c @@ -0,0 +1,26 @@ +/* wait4 -- wait for process to change state. Linux/Alpha version. + Copyright (C) 2019 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C 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. + + The GNU C 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 the GNU C Library; if not, see + . */ + +#include + +#undef weak_alias +#define weak_alias(a, b) +#include +versioned_symbol (libc, __wait4, wait4, GLIBC_2_1); + +/* GLIBC_2_0 version is implemented at osf_wait4.c. */ -- cgit v1.2.3-70-g09d2