version 1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2013/07/21 23:54:39
|
Line 22
|
Line 22
|
#include <zebra.h> |
#include <zebra.h> |
#include <sigevent.h> |
#include <sigevent.h> |
#include <log.h> |
#include <log.h> |
|
#include <memory.h> |
|
|
#ifdef SA_SIGINFO |
#ifdef SA_SIGINFO |
#ifdef HAVE_UCONTEXT_H |
#ifdef HAVE_UCONTEXT_H |
Line 266 trap_default_signals(void)
|
Line 267 trap_default_signals(void)
|
#endif |
#endif |
); |
); |
} sigmap[] = { |
} sigmap[] = { |
{ core_signals, sizeof(core_signals)/sizeof(core_signals[0]), core_handler}, | { core_signals, array_size(core_signals), core_handler}, |
{ exit_signals, sizeof(exit_signals)/sizeof(exit_signals[0]), exit_handler}, | { exit_signals, array_size(exit_signals), exit_handler}, |
{ ignore_signals, sizeof(ignore_signals)/sizeof(ignore_signals[0]), NULL}, | { ignore_signals, array_size(ignore_signals), NULL}, |
}; |
}; |
u_int i; |
u_int i; |
|
|
for (i = 0; i < sizeof(sigmap)/sizeof(sigmap[0]); i++) | for (i = 0; i < array_size(sigmap); i++) |
{ |
{ |
u_int j; |
u_int j; |
|
|