head 1.1; branch 1.1.1; access ; symbols nastore3-beta-20000227:1.1.1.1 NAS:1.1.1; locks ; strict; comment @ * @; 1.1 date 2000.02.28.02.18.17; author wrstuden; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2000.02.28.02.18.17; author wrstuden; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @/* * nas_sig.c - signal()-related routines */ #include "nasutil.h" #include static CodeString_t nSigs[] = { { SIGHUP, "SIGHUP" }, { SIGINT, "SIGINT" }, { SIGQUIT, "SIGQUIT" }, { SIGILL, "SIGILL" }, { SIGTRAP, "SIGTRAP" }, { SIGABRT, "SIGABRT" }, { SIGIOT, "SIGIOT" }, { SIGEMT, "SIGEMT" }, { SIGFPE, "SIGFPE" }, { SIGKILL, "SIGKILL" }, { SIGBUS, "SIGBUS" }, { SIGSEGV, "SIGSEGV" }, { SIGSYS, "SIGSYS" }, { SIGPIPE, "SIGPIPE" }, { SIGALRM, "SIGALRM" }, { SIGTERM, "SIGTERM" }, { SIGURG, "SIGURG" }, { SIGSTOP, "SIGSTOP" }, { SIGTSTP, "SIGTSTP" }, { SIGCONT, "SIGCONT" }, { SIGCHLD, "SIGCHLD" }, { SIGTTIN, "SIGTTIN" }, { SIGTTOU, "SIGTTOU" }, { SIGIO, "SIGIO" }, { SIGXCPU, "SIGXCPU" }, { SIGXFSZ, "SIGXFSZ" }, { SIGVTALRM, "SIGVTALRM" }, { SIGPROF, "SIGPROF" }, { SIGWINCH, "SIGWINCH" }, #ifdef SIGINFO { SIGINFO, "SIGINFO" }, #endif { SIGUSR1, "SIGUSR1" }, { SIGUSR2, "SIGUSR2" }, { 0, NULL } }; char * nSigName(int sig) { return(nCodeToStr(sig, nSigs)); } int sig_ign(int sig) { if (SIGNAL(sig, SIG_IGN)) { nLogMsg(EL_ERROR1|EL_SYS, 0, "sig_ign(%s)", nSigName(sig)); return(1); } return(0); } @ 1.1.1.1 log @Import of snapshot of nastore3 code. Includes kernel code for dmfs, dmfs user utilities, ms66 import and export, vvm, and volman. Also includes makefile magic to automatically generate .tgz source files from the source. Solaris support a bit of a question as zoularis is not working at the moment. @ text @@