Re: Runtime detection of EA support

"Dave Vasilevsky" <[email protected]> Wed, 4 Jul 2007 18:08:25 -0400
Newsgroups gmane.comp.sysutils.backup.dar.general
Message-ID <[email protected]>
On 7/4/07, Denis Corbin <[email protected]> wrote:
> I am not aware of a portable way to dynamically load a
> library at execution time once the process has been ran.

Denis,
The dlopen/dlsym API is widely available and can load functions from a
library at runtime, that's the one I would use on Linux/BSD/UNIX.
Early versions of Mac OS X don't have dlopen, so they can use a
Mac-specific API CFBundleGetFunctionPointerForName. I'm sure there's
an equivalent Windows solution. (Does dar even support EAs on Windows?
I was under the impression Cygwin does not support the xattr API.)

Anyhow, this is only an optional feature. If some unusual platform has
no known method for supporting runtime symbol lookup, then they'll
have only compile-time EA support. They won't be any worse off than
they are now.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/