diff options
| author | Adam <Adam@anope.org> | 2014-05-28 12:07:29 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2014-05-28 12:07:54 -0400 |
| commit | f29e1cf383529a1a29f02b0669d973f5ee0b7a66 (patch) | |
| tree | 3c33db276dc9328235bbd572641521ed44458176 /src/win32/sigaction | |
| parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) | |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'src/win32/sigaction')
| -rw-r--r-- | src/win32/sigaction/sigaction.cpp | 5 | ||||
| -rw-r--r-- | src/win32/sigaction/sigaction.h | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/src/win32/sigaction/sigaction.cpp b/src/win32/sigaction/sigaction.cpp index d5a2d87d1..51615cf39 100644 --- a/src/win32/sigaction/sigaction.cpp +++ b/src/win32/sigaction/sigaction.cpp @@ -7,11 +7,11 @@ * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. */ - + #include <windows.h> #include "sigaction.h" #include <signal.h> - + int sigaction(int sig, struct sigaction *action, struct sigaction *old) { if (sig == -1) @@ -28,4 +28,3 @@ } return 0; } -
\ No newline at end of file diff --git a/src/win32/sigaction/sigaction.h b/src/win32/sigaction/sigaction.h index 0e9c2f246..9e74eeffa 100644 --- a/src/win32/sigaction/sigaction.h +++ b/src/win32/sigaction/sigaction.h @@ -7,22 +7,22 @@ * 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 *); - + |
