1/*
2 *  Copyright (c) 2002-2011, Haiku Project. All rights reserved.
3 *  Distributed under the terms of the Haiku license.
4 *
5 *  Author(s):
6 *  Daniel Reinhold (danielre@users.sf.net)
7 */
8
9
10#include <signal.h>
11
12#include <errno.h>
13
14#include <OS.h>
15
16#include <syscall_utils.h>
17
18
19int
20raise(int sig)
21{
22	RETURN_AND_SET_ERRNO(send_signal(find_thread(NULL), sig));
23}
24
25