xref: /haiku/src/system/libroot/posix/signal/raise.c (revision cbe0a0c436162d78cc3f92a305b64918c839d079)
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 
19 int
20 raise(int sig)
21 {
22 	RETURN_AND_SET_ERRNO(send_signal(find_thread(NULL), sig));
23 }
24 
25