Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | windows: Move the compatibility header to the compat subfolder | Martin Willi | 2014-11-21 | 1 | -627/+0 |
| | |||||
* | windows: Provide a write(2) wrapper that uses send(2) on sockets | Martin Willi | 2014-11-21 | 1 | -0/+6 |
| | |||||
* | windows: Provide a read(2) wrapper that uses recv(2) on sockets | Martin Willi | 2014-11-21 | 1 | -0/+9 |
| | |||||
* | windows: Provide a poll(2) wrapper calling WSAPoll() | Martin Willi | 2014-11-21 | 1 | -0/+28 |
| | |||||
* | Fixed some typos | Tobias Brunner | 2014-06-30 | 1 | -1/+1 |
| | |||||
* | windows: Include <sys/stat.h> explicitly before overloading memset()/memcpy() | Martin Willi | 2014-06-25 | 1 | -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 Willi | 2014-06-17 | 1 | -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 strings | Martin Willi | 2014-06-17 | 1 | -0/+6 |
| | |||||
* | windows: Implement strerror_r using strerror_s | Martin Willi | 2014-06-17 | 1 | -0/+9 |
| | |||||
* | windows: Wrap most Winsock2 Posix functions to set errno | Martin Willi | 2014-06-17 | 1 | -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 callbacks | Martin Willi | 2014-06-06 | 1 | -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 MinGW | Martin Willi | 2014-06-04 | 1 | -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 Windows | Martin Willi | 2014-06-04 | 1 | -0/+7 |
| | |||||
* | windows: Provide a getpass() implementation | Martin Willi | 2014-06-04 | 1 | -0/+6 |
| | |||||
* | windows: Don't redeclare inet_ntop/pton if already defined | Martin Willi | 2014-06-04 | 1 | -0/+4 |
| | |||||
* | windows: Check for existence of error codes before defining them | Martin Willi | 2014-06-04 | 1 | -0/+4 |
| | |||||
* | windows: Overload sleep() cancellable when it is defined in <unistd.h> | Martin Willi | 2014-06-04 | 1 | -1/+3 |
| | |||||
* | windows: Provide a close(2) that can close both file handles and sockets | Martin Willi | 2014-06-04 | 1 | -0/+6 |
| | |||||
* | windows: Don't use function macros to overload send/recv() and friends | Martin Willi | 2014-06-04 | 1 | -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) replacement | Martin Willi | 2014-06-04 | 1 | -0/+5 |
| | |||||
* | unit-tests: Uninline dlopen() and friends, make more dynamic, fix dlerror() | Martin Willi | 2014-06-04 | 1 | -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 only | Martin Willi | 2014-06-04 | 1 | -0/+5 |
| | |||||
* | windows: Add a sleep function acting as cancellation point | Martin Willi | 2014-06-04 | 1 | -0/+9 |
| | |||||
* | windows: Provide a sched_yield() implementation | Martin Willi | 2014-06-04 | 1 | -0/+9 |
| | |||||
* | windows: Provide a strdup variant safe when passing zero-length strings | Martin Willi | 2014-06-04 | 1 | -0/+15 |
| | |||||
* | stream: Separate TCP/Unix stream helpers from stream/service implementations | Martin Willi | 2014-06-04 | 1 | -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_DONTWAIT | Martin Willi | 2014-06-04 | 1 | -0/+36 |
| | |||||
* | windows: Implement socketpair() using TCP sockets | Martin Willi | 2014-06-04 | 1 | -0/+5 |
| | |||||
* | windows: Add utils_init/deinit functions to initialize Winsock2 | Martin Willi | 2014-06-04 | 1 | -0/+10 |
| | |||||
* | windows: Provide a setenv() wrapper | Martin Willi | 2014-06-04 | 1 | -0/+12 |
| | |||||
* | windows: Fix up PRI* printf formatters when building against own backend | Martin Willi | 2014-06-04 | 1 | -0/+71 |
| | |||||
* | windows: Use localtime/gmtime to implement _r variants | Martin Willi | 2014-06-04 | 1 | -26/+18 |
| | | | | The _s variants and friends do not seem to work on Windows 7 and always fail. | ||||
* | windows: Provide wrappers for dlopen() function family | Martin Willi | 2014-06-03 | 1 | -0/+81 |
| | |||||
* | windows: Add a common Windows header for platform specific wrappers | Martin Willi | 2014-06-03 | 1 | -0/+153 |
Include some more basic system headers in utils.h, so we can use that common header on the different platforms. |