Re: loadble module
"John (J5) Palmieri" <johnp-RoTUmEBdgM/[email protected]>
| Newsgroups | gmane.comp.freedesktop.xserver |
|---|---|
| Message-ID | <[email protected]> |
Small correction HP-UX has it's own load commands similar to dlopen and the files have been abstracted a bit more than just a single file since I have worked on it. Basiclu it has been abstracted for each platform using loadLibrary, getFunction and unloadLibrary as an interface. -- J5 On Tue, 2004-01-13 at 10:54, John (J5) Palmieri wrote: > On Tue, 2004-01-13 at 04:55, Ely Levy wrote: > <snip> > > using dlopen(which would only work on elf systems), using apache way? > > or maybe something else all together? > > > > I'm not an expert on X server development. I mostly lurk here. I just > wanted to say that dlopen certantly works on non elf systems. I have a > project that loads C++ objects using dlopen, a nonmangled C entry point > and and pure virtual interfaces. We use dlopen on Linux, BSD and Sun > systems. I am pretty sure that HPUX also uses dlopen but has a > different library extention (.sl instead of .so). It also works nativly > under windows systems using the LoadLibrary system calls and a couple of > #ifdefs placed in one file which we use for abstrating the actual > loading of the libraries. You can check it out at > http://somelib.sourceforge.net. I don't work on it anymore but it can > give you idea on how loading libraries can be done across different > platforms using the same codebase. > > -- > J5 > > _______________________________________________ > Xserver mailing list > Xserver-u7BhqnqprCWvj1b/[email protected] > http://pdx.freedesktop.org/cgi-bin/mailman/listinfo/xserver