summaryrefslogtreecommitdiff
path: root/libc/signal/raise.c
blob: 09beba0d6ea5966ceec66e99b548aa220d6a82a0 (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.
 */

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

libc_hidden_proto(raise)

libc_hidden_proto(getpid)
libc_hidden_proto(kill)

int raise(int signo)
{
    return kill(getpid(), signo);
}
libc_hidden_def(raise)