Re: Runtime detection of EA support
Denis Corbin <[email protected]> Thu, 05 Jul 2007 22:02:03 +0200
| Newsgroups | gmane.comp.sysutils.backup.dar.general |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Fries wrote: > On Wed, Jul 04, 2007 at 06:48:15PM +0200, Denis Corbin wrote: >> My second concern is that even under Linux, I don't known how to make >> such an on-fly dynamic linking with a third party library. I guess this >> is not possible, as a process cannot modify its own code segment (?). > > Easy actually, just see man dlopen(3). Give it the filename which is > the shared object, then use dlsym to lookup the address of a function, > and call it. It helps if the function is not a mangled C++ name. Not > all operating systems or platforms even support dynamically loading > libraries. That's sound even more simple than I thought. :-) > > I'm working on two patches myself for performance improvements. How performace can be improved using dlopen? dynamic linking is done once, no? > I'm > currently working on release 2.3.2, so I figure I'll have to port them > to the development tree before submitting patches. No necessarily, I can adapt it to development trunk. > At least I expect > those kinds of patches to go against the development version. > Yep, patch can stay available for anyone from the "patch tracker" on sourceforge and would be merged to development version (unless the patch fixes a bug). Thus there is no problem having the patch based on a release version. Kind Regards, Denis. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGjU47pC5CI8gYGlIRAs0YAJ9UJSoiiaMQlWkmk6IS02VlWXjnnQCcDrBp 1A741yaHeEky+oacKZpgLtw= =umLm -----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/