Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / posix_signals.h
blob6963c1fcbe1aff73736844bf6b2b44150b26a59b
1 /* $NetBSD$ */
3 #ifndef _POSIX_SIGNALS_H_INCLUDED_
4 #define _POSIX_SIGNALS_H_INCLUDED_
5 /*++
6 /* NAME
7 /* posix_signals 3h
8 /* SUMMARY
9 /* POSIX signal handling compatibility
10 /* SYNOPSIS
11 /* #include <posix_signals.h>
12 /* DESCRIPTION
13 /* .nf
16 * Compatibility interface.
19 #ifdef MISSING_SIGSET_T
21 typedef int sigset_t;
23 enum {
24 SIG_BLOCK,
25 SIG_UNBLOCK,
26 SIG_SETMASK
29 extern int sigemptyset(sigset_t *);
30 extern int sigaddset(sigset_t *, int);
31 extern int sigprocmask(int, sigset_t *, sigset_t *);
33 #endif
35 #ifdef MISSING_SIGACTION
37 struct sigaction {
38 void (*sa_handler) ();
39 sigset_t sa_mask;
40 int sa_flags;
43 /* Possible values for sa_flags. Or them to set multiple. */
44 enum {
45 SA_RESTART,
46 SA_NOCLDSTOP = 4 /* drop the = 4. */
49 extern int sigaction(int, struct sigaction *, struct sigaction *);
51 #endif
53 /* AUTHOR(S)
54 /* Pieter Schoenmakers
55 /* Eindhoven University of Technology
56 /* P.O. Box 513
57 /* 5600 MB Eindhoven
58 /* The Netherlands
59 /*--*/
61 #endif