1/*	$NetBSD$	*/
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
21typedef int sigset_t;
22
23enum {
24    SIG_BLOCK,
25    SIG_UNBLOCK,
26    SIG_SETMASK
27};
28
29extern int sigemptyset(sigset_t *);
30extern int sigaddset(sigset_t *, int);
31extern int sigprocmask(int, sigset_t *, sigset_t *);
32
33#endif
34
35#ifdef MISSING_SIGACTION
36
37struct 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.  */
44enum {
45    SA_RESTART,
46    SA_NOCLDSTOP = 4			/* drop the = 4.  */
47};
48
49extern 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