summaryrefslogtreecommitdiff
path: root/Python/dynload_shlib.c
Commit message (Collapse)AuthorAgeFilesLines
* PEP 489: Multi-phase extension module initializationNick Coghlan2015-05-231-3/+5
| | | | | | | | | | | | | | | | | | | | | | | Known limitations of the current implementation: - documentation changes are incomplete - there's a reference leak I haven't tracked down yet The leak is most visible by running: ./python -m test -R3:3 test_importlib However, you can also see it by running: ./python -X showrefcount Importing the array or _testmultiphase modules, and then deleting them from both sys.modules and the local namespace shows significant increases in the total number of active references each cycle. By contrast, with _testcapi (which continues to use single-phase initialisation) the global refcounts stabilise after a couple of cycles.
* Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-8/+6
| | | | Add _Py_fstat_noraise() function when a Python exception is not welcome.
* Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on ↵Steve Dower2015-02-211-2/+2
| | | | | | Windows. fstat() may fail with EOVERFLOW on files larger than 2 GB because the file size type is an signed 32-bit integer.
* Issue #16136: Remove VMS support and VMS-related codeChristian Heimes2013-12-211-26/+0
|
* merge 3.3Benjamin Peterson2013-07-221-1/+2
|\
| * return NULL hereBenjamin Peterson2013-07-221-1/+2
| |
* | Check return value of fstat() in _PyImport_GetDynLoadFunc()Christian Heimes2013-07-201-1/+3
|\ \ | |/ | | | | CID 486250
| * Check return value of fstat() in _PyImport_GetDynLoadFunc()Christian Heimes2013-07-201-1/+3
| | | | | | | | CID 486250
* | #16135: Removal of OS/2 support (I)Jesus Cea2012-10-051-11/+0
| |
* | Close #15766: Catch exceptions while raising the ImportError in ↵Victor Stinner2012-10-021-7/+18
|/ | | | imp.load_dynamic()
* Issue #15766: Fix a crash in imp.load_dynamic() on PyUnicode_FromString() ↵Victor Stinner2012-08-221-3/+3
| | | | failure
* Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py.Brett Cannon2012-05-041-10/+10
| | | | | | This introduces a new function, imp.extension_suffixes(), which is currently undocumented. That is forthcoming once issue #14657 is resolved and how to expose file suffixes is decided.
* Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-201-1/+10
| | | | | | | in Python/dynload_shlibs.c. This should fix the remaining importlib test failure on Windows. Support in AIX and HP-UX will be in a separate checkin.
* Issue #2377: Make importlib the implementation of __import__().Brett Cannon2012-04-141-4/+0
| | | | | | | importlib._bootstrap is now frozen into Python/importlib.h and stored as _frozen_importlib in sys.modules. Py_Initialize() loads the frozen code along with sys and imp and then uses _frozen_importlib._install() to set builtins.__import__() w/ _frozen_importlib.__import__().
* Issue #14040: Remove rarely used file name suffixes for C extensions (under ↵Antoine Pitrou2012-02-201-6/+0
| | | | | | POSIX mainly). This will improve import performance a bit (especially under importlib).
* Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()Victor Stinner2011-02-221-1/+1
| | | | The first argument, fqname, was not used.
* Merge branches/pep-0384.Martin v. Löwis2010-12-031-0/+2
|
* PEP 3149: Try to load the extension with the SOABI before tryingMatthias Klose2010-09-081-1/+1
| | | | to load the one without the SOABI in the name.
* PEP 3149 is accepted.Barry Warsaw2010-09-031-6/+13
| | | | http://mail.python.org/pipermail/python-dev/2010-September/103408.html
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-76/+76
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-1/+1
|
* Fix a warning from gcc by adding a missed const qualifier.Hye-Shik Chang2006-01-041-1/+1
|
* - SF Bug #1350188, "setdlopenflags" leads to crash upon "import"Neal Norwitz2005-11-091-1/+4
| | | | | It was possible dlerror() returns a NULL pointer, use a default error message in this case.
* Print verbose messages to stderr. Fixes #1036752.Martin v. Löwis2004-10-031-1/+2
|
* A few more PyThreadState_Get to PyThreadState_GET conversionsNicholas Bastin2004-03-251-1/+1
|
* Patch #708495: Port more stuff to OpenVMS.Martin v. Löwis2003-05-031-0/+28
|
* OS/2 EMX port changes (Python part of patch #450267):Andrew MacIntyre2002-02-261-0/+11
| | | | | | | | | Python/ dynload_shlib.c // EMX port emulates dlopen() etc. for DL extensions import.c // changes to support 8.3 DLL name limit (VACPP+EMX) // and case sensitive import semantics importdl.h thread_os2.h
* Use PyOS_snprintf instead of sprintf.Jeremy Hylton2001-11-281-2/+3
|
* Move dlfcn.h block out of NetBSD block, assuming that NetBSD beforeMartin v. Löwis2001-10-181-3/+4
| | | | | 199712 didn't have dlfcn.h, or that it wouldn't conflict with the other stuff defined.
* Patch to bug #472202: Correctly recognize NetBSD before 199712.Martin v. Löwis2001-10-181-2/+5
|
* Patch #455231: Support ELF properly on OpenBSD.Martin v. Löwis2001-09-051-1/+1
|
* Patch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.Martin v. Löwis2001-07-181-13/+7
| | | | Add dlopenflags to PyInterpreterState, and use it in dlopen calls.
* Oops, one more part of the cygwin patch (SF patch #102409 by jlt63:Guido van Rossum2001-01-101-1/+1
| | | | | | | | Cygwin Python DLL and Shared Extension Patch). Add module.dll as a valid extension. jlt63 writes: Note that his change essentially backs out the fix for bug #115973. Should ".pyd" be retained instead for posterity?
* Patch 102114, Bug 11725. On OpenBSD (but apparently not on the otherGuido van Rossum2000-10-251-2/+7
| | | | BSDs) you need a leading underscore in the dlsym() lookup name.
* SF "bug" 115973: patches from Norman Vine so that shared libraries andTim Peters2000-10-051-0/+5
| | | | Tkinter work under Cygwin. Accepted on faith & reasonableness.
* REMOVED all CWI, CNRI and BeOpen copyright markings.Guido van Rossum2000-09-011-9/+0
| | | | This should match the situation in the 1.6b1 tree.
* Change copyright notice - 2nd try.Guido van Rossum2000-06-301-6/+0
|
* Change copyright notice.Guido van Rossum2000-06-301-22/+7
|
* Cleanup patches from Greg Stein:Guido van Rossum1999-12-221-1/+12
| | | | | | | | | | | | | | | | | | | * in import.c, #ifdef out references to dynamic loading based on HAVE_DYNAMIC_LOADING * clean out the platform-specific crud from importdl.c. [ maybe fold this function into import.c and drop the importdl.c file? Greg.] * change GetDynLoadFunc's "funcname" parameter to "shortname". change "name" to "fqname" for clarification. * each GetDynLoadFunc now creates its own funcname value. WARNING: as I mentioned previously, we may run into an issue with a missing "_" on some platforms. Testing will show this pretty quickly, however. * move pathname munging into dynload_shlib.c
* The old platform-specific contents of importdl.c, broken down into oneGuido van Rossum1999-12-201-0/+110
file per platform (really: per style of Dl API; e.g. all platforms using dlopen() are grouped together in dynload_shlib.c.). This is part of a set of patches by Greg Stein.