summaryrefslogtreecommitdiff
path: root/src/win32/sigaction/sigaction.h
blob: 3c7fc4714fa8dcb7ec4b92fc830c652bd6246ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
 /* POSIX emulation layer for Windows.
 *
 * Copyright (C) 2008-2013 Anope Team <team@anope.org>
 *
 * Please read COPYING and README for further details.
 *
 * Based on the original code of Epona by Lara.
 * Based on the original code of Services by Andy Church.
 */
 
 #define sigemptyset(x) memset((x), 0, sizeof(*(x)))
 
 #ifndef SIGHUP
 # define SIGHUP -1
 #endif
 #ifndef SIGPIPE
 # define SIGPIPE -1
 #endif
 
 struct sigaction
 {
	void (*sa_handler)(int);
	int sa_flags;
	int sa_mask;
 };
 
 extern int sigaction(int, struct sigaction *, struct sigaction *);