summaryrefslogtreecommitdiff
path: root/libc/signal/raise.c
blob: 5a964c4b6ae64d6aafb8214b23e8f7dc9dd1ba6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
 * This file is part of the Linux-8086 C library and is distributed
 * under the GNU Library General Public License.
 */

#define kill __kill

#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <sys/types.h>

#undef raise
int attribute_hidden __raise(int signo)
{
    return kill(__getpid(), signo);
}

/* psm: keep this weak, because the one in libpthread.so could overwrite it */
weak_alias(__raise, raise)