150750Sbostic /*- 262375Sbostic * Copyright (c) 1991, 1993 362375Sbostic * The Regents of the University of California. All rights reserved. 450750Sbostic * 550750Sbostic * %sccs.include.redist.c% 650750Sbostic * 7*66521Sbostic * @(#)signal.h 8.3 (Berkeley) 03/30/94 850750Sbostic */ 950750Sbostic 1051390Sbostic #ifndef _USER_SIGNAL_H 1151390Sbostic #define _USER_SIGNAL_H 1251390Sbostic 1351390Sbostic #include <sys/types.h> 1451390Sbostic #include <sys/cdefs.h> 1550750Sbostic #include <sys/signal.h> 1650750Sbostic 1750750Sbostic #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) 1865374Sbostic extern __const char *__const sys_signame[NSIG]; 1965374Sbostic extern __const char *__const sys_siglist[NSIG]; 2050750Sbostic #endif 2151390Sbostic 2251390Sbostic __BEGIN_DECLS 2351390Sbostic int raise __P((int)); 2451390Sbostic #ifndef _ANSI_SOURCE 2551390Sbostic int kill __P((pid_t, int)); 2651390Sbostic int sigaction __P((int, const struct sigaction *, struct sigaction *)); 2751390Sbostic int sigaddset __P((sigset_t *, int)); 2851390Sbostic int sigdelset __P((sigset_t *, int)); 2951390Sbostic int sigemptyset __P((sigset_t *)); 3051390Sbostic int sigfillset __P((sigset_t *)); 3151390Sbostic int sigismember __P((const sigset_t *, int)); 3251390Sbostic int sigpending __P((sigset_t *)); 3351390Sbostic int sigprocmask __P((int, const sigset_t *, sigset_t *)); 3451390Sbostic int sigsuspend __P((const sigset_t *)); 3551390Sbostic #ifndef _POSIX_SOURCE 3651390Sbostic int killpg __P((pid_t, int)); 3751390Sbostic int sigblock __P((int)); 3851390Sbostic int siginterrupt __P((int, int)); 3951390Sbostic int sigpause __P((int)); 4051390Sbostic int sigreturn __P((struct sigcontext *)); 4151390Sbostic int sigsetmask __P((int)); 4251390Sbostic int sigstack __P((const struct sigstack *, struct sigstack *)); 4351390Sbostic int sigvec __P((int, struct sigvec *, struct sigvec *)); 4451390Sbostic void psignal __P((unsigned int, const char *)); 4551390Sbostic #endif /* !_POSIX_SOURCE */ 4651390Sbostic #endif /* !_ANSI_SOURCE */ 4751390Sbostic __END_DECLS 4851390Sbostic 4951652Sbostic /* List definitions after function declarations, or Reiser cpp gets upset. */ 5051652Sbostic #define sigaddset(set, signo) (*(set) |= 1 << ((signo) - 1), 0) 5151652Sbostic #define sigdelset(set, signo) (*(set) &= ~(1 << ((signo) - 1)), 0) 52*66521Sbostic #define sigemptyset(set) (*(set) = 0, 0) 5351652Sbostic #define sigfillset(set) (*(set) = ~(sigset_t)0, 0) 5451652Sbostic #define sigismember(set, signo) ((*(set) & (1 << ((signo) - 1))) != 0) 5551652Sbostic 5651390Sbostic #endif /* !_USER_SIGNAL_H */ 57