version 1.8, 2004/05/03 17:25:00 |
version 1.9, 2005/12/13 00:35:22 |
|
|
#ifndef _USER_SIGNAL_H |
#ifndef _USER_SIGNAL_H |
#define _USER_SIGNAL_H |
#define _USER_SIGNAL_H |
|
|
|
#include <sys/cdefs.h> |
#include <sys/signal.h> |
#include <sys/signal.h> |
|
|
#if !defined(_ANSI_SOURCE) |
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE |
#include <sys/types.h> |
#include <sys/types.h> |
#endif |
#endif |
|
|
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) |
#if __BSD_VISIBLE |
extern __const char *__const sys_signame[_NSIG]; |
extern __const char *__const sys_signame[_NSIG]; |
extern __const char *__const sys_siglist[_NSIG]; |
extern __const char *__const sys_siglist[_NSIG]; |
#endif |
#endif |
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
int raise(int); |
int raise(int); |
#ifndef _ANSI_SOURCE |
#if __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE |
void (*bsd_signal(int, void (*)(int)))(int); |
void (*bsd_signal(int, void (*)(int)))(int); |
int kill(pid_t, int); |
int kill(pid_t, int); |
int sigaction(int, const struct sigaction *, struct sigaction *); |
int sigaction(int, const struct sigaction *, struct sigaction *); |
|
|
#define sigemptyset(set) (*(set) = 0, 0) |
#define sigemptyset(set) (*(set) = 0, 0) |
#define sigfillset(set) (*(set) = ~(sigset_t)0, 0) |
#define sigfillset(set) (*(set) = ~(sigset_t)0, 0) |
|
|
#ifndef _POSIX_SOURCE |
#if __BSD_VISIBLE || __XPG_VISIBLE >= 420 |
int killpg(pid_t, int); |
int killpg(pid_t, int); |
int sigblock(int); |
|
int siginterrupt(int, int); |
int siginterrupt(int, int); |
int sigpause(int); |
int sigpause(int); |
int sigreturn(struct sigcontext *); |
int sigreturn(struct sigcontext *); |
int sigsetmask(int); |
|
int sigstack(const struct sigstack *, struct sigstack *); |
int sigstack(const struct sigstack *, struct sigstack *); |
int sigaltstack(const struct sigaltstack *, struct sigaltstack *); |
int sigaltstack(const struct sigaltstack *, struct sigaltstack *); |
int sigvec(int, struct sigvec *, struct sigvec *); |
#if __BSD_VISIBLE |
void psignal(unsigned int, const char *); |
void psignal(unsigned int, const char *); |
|
int sigblock(int); |
|
int sigsetmask(int); |
|
int sigvec(int, struct sigvec *, struct sigvec *); |
|
#endif |
|
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 199309 || __XPG_VISIBLE >= 500 |
int sigwait(const sigset_t *, int *); |
int sigwait(const sigset_t *, int *); |
#endif /* !_POSIX_SOURCE */ |
#endif |
#endif /* !_ANSI_SOURCE */ |
#endif /* __BSD_VISIBLE || __XPG_VISIBLE >= 420 */ |
|
#endif /* __BSD_VISIBLE || __POSIX_VISIBLE || __XPG_VISIBLE */ |
__END_DECLS |
__END_DECLS |
|
|
#endif /* !_USER_SIGNAL_H */ |
#endif /* !_USER_SIGNAL_H */ |