X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fsignals.c;h=77d61ce0e08d55b1504681f809fcfb4b8e3519cc;hp=00f516cd59e7f570d68742270fceecf3fb626d32;hb=865335e03bab5e0ceb47a4d20564c3afb3de30c4;hpb=a485ed478abbd599d8c9aab48934e7a26733ecb1 diff --git a/sbr/signals.c b/sbr/signals.c index 00f516c..77d61ce 100644 --- a/sbr/signals.c +++ b/sbr/signals.c @@ -1,17 +1,17 @@ /* - * signals.c -- general signals interface for nmh - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** signals.c -- general signals interface for nmh +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include int -SIGPROCMASK (int how, const sigset_t *set, sigset_t *oset) +SIGPROCMASK(int how, const sigset_t *set, sigset_t *oset) { #ifdef POSIX_SIGNALS return sigprocmask(how, set, oset); @@ -40,14 +40,14 @@ SIGPROCMASK (int how, const sigset_t *set, sigset_t *oset) /* - * A version of the function `signal' that uses reliable - * signals, if the machine supports them. Also, (assuming - * OS support), it restarts interrupted system calls for all - * signals except SIGALRM. - */ +** A version of the function `signal' that uses reliable +** signals, if the machine supports them. Also, (assuming +** OS support), it restarts interrupted system calls for all +** signals except SIGALRM. +*/ SIGNAL_HANDLER -SIGNAL (int sig, SIGNAL_HANDLER func) +SIGNAL(int sig, SIGNAL_HANDLER func) { #ifdef POSIX_SIGNALS struct sigaction act, oact; @@ -69,19 +69,19 @@ SIGNAL (int sig, SIGNAL_HANDLER func) return (SIG_ERR); return (oact.sa_handler); #else - return signal (sig, func); + return signal(sig, func); #endif } /* - * A version of the function `signal' that will set - * the handler of `sig' to `func' if the signal is - * not currently set to SIG_IGN. Also uses reliable - * signals if available. - */ +** A version of the function `signal' that will set +** the handler of `sig' to `func' if the signal is +** not currently set to SIG_IGN. Also uses reliable +** signals if available. +*/ SIGNAL_HANDLER -SIGNAL2 (int sig, SIGNAL_HANDLER func) +SIGNAL2(int sig, SIGNAL_HANDLER func) { #ifdef POSIX_SIGNALS struct sigaction act, oact; @@ -109,8 +109,8 @@ SIGNAL2 (int sig, SIGNAL_HANDLER func) #else SIGNAL_HANDLER ofunc; - if ((ofunc = signal (sig, SIG_IGN)) != SIG_IGN) - signal (sig, func); + if ((ofunc = signal(sig, SIG_IGN)) != SIG_IGN) + signal(sig, func); return ofunc; #endif }