*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> sigpending (2)              


 sigpending(2)                                                 sigpending(2)

 NAME    [Toc]    [Back]
      sigpending - examine pending signals

 SYNOPSIS    [Toc]    [Back]
      #include <signal.h>

      int sigpending(sigset_t *set);

 DESCRIPTION    [Toc]    [Back]
      sigpending() stores the set of signals that are blocked from delivery
      and are pending to the calling thread, at the location pointed to by

 RETURN VALUE    [Toc]    [Back]
      Upon successful completion, sigpending() returns 0. Otherwise -1 is
      returned and errno is set to indicate the error.

 ERRORS    [Toc]    [Back]
      sigpending() fails if the following condition is encountered:

      [EFAULT]       set points to an invalid address.  The reliable
                     detection of this error is implementation-dependent.

 APPLICATION USAGE    [Toc]    [Back]
    Threads Considerations
      The set of signals returned by sigpending() is the union of the
      signals pending on the process and calling thread.  A signal may be
      pending on the process if all threads block the signal.

      The set of signals returned by sigpending() is only advisory.  Since
      other threads may be executing at the time of the call, a signal
      pending on the process may be delivered to a thread after this system
      call returns.

      For more information regarding signals and threads, refer to

    LWP (Lightweight Processes) Considerations    [Toc]    [Back]
      The set of signals returned by sigpending() is the union of the
      signals pending on the process and calling LWP.

 AUTHOR    [Toc]    [Back]
      sigpending() was derived from the IEEE POSIX 1003.1-1988 Standard.

 SEE ALSO    [Toc]    [Back]
      sigaction(2), sigsuspend(2), sigprocmask(2), sigsetops(3C), signal(5).

 CHANGE HISTORY    [Toc]    [Back]
      First release in Issue 3.

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 sigpending(2)                                                 sigpending(2)

      sigpending() : AES, SVID3, XPG3, XPG4, FIPS 151-2, POSIX.1

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
sigpending NetBSD get pending signals
sigpending OpenBSD get pending signals
sigpending FreeBSD get pending signals
pxfsigpending IRIX Examines pending signals
sigpending IRIX return set of signals pending for thread (POSIX)
pthread_sigmask IRIX examine and change blocked signals
sigprocmask HP-UX examine and change blocked signals
dowhenidle IRIX invoke a procedure when there are no pending events
ttdt_Get_Modified HP-UX ask if any ToolTalk client has changes pending on a file
update IRIX Process pending events and/or when-idle handlers
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service