diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-01-20 14:32:23 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-03-12 10:20:18 -0300 |
commit | 0280b390fbd4c55a708985829d58a639475bbffb (patch) | |
tree | 15f8a87c7cbf77099107b2a8d481cb66dd9a4bde /support/xpthread_kill.c | |
parent | 7384193b71a1720a381b7150ed44e07b13af45d5 (diff) | |
download | glibc-0280b390fbd4c55a708985829d58a639475bbffb.zip glibc-0280b390fbd4c55a708985829d58a639475bbffb.tar.gz glibc-0280b390fbd4c55a708985829d58a639475bbffb.tar.bz2 |
support: Add xpthread_kill
Checked on x86_64-linux-gnu.
Diffstat (limited to 'support/xpthread_kill.c')
-rw-r--r-- | support/xpthread_kill.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/support/xpthread_kill.c b/support/xpthread_kill.c new file mode 100644 index 0000000..111a75d --- /dev/null +++ b/support/xpthread_kill.c @@ -0,0 +1,26 @@ +/* pthread_kill with error checking. + Copyright (C) 2021 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 + <https://www.gnu.org/licenses/>. */ + +#include <signal.h> +#include <support/xthread.h> + +void +xpthread_kill (pthread_t thr, int signo) +{ + xpthread_check_return ("pthread_kill", pthread_kill (thr, signo)); +} |