raise2.c

Go to the documentation of this file.
00001 /*-
00002  * See the file LICENSE for redistribution information.
00003  *
00004  * Copyright (c) 1997, 1998, 1999
00005  *      Sleepycat Software.  All rights reserved.
00006  */
00007 
00008 #ifdef HAVE_CONFIG_H
00009 #include "config.h"
00010 #endif /* HAVE_CONFIG_H */
00011 
00012 #ifndef HAVE_RAISE
00013 
00014 #ifndef NO_SYSTEM_INCLUDES
00015 #include <signal.h>
00016 #include <unistd.h>
00017 #endif
00018 
00019 /*
00020  * raise --
00021  *      Send a signal to the current process.
00022  *
00023  * PUBLIC: #ifndef HAVE_RAISE
00024  * PUBLIC: int raise __P((int));
00025  * PUBLIC: #endif
00026  */
00027 int
00028 raise(s)
00029         int s;
00030 {
00031         return (kill(getpid(), s));
00032 }
00033 #endif /* HAVE_RAISE */

Generated on Sun Jun 8 10:56:34 2008 for GNUmifluz by  doxygen 1.5.5