Fix LRU append on successful GSS ctx hash set.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Correctly assign req->rq_auth after GSS ctx lookup.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Portability work.

First effort at restoring portability to 4BSD platforms, in
particular, FreeBSD RELENG_9.

The promised EPOLL->kevent shim from Boaz Harrosh is not yet
relicensed.  This code builds and links with the epoll code
inserted in misc/epoll.h (section) and src/bsd_epoll.c (file).

An updated getpeereid.c from PostgreSQL 9 (BSD licensed) has been
added, with attribution, replacing the earlier getpeereid.c.

UDP/msghdr changes compile, but not tested.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix crash in __rpcb_findaddr_timed

Initialize client pointer to NULL so test works despite falling
through the conditionals that set it.

Signed-off-by: Adam C. Emerson <aemerson@linuxbox.com>
Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Dispose xp_auth.  Dispose legacy xp_getargs.

This change completes the removal of MT-unsafe xp_getargs.
The erstwhile xp_getargs2 is now renamed xp_getargs.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix svc_getargs2 caller in svc_auth_gss.c.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Port targeting mingw64.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Port more files.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
More portabilty (MINGW32).

Re-organize to support winpthreads.h, BSD-licensed, single-header
pthreads WINNT shim.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Add svc.c to ntmakefile.  Add warnx.  Fix proto of
pthread_create_wrapper.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Port svc_run.c.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix missing includes for compilation on !_WIN32.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Add EPOLL kevent emulation.

This API redirection is by Boaz Harrosh, based on work by
Roman Divacky for FreeBSD.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix signature of svc_raw_getargs.

Found and root-caused by Adam Emerson.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix uninitialized CLIENT.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Next FreeBSD RELENG_9 cleanups.

Now builds to final link, with one link-line adjustment.
Autotools cleanups to follow.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Improve autotools library checks (FBSD).

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Oops.  Don't try to include config.h in an exported header.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Use the ncreate trick to divert auth_* functions, as we did
wit clnt and svc.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Restore struct cmsgcred decl on __linux__.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>