vfs: check userland buffers before reading them.
[haiku.git] / src / system / libroot / posix / signal / raise.c
blobf40822ba5a4db4cdfb6b740954c3826edd67759c
1 /*
2 * Copyright (c) 2002-2011, Haiku Project. All rights reserved.
3 * Distributed under the terms of the Haiku license.
5 * Author(s):
6 * Daniel Reinhold (danielre@users.sf.net)
7 */
10 #include <signal.h>
12 #include <errno.h>
14 #include <OS.h>
16 #include <syscall_utils.h>
19 int
20 raise(int sig)
22 RETURN_AND_SET_ERRNO(send_signal(find_thread(NULL), sig));