fi_eq.3: per #268, return -FI_ETIMEDOUT on timeout instead of 0.

Also specify that a negative timeout means an infinite timeout.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
usnic: return -FI_ETIMEDOUT from eq_sread upon timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
sockets: return -FI_TIMEDOUT upon timeout, and honor inifite timeout

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
verbs: return -FI_TIMEDOUT upon timeout

Simplify the loop a bit by using while(1) and returning from directly
inside the loop.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
fi_dupinfo - jumping to fail with dup = NULL is bug, so much for
"future-proofing" !!

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi_av_insert in async mode with no EQ specified should return -FI_ENOEQ,
not -FI_EINVAL

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi_tostr has wrong size for protocol

Is val64, should be val32 as fi_ep_attr::protocol is uint32_t

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fi.h: typedef _Atomic to atomic_int

Intel compiler likes this better.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Merge pull request #280 from rfaucett/pr/tostr_psize

fi_tostr has wrong size for protocol
Merge pull request #277 from rfaucett/pr/dup_oop

fi_dupinfo - jumping to fail with dup = NULL is bug, so much for
Merge pull request #278 from rfaucett/pr/fi_noeq

fi_av_insert in async mode with no EQ specified should return -FI_ENOEQ,
Merge pull request #269 from jsquyres/pr/really-fix-eq-sread-timeout

Fix eq_sread timeouts
Merge pull request #282 from sayantansur/c11-atomics

fi.h: typedef _Atomic to atomic_int
Update fi_av man page
Specify behavior of fi_av_insert on FI_AV_TABLE across successive calls
and also behavior of failed insertions when in synchronous mode.

Fixes #274

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Makefile: install fi_direct_eq.h with HAVE_DIRECT

fi_direct_eq.h should also be installed when HAVE_DIRECT is
enabled.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
usdf_getinfo: prevent double-call to freeaddrinfo()

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
Merge pull request #287 from rfaucett/pr/usdf_getinfo

usdf_getinfo: prevent double-call to freeaddrinfo()
fi_poll_fd never returns success (> 0)

Signed-off-by: pmmccorm <patrick.m.mccormick@intel.com>
fi_ep_bind: correct fi_ep_bind type

Correct manpage fi_ep_bind ignature:

int fi_ep_bind(struct fid *ep, struct fid *fid, uint64_t flags);

TO:

int fi_ep_bind(struct fid_ep *ep, struct fid *fid, uint64_t flags);

Provide static inline implementation of fi_ep_bind that does
type-checking.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>
Merge pull request #283 from sayantansur/fi-direct-eq

Makefile: install fi_direct_eq.h with HAVE_DIRECT