diff options
Diffstat (limited to 'src/win32/sigaction')
| -rw-r--r-- | src/win32/sigaction/sigaction.cpp | 22 | ||||
| -rw-r--r-- | src/win32/sigaction/sigaction.h | 36 |
2 files changed, 29 insertions, 29 deletions
diff --git a/src/win32/sigaction/sigaction.cpp b/src/win32/sigaction/sigaction.cpp index d5a2d87d1..17faaf2fb 100644 --- a/src/win32/sigaction/sigaction.cpp +++ b/src/win32/sigaction/sigaction.cpp @@ -1,19 +1,20 @@ - /* POSIX emulation layer for Windows. +/* POSIX emulation layer for Windows. * - * Copyright (C) 2008-2014 Anope Team <team@anope.org> + * (C) 2008-2016 Anope Team + * Contact us at 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. */ - - #include <windows.h> - #include "sigaction.h" - #include <signal.h> - - int sigaction(int sig, struct sigaction *action, struct sigaction *old) - { + +#include <windows.h> +#include "sigaction.h" +#include <signal.h> + +int sigaction(int sig, struct sigaction *action, struct sigaction *old) +{ if (sig == -1) return 0; if (old == NULL) @@ -27,5 +28,4 @@ return -1; } return 0; - } -
\ No newline at end of file +} diff --git a/src/win32/sigaction/sigaction.h b/src/win32/sigaction/sigaction.h index 0e9c2f246..c517ba16d 100644 --- a/src/win32/sigaction/sigaction.h +++ b/src/win32/sigaction/sigaction.h @@ -1,28 +1,28 @@ - /* POSIX emulation layer for Windows. +/* POSIX emulation layer for Windows. * - * Copyright (C) 2008-2014 Anope Team <team@anope.org> + * (C) 2008-2016 Anope Team + * Contact us at 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 - { + +#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 *); - +}; + +extern int sigaction(int, struct sigaction *, struct sigaction *); |
