aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/windows.h
Commit message (Collapse)AuthorAgeFilesLines
* windows: Move the compatibility header to the compat subfolderMartin Willi2014-11-211-627/+0
|
* windows: Provide a write(2) wrapper that uses send(2) on socketsMartin Willi2014-11-211-0/+6
|
* windows: Provide a read(2) wrapper that uses recv(2) on socketsMartin Willi2014-11-211-0/+9
|
* windows: Provide a poll(2) wrapper calling WSAPoll()Martin Willi2014-11-211-0/+28
|
* Fixed some typosTobias Brunner2014-06-301-1/+1
|
* windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy()Martin Willi2014-06-251-0/+1
| | | | | | fstat() in newer MinGWs is defined as non-static inline. With our new static inline memset()/memcpy() overloads, this raises a warning. To avoid it, explicitly include <sys/stat.h> once before defining these overloads.
* windows: Declare strerror_s()Martin Willi2014-06-171-0/+5
| | | | | Older MinGW versions seem to miss this function declaration. Fixes build on Travis using Ubuntu 12.04.
* windows: Extend strerror_r/s by extended POSIX errno stringsMartin Willi2014-06-171-0/+6
|
* windows: Implement strerror_r using strerror_sMartin Willi2014-06-171-0/+9
|
* windows: Wrap most Winsock2 Posix functions to set errnoMartin Willi2014-06-171-0/+57
| | | | | | While Winsock provides many Posix compatibility functions, they do not set errno, but use WSAGetLastError() for error reporting. The wrapped functions derive an errno from WSAGetLastError() on failure.
* windows: Use WINAPI call convention for Windows API callbacksMartin Willi2014-06-061-2/+2
| | | | | For x86_64 it does not actually matter, but for i686 builds the call convention is different with WINAPI.
* windows: Provide POSIX supplement errno values missing in MinGWMartin Willi2014-06-041-15/+129
| | | | | MinGW headers do not define these values, but Windows system headers do. Windows defines them for POSIX compatibility, we do the same locally.
* windows: Provide shutdown(2) operation aliases mapping to those on WindowsMartin Willi2014-06-041-0/+7
|
* windows: Provide a getpass() implementationMartin Willi2014-06-041-0/+6
|
* windows: Don't redeclare inet_ntop/pton if already definedMartin Willi2014-06-041-0/+4
|
* windows: Check for existence of error codes before defining themMartin Willi2014-06-041-0/+4
|
* windows: Overload sleep() cancellable when it is defined in <unistd.h>Martin Willi2014-06-041-1/+3
|
* windows: Provide a close(2) that can close both file handles and socketsMartin Willi2014-06-041-0/+6
|
* windows: Don't use function macros to overload send/recv() and friendsMartin Willi2014-06-041-4/+4
| | | | | While the macro versions would not catch non-function invocations, we actually have to use catch all to support the sender_t.send() function.
* windows: Provide a strndup(3) replacementMartin Willi2014-06-041-0/+5
|
* unit-tests: Uninline dlopen() and friends, make more dynamic, fix dlerror()Martin Willi2014-06-041-58/+12
| | | | | As the error string contains a newline, we have to remove that before returning the string.
* windows: Provide a cancellable usleep(), but with ms resolution onlyMartin Willi2014-06-041-0/+5
|
* windows: Add a sleep function acting as cancellation pointMartin Willi2014-06-041-0/+9
|
* windows: Provide a sched_yield() implementationMartin Willi2014-06-041-0/+9
|
* windows: Provide a strdup variant safe when passing zero-length stringsMartin Willi2014-06-041-0/+15
|
* stream: Separate TCP/Unix stream helpers from stream/service implementationsMartin Willi2014-06-041-0/+6
| | | | | | This allows us to disable Unix sockets cleanly on Windows. Replaces some read/write calls with recv/send counterparts, as Winsock does not like read/writes.
* windows: Add send/recv and sendto/recvfrom wrappers supporting MSG_DONTWAITMartin Willi2014-06-041-0/+36
|
* windows: Implement socketpair() using TCP socketsMartin Willi2014-06-041-0/+5
|
* windows: Add utils_init/deinit functions to initialize Winsock2Martin Willi2014-06-041-0/+10
|
* windows: Provide a setenv() wrapperMartin Willi2014-06-041-0/+12
|
* windows: Fix up PRI* printf formatters when building against own backendMartin Willi2014-06-041-0/+71
|
* windows: Use localtime/gmtime to implement _r variantsMartin Willi2014-06-041-26/+18
| | | | The _s variants and friends do not seem to work on Windows 7 and always fail.
* windows: Provide wrappers for dlopen() function familyMartin Willi2014-06-031-0/+81
|
* windows: Add a common Windows header for platform specific wrappersMartin Willi2014-06-031-0/+153
Include some more basic system headers in utils.h, so we can use that common header on the different platforms.