Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 23 of file signal.c.
{ __p_sig_fn_t temp; unsigned int i; switch (sig) { case SIGINT: case SIGILL: case SIGFPE: case SIGSEGV: case SIGTERM: case SIGBREAK: case SIGABRT: break; default: _set_errno(EINVAL); return SIG_ERR; } // check with IsBadCodePtr if ( (uintptr_t)func < 4096 && func != SIG_DFL && func != SIG_IGN) { _set_errno(EINVAL); return SIG_ERR; } for(i=0; i < sizeof(signal_list)/sizeof(signal_list[0]); i++) { if ( signal_list[i].signal == sig ) { temp = signal_list[i].handler; signal_list[i].handler = func; return temp; } } /* should be impossible to get here */ _set_errno(EINVAL); return SIG_ERR; }