Guido van Rossum
15af20a337
Better #ifdefs for NetBSD, taking into account that at least on netBSD
1.3, dlopen() etc. are fully implemented, including dlerror().
From Jaromir Dolecek and Ty Sarna.
28 years ago
Guido van Rossum
08052c7bb6
Add the flag RTLD_GLOBAL to the dlopen() options.
This exports symbols defined by the loaded extension to other
extensions (loaded later).
(I'm not quite sure about this but suppose it can't hurt...)
29 years ago
Guido van Rossum
8e9ebfd337
os2 patch by Jeff Rush
29 years ago
Guido van Rossum
2e58ff3ef5
Fix importing of shared libraries from inside packages.
This is a bit of a hack: when the shared library is loaded, the module
name is "package.module", but the module calls Py_InitModule*() with just
"module" for the name. The shared library loader squirrels away the true
name of the module in _Py_PackageContext, and Py_InitModule*() will
substitute this (if the name actually matches).
29 years ago
Guido van Rossum
3b31cd2fe7
Shared libraries didn't quite work under AIX because of the change in
status of the GNU readline interface. Here's a patch, by Vladimir
Marangozov.
29 years ago
Guido van Rossum
54dec59b56
set sharedlib extensions properly for NeXT (Ted Horst)
29 years ago
Guido van Rossum
25ce566661
The last of the mass checkins for separate (sub)interpreters.
Everything should now work again.
See the comments for the .h files mass checkin (e.g. pystate.h) for
more detail.
29 years ago
Guido van Rossum
ef3d02ebb9
Removed some variables that are used to exchange data between import.c and
importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and
the modules dictionary is now passed using PyImport_GetModuleDict().
Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists
but we don't want to use it.
29 years ago
Guido van Rossum
af5dfb4ceb
One last rename glitch: import_modules -> _PyImport_Modules.
29 years ago
Guido van Rossum
9218b70bdc
Remove 2 out of 3 __FreeBSD__ tests.
These are no longer needed as of FreeBSD 2.0.5, according to
Thomas Gellekum <tg@ihf.rwth-aachen.de>.
29 years ago
Guido van Rossum
bc2472db8e
Avoid some potential (though unlikely) sprintf buffer overflows.
29 years ago
Guido van Rossum
79f25d9a7b
Quickly renamed the remaining files -- this directory is done.
29 years ago
Guido van Rossum
1d2e240954
(Jack:) On the Mac, don't automatically enable dynamic loading.
29 years ago
Guido van Rossum
644a12b00c
Tweaks to keep the Microsoft compiler quier.
29 years ago
Guido van Rossum
3afb5959aa
Some extra flags that an HPUX user wants me to add.
30 years ago
Guido van Rossum
d266eb460e
New permission notice, includes CNRI.
30 years ago
Guido van Rossum
9b38a145e2
Rationalized MS ifdefs
30 years ago
Guido van Rossum
504f4a9901
Don't require <dlfcn.h> -- rely on existence of dlopen().
30 years ago
Guido van Rossum
1e6124902a
Many little fixes:
- support for SCO_SV dynamic loading
- on Mac, auto-detect dynamic loading by __CFM68K__ or _powerc)
- on Mac, long shared library extension is .cfm68k.slb or .ppc.slb
- on hp, don't redefine hpux if already defined
- add __file__ property to successfully loaded module
30 years ago
Guido van Rossum
0bbf253e97
Insert "./" in front of pathname when it contains no '/' (if USE_SHLIB)
30 years ago
Guido van Rossum
d5962adb44
Changes for AIX sharedlibs.
30 years ago
Guido van Rossum
3823420ca4
If NO_DYNAMIC_LINK is defined, load_dynamic_module() will always fail.
30 years ago
Guido van Rossum
236f62da7a
Corrections to aix_loaderror(), by Manus Hand.
30 years ago
Guido van Rossum
dadc824c6e
removed verbose decl; added win3.1 dynamic linking.
30 years ago
Guido van Rossum
e71a947f8e
Under NT, change "long" sharedlib extension to ".dll". (Mark H.)
30 years ago
Guido van Rossum
25e852985f
__FreeBSD__ shared libraries
30 years ago
Guido van Rossum
ff4af06735
__hpux -> hpux equivalence
30 years ago
Jack Jansen
0a72e8d4d2
Added missing include for <Aliases.h>
31 years ago
Guido van Rossum
11a3f0c2bc
NT specific change for nicer error message (Mark H)
31 years ago
Jack Jansen
eceb3e3f0a
Porting to CW CFM68K
31 years ago
Guido van Rossum
75f288de71
re-enabled NeXT dynamic linking (#ifdef NeXT)
31 years ago
Jack Jansen
5d9acb6b9e
Mac dynloading is now enabled by USE_MAC_DYNAMIC_LOADING.
Mac dynloading changed to allow multiple modules to live in with each
other in the same file.
31 years ago
Sjoerd Mullender
fbe6d33ffd
Check if we've already loaded a dynamic module under a different name.
31 years ago
Guido van Rossum
0fbec64c56
for BorlandC
31 years ago
Guido van Rossum
3097c3a87e
change ifdefs and fix "%#s" format
31 years ago
Guido van Rossum
6a75d26622
ported to 68K Mac; changed suffix to .slb
31 years ago
Jack Jansen
4e04373073
Added code to import dynamic modules using mac CFM.
31 years ago
Guido van Rossum
46c76a6c66
added changes for NetBSD dynamic linking; removed shared linking for NeXT
31 years ago
Guido van Rossum
6da5bfad0f
remove nogus reload check
31 years ago
Guido van Rossum
5fb1da76ff
NT dlls have .pyd extension instead of .dll
31 years ago
Guido van Rossum
6d023c98b0
Added 1995 to copyright message.
bltinmodule.c: fixed coerce() nightmare in ternary pow().
modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject().
pythonrun.c: move flushline() into and around print_error().
31 years ago
Guido van Rossum
1ae940a587
Lots of changes, most minor (fatal() instead of abort(), use of
err_fetch/err_restore and so on). But...
NOTE: import.c has been rewritten and all the DL stuff is now in the
new file importdl.c.
31 years ago