Re: Runtime detection of EA support
Denis Corbin <[email protected]> Thu, 05 Jul 2007 21:40:03 +0200
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dave Vasilevsky wrote: > 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.) No, Cygwin does not supports EA. But, if the dlopen/dlsym feature is optionnal, it should not be a problem. > > 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. Yep. > > Dave > Regards, Denis. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjUkTpC5CI8gYGlIRAjYTAJ9LZc58RXz0FDjO2c0eseWQ8kkznQCfXY9+ 8REejRRw5QaTAedJlSBe/5s= =zqwQ -----END PGP SIGNATURE----- ------------------------------------------------------------------------- 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/