* signal.cc (sigpending): Move.

* sigproc.cc (sigpending): To here.
(getlocal_sigtodo): Return process-local signal array.
(sigpending): Accommodate new process-local signal array.
(sig_send): Ditto.
(sig_set_pending): Ditto.
(wait_sig): Ditto.
This commit is contained in:
Christopher Faylor
2003-08-19 05:47:44 +00:00
parent 05cb7b17cb
commit 06bb489932
3 changed files with 107 additions and 66 deletions

View File

@@ -407,17 +407,6 @@ sigfillset (sigset_t *set)
return 0;
}
extern "C" int
sigpending (sigset_t *set)
{
unsigned bit;
*set = 0;
for (int sig = 1; sig < NSIG; sig++)
if (*myself->getsigtodo (sig) && myself->getsigmask () & (bit = SIGTOMASK (sig)))
*set |= bit;
return 0;
}
extern "C" int
sigsuspend (const sigset_t *set)
{