/* Copyright (c) 1993 Xerox Corporation. All rights reserved. */ /* $Id$ $Date$ */ #ifndef __PCR_signal_h #define __PCR_signal_h 1 #include #include /* This is one of the few PCR posix headers than can't just include the corresponding host header, but the semantics of signals is quite a bit different, and many signals are not supported. */ #define PCR_SIG_DFL ((void (*)())(0)) #define PCR_SIG_IGN ((void (*)())(1)) #define PCR_SIG_SETMASK 0 #define PCR_SIG_BLOCK 1 #define PCR_SIG_UNBLOCK 2 extern int PCR_kill(pid_t p, int sig); struct PCR_sigaction { void (*sa_handler)(); PCR_sigset_t sa_mask; int sa_flags; }; extern int PCR_sigaction( int signo, struct PCR_sigaction *act, struct PCR_sigaction *oldact ); extern int PCR_sigpending(PCR_sigset_t *set); extern int PCR_sigprocmask(int how, PCR_sigset_t *set, PCR_sigset_t *oldset); extern int PCR_sigsuspend(PCR_sigset_t *mask); #ifndef PCR_NO_RENAME # ifdef NSIG # error host signal.h included somehow ... # endif /* required signals */ # define SIGABRT PCR_SIGABRT # define SIGALRM PCR_SIGALRM # define SIGFPE PCR_SIGFPE # define SIGHUP PCR_SIGHUP # define SIGILL PCR_SIGILL # define SIGINT PCR_SIGINT # define SIGKILL PCR_SIGKILL # define SIGPIPE PCR_SIGPIPE # define SIGQUIT PCR_SIGQUIT # define SIGSEGV PCR_SIGSEGV # define SIGTERM PCR_SIGTERM # define SIGUSR1 PCR_SIGUSR1 # define SIGUSR2 PCR_SIGUSR2 /* job control signals -- not necessarily supported */ # define SIGCHLD PCR_SIGCHLD # define SIGCONT PCR_SIGCONT # define SIGSTOP PCR_SIGSTOP # define SIGTSTP PCR_SIGTSTP # define SIGTTIN PCR_SIGTTIN # define SIGTTOU PCR_SIGTTOU # define NSIG PCR_NSIGPOSIX /* types */ # define sigset_t PCR_sigset_t # define SIG_IGN PCR_SIG_IGN # define SIG_DFL PCR_SIG_DFL # define SIG_BLOCK PCR_SIG_BLOCK # define SIG_UNBLOCK PCR_SIG_UNBLOCK # define SIG_SETMASK PCR_SIG_SETMASK /* procs */ # define kill PCR_kill # define sigaction PCR_sigaction # define sigaddset PCR_sigset_t_Add # define sigdelset PCR_sigset_t_Del # define sigemptyset PCR_sigset_t_SetEmpty # define sigfillset PCR_sigset_t_SetFull # define sigismember PCR_sigset_t_IsMember # define sigpending PCR_sigpending # define sigprocmask PCR_sigprocmask # define sigsuspend PCR_sigsuspend #endif /* !PCR_NO_RENAME */ #endif /* !__PCR_signal_h */ /* $Log$ */