aboutsummaryrefslogtreecommitdiff
path: root/win/inspircd_win32wrapper.cpp
Commit message (Expand)AuthorAgeFilesLines
* Rename several Windows files to use the same naming scheme.•••[skip alpine ci] [skip irctest ci] [skip macos ci] [skip ubuntu ci] Gravatar Sadie Powell2023-07-151-48/+0
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-4/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-4/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2022-12-251-10/+6
|\|
| * Deduplicate retrieving error messages on Windows.Gravatar Sadie Powell2022-12-131-12/+6
* | Yet more stylistic fixes.Gravatar Sadie Powell2022-12-011-1/+1
* | Modernize various minor legacy C++isms.Gravatar Sadie Powell2022-07-301-1/+1
* | Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-1/+1
* | Replace getopt/ya_getopt with Lyra.Gravatar Sadie Powell2022-04-301-2/+0
* | Kill vendor_directory in favour of normal include paths.Gravatar Sadie Powell2022-01-261-1/+1
* | Replace consolecolors with a vendored library.•••This library supports much more than consolecolors including the Windows 8 console API. Gravatar Sadie Powell2022-01-261-13/+0
* | Slim the included headers down more.Gravatar Sadie Powell2022-01-261-3/+2
|/
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+2
* Fix not being able to colour format output to stderr on Windows.Gravatar Sadie Powell2021-03-031-0/+13
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-6/+6
* Replace our Windows getopt_long wrapper with ya_getopt.•••Closes #546. Gravatar Peter Powell2019-12-081-74/+1
* Add a method for getting a list of files in a directory.Gravatar Peter Powell2019-06-101-39/+0
* Purge code for Windows XP and MSVC pre-2015.Gravatar Peter Powell2017-08-061-60/+0
* Merge insp20Gravatar Attila Molnar2014-10-271-4/+4
|\
| * Check the return value of getnameinfo() on Windows in insp_inet_ntop() and re...Gravatar Attila Molnar2014-10-221-4/+4
* | Merge insp20Gravatar Attila Molnar2014-07-251-0/+5
|\|
| * Filter out newlines from error messages on WindowsGravatar Attila Molnar2014-04-121-0/+5
* | Merge insp20Gravatar attilamolnar2013-08-301-7/+0
|\|
| * Don't CoreExport reference, fixes m_dnsbl on Windows•••The explicit instantiations of reference are now useless; remove Gravatar attilamolnar2013-08-301-7/+0
* | Merge insp20Gravatar attilamolnar2013-06-061-13/+33
|\|
| * Fix inet_pton on Windows with IPv6 addresses•••Code from Anope win32/socket.cpp by @Adam- Gravatar attilamolnar2013-06-041-10/+30
* | Tidy up source files:•••- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues. Gravatar Peter Powell2013-04-121-1/+2
|/
* Win32: Rewrite the service wrapper•••Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar) Fixes #404 reported by @crchauffe Gravatar ChrisTX2013-03-251-0/+22
* Replace printf(_c) with iostreamGravatar ChrisTX2012-10-141-3/+0
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-496/+13
* Merge pull request #314 from ChrisTX/insp20+DnsQueryConfig•••Windows: Replace the old DNS server find mechanism with the proper one, the appropriate APIGravatar Adam2012-10-041-91/+26
|\
| * Windows: Use the WinAPI for DNS server retrievalGravatar ChrisTX2012-10-041-91/+26
* | Windows: Replace the unused function hack with explicit instantiationGravatar ChrisTX2012-10-041-41/+4
|/
* Fixed issue #303 - fixed Windows buildGravatar Adam2012-09-281-0/+5
* Fixed Windows buildGravatar Adam2012-07-171-0/+7
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+20
* Fix extras compilation under WindowsGravatar Adam2011-06-181-3/+11
* Fix timers never being ticked on windowsGravatar Adam2011-05-211-1/+1
* Fixed Windows build on VS 2010Gravatar Adam2011-04-101-2/+48
* Remove excessive gettimeofday system calls•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12293 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-181-2/+2
* Fix for memory leak when gui is attached, submitted and fixed by GreenReaper,...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11936 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2009-10-211-6/+9
* Text fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11893 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-171-1/+1
* Fix up finding dns server to use for windows to match latest configreader cha...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11892 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-171-19/+28
* Define DISABLE_WRITEV and use the IOHook single-copy method for Windows send()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11848 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-121-24/+0
* 3rd time lucky? Fix again for setsockopt.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11825 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-5/+0
* Slight tweak to setsockopt fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11824 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-0/+5
* * Fix inspsocket to not include uio.h on windows.•••* Wrap writev and some structs to fix inspsocket compile on win. * Fix a few compile errors due to latest trunk changes in win32wrapper code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11822 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-10-101-5/+29
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-3/+3
* Fixes for config reader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11504 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-08-121-2/+1
* Fix our getops implementation on windows. Have optind available, and make sur...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11466 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-08-021-8/+9