SIGNAL(2) Xinu Programmer's Manual SIGNAL(2) NAME signal, signaln - signal a semaphore SYNOPSIS int signal(sem) int signaln(sem, count) int sem; int count; DESCRIPTION In either form, _s_i_g_n_a_l signals semaphore _s_e_m and returns SYSERR if the semaphore does not exist, OK otherwise. The form _s_i_g_n_a_l increments the count of _s_e_m by 1 and frees the next process if any are waiting. The form _s_i_g_n_a_l_n incre- ments the semaphore by _c_o_u_n_t and frees up to _c_o_u_n_t processes if that many are waiting. Note that _s_i_g_n_a_l_n(sem, x) is equivalent to executing _s_i_g_n_a_l(sem) x times. SEE ALSO scount(2), screate(2), sdelete(2), sreset(2), wait(2) Version 6b Printed 1/12/87 1