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
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()
Merge pull request #283 from sayantansur/fi-direct-eq

Makefile: install fi_direct_eq.h with HAVE_DIRECT