summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2001-07-18 16:17:16 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2001-07-18 16:17:16 (GMT)
commitf0473d511b7f883bfff3048f55e3a6adc7a43cb9 (patch)
tree8239a8d19fe2851555ff96b250cad6e24760717d /Doc/lib
parent984158d25bd76fa33d4245e98f53c876f428d5f4 (diff)
downloadcpython-f0473d511b7f883bfff3048f55e3a6adc7a43cb9.zip
cpython-f0473d511b7f883bfff3048f55e3a6adc7a43cb9.tar.gz
cpython-f0473d511b7f883bfff3048f55e3a6adc7a43cb9.tar.bz2
Patch #412229: Add functions sys.getdlopenflags and sys.setdlopenflags.
Add dlopenflags to PyInterpreterState, and use it in dlopen calls.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libsys.tex21
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex
index be5a599..4818cfd 100644
--- a/Doc/lib/libsys.tex
+++ b/Doc/lib/libsys.tex
@@ -180,6 +180,13 @@ way to exit a program when an error occurs.
\versionadded{2.0}
\end{funcdesc}
+\begin{funcdesc}{getdlopenflags}{}
+ Return the current value of the flags that are used for \code{dlopen}
+ calls. The flag constants are defined in the \refmodule{dl} and
+ \module{DLFCN} modules.
+ \versionadded{2.2}
+\end{funcdesc}
+
\begin{funcdesc}{getrefcount}{object}
Return the reference count of the \var{object}. The count returned is
generally one higher than you might expect, because it includes the
@@ -333,6 +340,20 @@ maximizing responsiveness as well as overhead.
\versionadded{2.0}
\end{funcdesc}
+\begin{funcdesc}{sertdlopenflags}{n}
+ Set the flags that will be used for \code{dlopen()} calls, i.e. when
+ the interpreter loads extension modules. Among other things, this
+ will enable a lazy resolving of symbols when imporing a module, if
+ called as \code{sys.setdlopenflags(0)}. To share symols across
+ extension modules, call as
+ \code{sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)}. The symbolic
+ names for the flag modules can be either found in the \refmodule{dl}
+ module, or in the \module{DLFCN} module. If \module{DLFCN} is not
+ available, it can be generated from \code{/usr/include/dlfcn.h} using
+ the \code{h2py} script.
+ \versionadded{2.2}
+\end{funcdesc}
+
\begin{funcdesc}{setprofile}{profilefunc}
Set the system's profile function, which allows you to implement a
Python source code profiler in Python. See the chapter on the