Merge pull request #179 from shefty/master

API updates to simplify usage
Use symbol visibility attribute to define exported symbols.

To be used in conjunction with the linker script.

Should allow for better optimization, see:

http://www.akkadia.org/drepper/dsohowto.pdf

Section 2.1
Symbol versioning.

Assign FABRIC_1.0 versions to all exported symbols and modify function
definitions to allow for redefining in the future.
Merge pull request #169 from pmmccorm/gcctricks

gcc and linker tricks
src/fabric.c: fir scandir strerror()

Signed-off-by: Reese Faucette <rfaucett@cisco.com>
fabric: Return open fabric/domain object from fi_getinfo

If an application makes a call to fi_getinfo and an existing
fabric/domain has been opened against the getinfo
output data, return the exising objects to the user.

This simplifies things for the app trying to determine if
it has already opened the returned fabric or domain.  Instead of
needing to search based on the fabric/domain string, it is given
a pointer to the opened objects.  The app is free to ignore the
returned value and open a new object.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Merge pull request #180 from rfaucett/scandir

src/fabric.c: fix scandir strerror()
fabric: Add CQ writerr routine

Clarify the behavior of CQ write() and provide a separate routine
for inserting errors into the CQ.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
define FI_MSG_PREFIX

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

define FI_MSG_PREFIX
Fix dlopen configure switch. This just does not seem to work when specified as a enable option. Reverted back to with option.
Merge pull request #183 from pmmccorm/master

Fix dlopen configure switch.
Based on my reading of the autoconf manual, AC_ARG_WITH is to be used with external packages, so I believe that this change is desired anyway, versus using AC_ARG_ENABLE.
fabric: Convert CQ len from byte to count

Now that the CQ has been separated from the EQ, it actually makes
more sense to have it accept and return a count of entries found,
rather than the size, since each entry is a fixed size.

This fixes a quirk in the API with fi_cq_readfrom, where len
applies to the buf, but the number of src_addr's is unknown.  Now
the count will apply to both fields.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
man: Spell check update

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
fi_tostr: add print support for FI_MSG_PREFIX

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

fi_tostr: add print support for FI_MSG_PREFIX
Merge branch 'dev'