Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16866)

Side by Side Diff: Python/dynload_hpux.c

Issue 16754: Incorrect shared library extension on linux
Patch Set: Created 6 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Makefile.pre.in ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* Support for dynamic loading of extension modules */ 2 /* Support for dynamic loading of extension modules */
3 3
4 #include "dl.h" 4 #include "dl.h"
5 #include <errno.h> 5 #include <errno.h>
6 6
7 #include "Python.h" 7 #include "Python.h"
8 #include "importdl.h" 8 #include "importdl.h"
9 9
10 #if defined(__hp9000s300) 10 #if defined(__hp9000s300)
11 #define FUNCNAME_PATTERN "_PyInit_%.200s" 11 #define FUNCNAME_PATTERN "_PyInit_%.200s"
12 #else 12 #else
13 #define FUNCNAME_PATTERN "PyInit_%.200s" 13 #define FUNCNAME_PATTERN "PyInit_%.200s"
14 #endif 14 #endif
15 15
16 const char *_PyImport_DynLoadFiletab[] = {SHLIB_EXT, NULL}; 16 const char *_PyImport_DynLoadFiletab[] = {'.sl', NULL};
17 17
18 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname, 18 dl_funcptr _PyImport_GetDynLoadFunc(const char *shortname,
19 const char *pathname, FILE *fp) 19 const char *pathname, FILE *fp)
20 { 20 {
21 dl_funcptr p; 21 dl_funcptr p;
22 shl_t lib; 22 shl_t lib;
23 int flags; 23 int flags;
24 char funcname[258]; 24 char funcname[258];
25 25
26 flags = BIND_FIRST | BIND_DEFERRED; 26 flags = BIND_FIRST | BIND_DEFERRED;
(...skipping 28 matching lines...) Expand all
55 printf("shl_findsym %s\n", funcname); 55 printf("shl_findsym %s\n", funcname);
56 if (shl_findsym(&lib, funcname, TYPE_UNDEFINED, (void *) &p) == -1) { 56 if (shl_findsym(&lib, funcname, TYPE_UNDEFINED, (void *) &p) == -1) {
57 shl_unload(lib); 57 shl_unload(lib);
58 p = NULL; 58 p = NULL;
59 } 59 }
60 if (p == NULL && Py_VerboseFlag) 60 if (p == NULL && Py_VerboseFlag)
61 perror(funcname); 61 perror(funcname);
62 62
63 return p; 63 return p;
64 } 64 }
OLDNEW
« no previous file with comments | « Makefile.pre.in ('k') | no next file » | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+