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 | |
| parent | 1253c70e0682fa1490c99c3d2869049a0e3fa2e0 (diff) | |
Move most of the core pseudoclient logic to modules
Diffstat (limited to 'src/win32')
| -rw-r--r-- | src/win32/anope_windows.h | 4 | ||||
| -rw-r--r-- | src/win32/dir/dir.cpp | 2 | ||||
| -rw-r--r-- | src/win32/dir/dir.h | 2 | ||||
| -rw-r--r-- | src/win32/pipe/pipe.cpp | 2 | ||||
| -rw-r--r-- | src/win32/resource.h | 2 | ||||
| -rw-r--r-- | src/win32/sigaction/sigaction.cpp | 5 | ||||
| -rw-r--r-- | src/win32/sigaction/sigaction.h | 10 | ||||
| -rw-r--r-- | src/win32/socket.cpp | 2 | ||||
| -rw-r--r-- | src/win32/windows.cpp | 6 |
9 files changed, 17 insertions, 18 deletions
diff --git a/src/win32/anope_windows.h b/src/win32/anope_windows.h index 8d6e7ef9e..f2a496c33 100644 --- a/src/win32/anope_windows.h +++ b/src/win32/anope_windows.h @@ -8,7 +8,7 @@ * Based on the original code of Epona by Lara. * Based on the original code of Services by Andy Church. */ - + #ifndef WINDOWS_H #define WINDOWS_H #ifdef _WIN32 @@ -71,7 +71,7 @@ namespace Anope { class string; } - + extern CoreExport void OnStartup(); extern CoreExport void OnShutdown(); extern CoreExport USHORT WindowsGetLanguage(const char *lang); diff --git a/src/win32/dir/dir.cpp b/src/win32/dir/dir.cpp index 21b80824b..16809bd9c 100644 --- a/src/win32/dir/dir.cpp +++ b/src/win32/dir/dir.cpp @@ -7,7 +7,7 @@ #include "dir.h" #include <stdio.h> - + DIR *opendir(const char *path) { char real_path[MAX_PATH]; diff --git a/src/win32/dir/dir.h b/src/win32/dir/dir.h index 5ddf71e7b..4d1433658 100644 --- a/src/win32/dir/dir.h +++ b/src/win32/dir/dir.h @@ -20,7 +20,7 @@ struct DIR WIN32_FIND_DATA data; bool read_first; }; - + DIR *opendir(const char *); dirent *readdir(DIR *); int closedir(DIR *); diff --git a/src/win32/pipe/pipe.cpp b/src/win32/pipe/pipe.cpp index 706ff655e..676909b9a 100644 --- a/src/win32/pipe/pipe.cpp +++ b/src/win32/pipe/pipe.cpp @@ -55,7 +55,7 @@ int pipe(int fds[2]) fds[0] = cfd; fds[1] = afd; - + return 0; } diff --git a/src/win32/resource.h b/src/win32/resource.h index cccb0b4f5..e4fa54b70 100644 --- a/src/win32/resource.h +++ b/src/win32/resource.h @@ -8,7 +8,7 @@ // Next default values for new objects -// +// #ifdef APSTUDIO_INVOKED #ifndef APSTUDIO_READONLY_SYMBOLS #define _APS_NO_MFC 1 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 *); - + diff --git a/src/win32/socket.cpp b/src/win32/socket.cpp index d481515d3..320e46f48 100644 --- a/src/win32/socket.cpp +++ b/src/win32/socket.cpp @@ -85,7 +85,7 @@ int windows_inet_pton(int af, const char *src, void *dst) } return 1; } - + return 0; } diff --git a/src/win32/windows.cpp b/src/win32/windows.cpp index a9e0521d0..319bebf58 100644 --- a/src/win32/windows.cpp +++ b/src/win32/windows.cpp @@ -68,10 +68,10 @@ int gettimeofday(timeval *tv, void *) { SYSTEMTIME st; GetSystemTime(&st); - + tv->tv_sec = Anope::CurTime; tv->tv_usec = st.wMilliseconds; - + return 0; } @@ -243,7 +243,7 @@ int mkstemp(char *input) errno = EEXIST; return -1; } - + int fd = open(input, O_WRONLY | O_CREAT, S_IREAD | S_IWRITE); return fd; } |
