scroll mode for very long start menus
[reactos.git] / posix / lib / psxdll / signal / raise.c
1 /* $Id: raise.c,v 1.4 2002/10/29 04:45:41 rex Exp $
2 */
3 /*
4 * COPYRIGHT: See COPYING in the top level directory
5 * PROJECT: ReactOS POSIX+ Subsystem
6 * FILE: subsys/psx/lib/psxdll/signal/raise.c
7 * PURPOSE: Send a signal to the executing process
8 * PROGRAMMER: KJK::Hyperion <noog@libero.it>
9 * UPDATE HISTORY:
10 * 15/02/2002: Created
11 */
12
13 #include <signal.h>
14 #include <pthread.h>
15 #include <errno.h>
16
17 int raise(int sig)
18 {
19 /* returns zero if pthread_kill() returned zero, non-zero otherwise */
20 /* pthread_kill() returns the error number and doesn't set errno */
21 return (((errno = pthread_kill(pthread_self(), sig))) == 0 ? (0) : (1));
22 }
23
24 /* EOF */
25