mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
#13226: update references from ctypes/DLFCN modules to os module
This commit is contained in:
parent
3468d25a80
commit
c61b913078
2 changed files with 7 additions and 6 deletions
|
@ -411,9 +411,10 @@ always available.
|
||||||
|
|
||||||
.. function:: getdlopenflags()
|
.. function:: getdlopenflags()
|
||||||
|
|
||||||
Return the current value of the flags that are used for :c:func:`dlopen` calls.
|
Return the current value of the flags that are used for
|
||||||
The flag constants are defined in the :mod:`ctypes` and :mod:`DLFCN` modules.
|
:c:func:`dlopen` calls. Symbolic names for the flag values can be
|
||||||
Availability: Unix.
|
found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
|
||||||
|
:data:`os.RTLD_LAZY`). Availability: Unix.
|
||||||
|
|
||||||
|
|
||||||
.. function:: getfilesystemencoding()
|
.. function:: getfilesystemencoding()
|
||||||
|
@ -906,7 +907,7 @@ always available.
|
||||||
the interpreter loads extension modules. Among other things, this will enable a
|
the interpreter loads extension modules. Among other things, this will enable a
|
||||||
lazy resolving of symbols when importing a module, if called as
|
lazy resolving of symbols when importing a module, if called as
|
||||||
``sys.setdlopenflags(0)``. To share symbols across extension modules, call as
|
``sys.setdlopenflags(0)``. To share symbols across extension modules, call as
|
||||||
``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag modules
|
``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag values
|
||||||
can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
|
can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
|
||||||
:data:`os.RTLD_LAZY`).
|
:data:`os.RTLD_LAZY`).
|
||||||
|
|
||||||
|
|
|
@ -774,7 +774,7 @@ Set the flags used by the interpreter for dlopen calls, such as when the\n\
|
||||||
interpreter loads extension modules. Among other things, this will enable\n\
|
interpreter loads extension modules. Among other things, this will enable\n\
|
||||||
a lazy resolving of symbols when importing a module, if called as\n\
|
a lazy resolving of symbols when importing a module, if called as\n\
|
||||||
sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
|
sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
|
||||||
sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\
|
sys.setdlopenflags(os.RTLD_GLOBAL). Symbolic names for the flag modules\n\
|
||||||
can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY).");
|
can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY).");
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
@ -790,7 +790,7 @@ PyDoc_STRVAR(getdlopenflags_doc,
|
||||||
"getdlopenflags() -> int\n\
|
"getdlopenflags() -> int\n\
|
||||||
\n\
|
\n\
|
||||||
Return the current value of the flags that are used for dlopen calls.\n\
|
Return the current value of the flags that are used for dlopen calls.\n\
|
||||||
The flag constants are defined in the ctypes and DLFCN modules.");
|
The flag constants are defined in the os module.");
|
||||||
|
|
||||||
#endif /* HAVE_DLOPEN */
|
#endif /* HAVE_DLOPEN */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue