int sigpending(sigset_t *set);
This system call implements the POSIX sigpending function, which returns the set of signals currently pending.
- set
- A pointer to the sigset_t in which to store the set of pending signals.
Returns 0 if successful, or -1 on error, in which case errno indicates the error.