Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 84239:1da78c7d382b
#13226: update references from ctypes/DLFCN modules to os module
| author | Andrew Kuchling <amk@amk.ca> |
|---|---|
| date | Fri, 21 Jun 2013 10:58:41 -0400 |
| parents | c40f4c19d20b |
| children | 01597384531f |
comparison
equal
deleted
inserted
replaced
| 84238:27a5da85770c | 84239:1da78c7d382b |
|---|---|
| 772 \n\ | 772 \n\ |
| 773 Set the flags used by the interpreter for dlopen calls, such as when the\n\ | 773 Set the flags used by the interpreter for dlopen calls, such as when the\n\ |
| 774 interpreter loads extension modules. Among other things, this will enable\n\ | 774 interpreter loads extension modules. Among other things, this will enable\n\ |
| 775 a lazy resolving of symbols when importing a module, if called as\n\ | 775 a lazy resolving of symbols when importing a module, if called as\n\ |
| 776 sys.setdlopenflags(0). To share symbols across extension modules, call as\n\ | 776 sys.setdlopenflags(0). To share symbols across extension modules, call as\n\ |
| 777 sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\ | 777 sys.setdlopenflags(os.RTLD_GLOBAL). Symbolic names for the flag modules\n\ |
| 778 can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY)."); | 778 can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY)."); |
| 779 | 779 |
| 780 static PyObject * | 780 static PyObject * |
| 781 sys_getdlopenflags(PyObject *self, PyObject *args) | 781 sys_getdlopenflags(PyObject *self, PyObject *args) |
| 782 { | 782 { |
| 788 | 788 |
| 789 PyDoc_STRVAR(getdlopenflags_doc, | 789 PyDoc_STRVAR(getdlopenflags_doc, |
| 790 "getdlopenflags() -> int\n\ | 790 "getdlopenflags() -> int\n\ |
| 791 \n\ | 791 \n\ |
| 792 Return the current value of the flags that are used for dlopen calls.\n\ | 792 Return the current value of the flags that are used for dlopen calls.\n\ |
| 793 The flag constants are defined in the ctypes and DLFCN modules."); | 793 The flag constants are defined in the os module."); |
| 794 | 794 |
| 795 #endif /* HAVE_DLOPEN */ | 795 #endif /* HAVE_DLOPEN */ |
| 796 | 796 |
| 797 #ifdef USE_MALLOPT | 797 #ifdef USE_MALLOPT |
| 798 /* Link with -lmalloc (or -lmpc) on an SGI */ | 798 /* Link with -lmalloc (or -lmpc) on an SGI */ |
