xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/posix_signals.h (revision 41fbaed053f8fbfdf9d2a4ee0a7386a3c83f8505)
1 /*	$NetBSD: posix_signals.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
2 
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
14 
15  /*
16   * Compatibility interface.
17   */
18 
19 #ifdef MISSING_SIGSET_T
20 
21 typedef int sigset_t;
22 
23 enum {
24     SIG_BLOCK,
25     SIG_UNBLOCK,
26     SIG_SETMASK
27 };
28 
29 extern int sigemptyset(sigset_t *);
30 extern int sigaddset(sigset_t *, int);
31 extern int sigprocmask(int, sigset_t *, sigset_t *);
32 
33 #endif
34 
35 #ifdef MISSING_SIGACTION
36 
37 struct sigaction {
38     void    (*sa_handler) ();
39     sigset_t sa_mask;
40     int     sa_flags;
41 };
42 
43  /* Possible values for sa_flags.  Or them to set multiple.  */
44 enum {
45     SA_RESTART,
46     SA_NOCLDSTOP = 4			/* drop the = 4.  */
47 };
48 
49 extern int sigaction(int, struct sigaction *, struct sigaction *);
50 
51 #endif
52 
53 /* AUTHOR(S)
54 /*	Pieter Schoenmakers
55 /*	Eindhoven University of Technology
56 /*	P.O. Box 513
57 /*	5600 MB Eindhoven
58 /*	The Netherlands
59 /*--*/
60 
61 #endif
62