mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #13226: Add RTLD_xxx constants to the os module. These constants can by
used with sys.setdlopenflags().
This commit is contained in:
parent
e0be423297
commit
8b905bd9d4
5 changed files with 54 additions and 5 deletions
|
|
@ -1393,6 +1393,19 @@ or `the MSDN <http://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Window
|
|||
the C library.
|
||||
|
||||
|
||||
.. data:: RTLD_LAZY
|
||||
RTLD_NOW
|
||||
RTLD_GLOBAL
|
||||
RTLD_LOCAL
|
||||
RTLD_NODELETE
|
||||
RTLD_NOLOAD
|
||||
RTLD_DEEPBIND
|
||||
|
||||
See the Unix manual page :manpage:`dlopen(3)`.
|
||||
|
||||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. _os-file-dir:
|
||||
|
||||
Files and Directories
|
||||
|
|
|
|||
|
|
@ -801,11 +801,11 @@ always available.
|
|||
the interpreter loads extension modules. Among other things, this will enable a
|
||||
lazy resolving of symbols when importing a module, if called as
|
||||
``sys.setdlopenflags(0)``. To share symbols across extension modules, call as
|
||||
``sys.setdlopenflags(ctypes.RTLD_GLOBAL)``. Symbolic names for the
|
||||
flag modules can be either found in the :mod:`ctypes` module, or in the :mod:`DLFCN`
|
||||
module. If :mod:`DLFCN` is not available, it can be generated from
|
||||
:file:`/usr/include/dlfcn.h` using the :program:`h2py` script. Availability:
|
||||
Unix.
|
||||
``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag modules
|
||||
can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
|
||||
:data:`os.RTLD_LAZY`).
|
||||
|
||||
Availability: Unix.
|
||||
|
||||
.. function:: setprofile(profilefunc)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue