fix _NSIG usage

This commit is contained in:
David van Moolenbroek
2009-11-28 13:20:50 +00:00
parent c6cce1823d
commit 6da61b8f05
10 changed files with 19 additions and 19 deletions

View File

@@ -336,7 +336,7 @@ PUBLIC void send_sig(int proc_nr, int sig_nr)
*===========================================================================*/
PUBLIC void cause_sig(proc_nr, sig_nr)
int proc_nr; /* process to be signalled */
int sig_nr; /* signal to be sent, 1 to _NSIG */
int sig_nr; /* signal to be sent */
{
/* A system process wants to send a signal to a process. Examples are:
* - HARDWARE wanting to cause a SIGSEGV after a CPU exception

View File

@@ -32,7 +32,7 @@ message *m_ptr; /* pointer to request message */
proc_nr_e= m_ptr->SIG_ENDPT;
if (!isokendpt(proc_nr_e, &proc_nr)) return(EINVAL);
if (sig_nr > _NSIG) return(EINVAL);
if (sig_nr >= _NSIG) return(EINVAL);
if (iskerneln(proc_nr)) return(EPERM);
/* Set pending signal to be processed by the PM. */