diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-07-22 09:46:48 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2002-07-22 09:46:48 +0000 |
commit | 2b3e9d9b244e279ef5693a7cf5dacc7903164af5 (patch) | |
tree | 955e5242d4d08a8ec747c8350f55003bb9d4b519 /c/src/exec/posix/src/signal_2.c | |
parent | Remove everything. (diff) | |
download | rtems-2b3e9d9b244e279ef5693a7cf5dacc7903164af5.tar.bz2 |
Remove, moved to cpukit.
Diffstat (limited to 'c/src/exec/posix/src/signal_2.c')
-rw-r--r-- | c/src/exec/posix/src/signal_2.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/c/src/exec/posix/src/signal_2.c b/c/src/exec/posix/src/signal_2.c deleted file mode 100644 index 2141269b10..0000000000 --- a/c/src/exec/posix/src/signal_2.c +++ /dev/null @@ -1,52 +0,0 @@ -/* - * signal(2) - Install signal handler - * - * COPYRIGHT (c) 1989-1999. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.OARcorp.com/rtems/license.html. - * - * $Id$ - */ - -#if HAVE_CONFIG_H -#include "config.h" -#endif - -#include <signal.h> -#include <errno.h> - -typedef void (*sighandler_t)(int); - -sighandler_t signal( - int signum, - sighandler_t handler -) -{ - struct sigaction s; - struct sigaction old; - - s.sa_handler = handler ; - sigemptyset(&s.sa_mask); - - /* - * Depending on which system we want to behave like, one of - * the following versions should be chosen. - */ - -/* #define signal_like_linux */ - -#if defined(signal_like_linux) - s.sa_flags = SA_RESTART | SA_INTERRUPT | SA_NOMASK; - s.sa_restorer= NULL ; -#elif defined(signal_like_SVR4) - s.sa_flags = SA_RESTART; -#else - s.sa_flags = 0; -#endif - - sigaction( signum, &s, &old ); - return (sighandler_t) old.sa_handler; -} |