function returns a mask of the signals pending for delivery
to the calling process in the location indicated by
Signals may be pending because they are currently masked,
or transiently before delivery (although the latter case is not
A 0 value indicated that the call succeeded.
A \-1 return value indicates an error occurred and
is set to indicated the reason.
function does not currently detect any errors.