Back to index

glibc  2.9
signal.h
Go to the documentation of this file.
00001 #ifndef _SIGNAL_H
00002 #if defined __need_sig_atomic_t || defined __need_sigset_t
00003 # include <signal/signal.h>
00004 #else
00005 # include <signal/signal.h>
00006 
00007 libc_hidden_proto (sigemptyset)
00008 libc_hidden_proto (sigfillset)
00009 libc_hidden_proto (sigaddset)
00010 libc_hidden_proto (sigdelset)
00011 libc_hidden_proto (sigismember)
00012 libc_hidden_proto (__sigpause)
00013 libc_hidden_proto (raise)
00014 libc_hidden_proto (__libc_current_sigrtmin)
00015 libc_hidden_proto (__libc_current_sigrtmax)
00016 
00017 /* Now define the internal interfaces.  */
00018 extern __sighandler_t __bsd_signal (int __sig, __sighandler_t __handler);
00019 extern int __kill (__pid_t __pid, int __sig);
00020 extern int __sigaction (int __sig, __const struct sigaction *__restrict __act,
00021                      struct sigaction *__restrict __oact);
00022 libc_hidden_proto (__sigaction)
00023 extern int __sigblock (int __mask);
00024 extern int __sigsetmask (int __mask);
00025 extern int __sigprocmask (int __how,
00026                        __const sigset_t *__set, sigset_t *__oset);
00027 extern int __sigsuspend (__const sigset_t *__set);
00028 libc_hidden_proto (__sigsuspend)
00029 #ifndef NO_CANCELLATION
00030 extern int __sigsuspend_nocancel (__const sigset_t *__set) attribute_hidden;
00031 #endif
00032 extern int __sigwait (__const sigset_t *__set, int *__sig);
00033 libc_hidden_proto (__sigwait)
00034 extern int __sigwaitinfo (__const sigset_t *__set, siginfo_t *__info);
00035 libc_hidden_proto (__sigwaitinfo)
00036 extern int __sigtimedwait (__const sigset_t *__set, siginfo_t *__info,
00037                         __const struct timespec *__timeout);
00038 libc_hidden_proto (__sigtimedwait)
00039 extern int __sigqueue (__pid_t __pid, int __sig,
00040                      __const union sigval __val);
00041 extern int __sigvec (int __sig, __const struct sigvec *__vec,
00042                    struct sigvec *__ovec);
00043 extern int __sigreturn (struct sigcontext *__scp);
00044 extern int __sigaltstack (__const struct sigaltstack *__ss,
00045                        struct sigaltstack *__oss);
00046 extern int __libc_sigaction (int sig, const struct sigaction *act,
00047                           struct sigaction *oact);
00048 libc_hidden_proto (__libc_sigaction)
00049 
00050 extern int __sigpause (int sig_or_mask, int is_sig);
00051 extern int __default_sigpause (int mask);
00052 extern int __xpg_sigpause (int sig);
00053 
00054 /* Simplified sigemptyset() implementation without the parameter checking.  */
00055 #undef __sigemptyset
00056 #define __sigemptyset(ss) (__builtin_memset (ss, '\0', sizeof (sigset_t)), 0)
00057 
00058 
00059 /* Allocate real-time signal with highest/lowest available priority.  */
00060 extern int __libc_allocate_rtsig (int __high);
00061 #endif
00062 #endif