source: trunk/essentials/dev-lang/perl/ext/DynaLoader/dl_dlopen.xs

Last change on this file was 3188, checked in by bird, 19 years ago

Applied patch from Paul (aka Creeping).

  • Property svn:eol-style set to native
File size: 7.2 KB
Line 
1/* dl_dlopen.xs
2 *
3 * Platform: SunOS/Solaris, possibly others which use dlopen.
4 * Author: Paul Marquess ([email protected])
5 * Created: 10th July 1994
6 *
7 * Modified:
8 * 15th July 1994 - Added code to explicitly save any error messages.
9 * 3rd August 1994 - Upgraded to v3 spec.
10 * 9th August 1994 - Changed to use IV
11 * 10th August 1994 - Tim Bunce: Added RTLD_LAZY, switchable debugging,
12 * basic FreeBSD support, removed ClearError
13 * 29th Feburary 2000 - Alan Burlison: Added functionality to close dlopen'd
14 * files when the interpreter exits
15 *
16 */
17
18/* Porting notes:
19
20
21 Definition of Sunos dynamic Linking functions
22 =============================================
23 In order to make this implementation easier to understand here is a
24 quick definition of the SunOS Dynamic Linking functions which are
25 used here.
26
27 dlopen
28 ------
29 void *
30 dlopen(path, mode)
31 char * path;
32 int mode;
33
34 This function takes the name of a dynamic object file and returns
35 a descriptor which can be used by dlsym later. It returns NULL on
36 error.