OK, here's v3 of this series. Since the last version, the following
things were done:
* 01/14 has the error-path cleaned up, as suggested by Eric Sunshine
* 02/14 now supports any vararg input, and escapes "%1" to "% 1" to
avoid a limitation ni ReportEvent(). The code has also been moved
to compat/win32/syslog.[ch], since it's fairly self contained and
it's not strictly speaking a mingw-specific thing.
* 05/14 now has an extended commit message, detailing the rationale
a bit more
* 08/14 has been fixed up as suggested by Eric Sunshine
* 11/14 has been fixed up to remove code left dead by the previous
version
* 12/14 has a better commit message, including an explanation on
how to update the code. The sources have also been moved to
compat/win32/sys/poll.[ch], which is where git usually looks for
the poll-header.
* 14/14 has been split out into 14/15 and 15/15, because it
contained some left-over changes (unsigned int -> socklen_t). The
left-over code is 14/15.
* 15/15 have the _POSIX_VERSION-check replaced with a check for
NO_POSIX_GOODIES. It has been changed back to opt-out, since I
don't want to have to deal with figuring out what platforms it
will work for or not. Currently all platforms except from Windows
supports all posix-"goodies", but it should be easy to opt-out
for a future plaform.
Erik Faye-Lund (11):
inet_ntop: fix a couple of old-style decls
mingw: use real pid
mingw: support waitpid with pid > 0 and WNOHANG
mingw: add kill emulation
daemon: use run-command api for async serving
daemon: use full buffered mode for stderr
daemon: report connection from root-process
mingw: import poll-emulation from gnulib
mingw: use poll-emulation from gnulib
daemon: use socklen_t
daemon: opt-out on features that require posix
Martin Storsjö (1):
Improve the mingw getaddrinfo stub to handle more use cases
Mike Pape (3):
mingw: add network-wrappers for daemon
mingw: implement syslog
compat: add inet_pton and inet_ntop prototypes
Makefile | 23 ++-
compat/inet_ntop.c | 22 +--
compat/inet_pton.c | 8 +-
compat/mingw.c | 232 +++++++++++++------
compat/mingw.h | 41 ++--
compat/win32/sys/poll.c | 596 +++++++++++++++++++++++++++++++++++++++++++++++
compat/win32/sys/poll.h | 53 +++++
compat/win32/syslog.c | 72 ++++++
compat/win32/syslog.h | 20 ++
daemon.c | 199 +++++++++-------
git-compat-util.h | 11 +-
11 files changed, 1067 insertions(+), 210 deletions(-)
create mode 100644 compat/win32/sys/poll.c
create mode 100644 compat/win32/sys/poll.h
create mode 100644 compat/win32/syslog.c
create mode 100644 compat/win32/syslog.h