]> git.openfabrics.org - ~shefty/librdmacm.git/commit
librdmacm: returns errors from the library consistently
authorJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Wed, 21 Oct 2009 15:02:43 +0000 (08:02 -0700)
committerSean Hefty <sean.hefty@intel.com>
Wed, 21 Oct 2009 15:02:43 +0000 (08:02 -0700)
commit4e33a4109a622173e6662f6f675c1aee9ac5e938
tree8ab000024cb2ac49bf25836c518aeffc7b9df471
parent7e9e9e8fd8d883524cf96585897072b4449cb190
librdmacm: returns errors from the library consistently

Remove the return of -errno and always return codes via errno.
As documented in librdmacm, these libraries are already documented
to return -1 to indicate the code is in errno.

Update rping to show correct error reporting methodology.

Also fix errant return of 0 if the read/write syscalls return 0.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
examples/rping.c
man/rdma_cm.7
src/cma.c