Return to util.c CVS log | Up to [cvs.NetBSD.org] / src / usr.bin / make |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.4, 1995/06/14 15:20:11 | version 1.5, 1995/11/22 17:40:17 | ||
---|---|---|---|
|
|
||
#endif /* __hpux */ | #endif /* __hpux */ | ||
#if defined(sun) && defined(__svr4__) | |||
#include <signal.h> | |||
/* turn into bsd signals */ | |||
void (* | |||
signal(s, a)) () | |||
int s; | |||
void (*a)(); | |||
{ | |||
struct sigaction sa, osa; | |||
sa.sa_handler = a; | |||
sigemptyset(&sa.sa_mask); | |||
sa.sa_flags = SA_RESTART; | |||
if (sigaction(s, &sa, &osa) == -1) | |||
return SIG_ERR; | |||
else | |||
return osa.sa_handler; | |||
} | |||
#endif |