Blame sysdeps/htl/pt-kill.c
|
Packit |
6c4009 |
/* pthread-kill.c - Generic pthread-kill implementation.
|
|
Packit |
6c4009 |
Copyright (C) 2008-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
Written by Neal H. Walfield <neal@gnu.org>.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
This file is part of the GNU Hurd.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU Hurd is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public License
|
|
Packit |
6c4009 |
as published by the Free Software Foundation; either version 3 of
|
|
Packit |
6c4009 |
the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU Hurd is distributed in the hope that it will be useful, but
|
|
Packit |
6c4009 |
WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with this program. If not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <pthreadP.h>
|
|
Packit |
6c4009 |
#include "sig-internal.h"
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
int
|
|
Packit |
6c4009 |
__pthread_kill (pthread_t tid, int signo)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
siginfo_t si;
|
|
Packit |
6c4009 |
memset (&si, 0, sizeof (si));
|
|
Packit |
6c4009 |
si.si_signo = signo;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
return pthread_kill_siginfo_np (tid, si);
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
strong_alias (__pthread_kill, pthread_kill)
|