comparison Python/sysmodule.c @ 55611:4d38e51e7cdc 3.1

Merged revisions 74062 via svnmerge from svn+ssh://svn.python.org/python/branches/py3k ................ r74062 | alexandre.vassalotti | 2009-07-17 13:43:26 +0200 (Fr, 17 Jul 2009) | 37 lines Merged revisions 73665,73693,73704-73705,73707,73712-73713,73824 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r73665 | alexandre.vassalotti | 2009-06-28 21:01:51 -0400 (Sun, 28 Jun 2009) | 2 lines Update docstrings for sys.getdlopenflags() and sys.setdlopenflags(). ........ r73693 | jesse.noller | 2009-06-29 14:20:34 -0400 (Mon, 29 Jun 2009) | 1 line Bug 5906: add a documentation note for unix daemons vs. multiprocessing daemons ........ r73704 | georg.brandl | 2009-06-30 12:15:43 -0400 (Tue, 30 Jun 2009) | 1 line #6376: fix copy-n-paste oversight. ........ r73705 | georg.brandl | 2009-06-30 12:17:28 -0400 (Tue, 30 Jun 2009) | 1 line #6374: add a bit of explanation about shell=True on Windows. ........ r73707 | georg.brandl | 2009-06-30 12:35:11 -0400 (Tue, 30 Jun 2009) | 1 line #6371: fix link targets. ........ r73712 | ezio.melotti | 2009-06-30 18:51:06 -0400 (Tue, 30 Jun 2009) | 1 line Fixed defaultTestCase -> defaultTestResult ........ r73713 | ezio.melotti | 2009-06-30 18:56:16 -0400 (Tue, 30 Jun 2009) | 1 line Fixed a backslash that was not supposed to be there ........ r73824 | ezio.melotti | 2009-07-03 21:18:08 -0400 (Fri, 03 Jul 2009) | 1 line #6398 typo: versio. -> version. ........ ................
author Georg Brandl <georg@python.org>
date Thu, 13 Aug 2009 11:51:54 +0000
parents db212869d814
children 4b413dfa27f9 fdd6484f1210
comparison
equal deleted inserted replaced
55610:f7243199d0b1 55611:4d38e51e7cdc
584 } 584 }
585 585
586 PyDoc_STRVAR(setdlopenflags_doc, 586 PyDoc_STRVAR(setdlopenflags_doc,
587 "setdlopenflags(n) -> None\n\ 587 "setdlopenflags(n) -> None\n\
588 \n\ 588 \n\
589 Set the flags that will be used for dlopen() calls. Among other\n\ 589 Set the flags used by the interpreter for dlopen calls, such as when the\n\
590 things, this will enable a lazy resolving of symbols when importing\n\ 590 interpreter loads extension modules. Among other things, this will enable\n\
591 a module, if called as sys.setdlopenflags(0)\n\ 591 a lazy resolving of symbols when importing a module, if called as\n\
592 To share symbols across extension modules, call as\n\ 592 sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
593 sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)" 593 sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\
594 ); 594 can be either found in the ctypes module, or in the DLFCN module. If DLFCN\n\
595 is not available, it can be generated from /usr/include/dlfcn.h using the\n\
596 h2py script.");
595 597
596 static PyObject * 598 static PyObject *
597 sys_getdlopenflags(PyObject *self, PyObject *args) 599 sys_getdlopenflags(PyObject *self, PyObject *args)
598 { 600 {
599 PyThreadState *tstate = PyThreadState_GET(); 601 PyThreadState *tstate = PyThreadState_GET();
603 } 605 }
604 606
605 PyDoc_STRVAR(getdlopenflags_doc, 607 PyDoc_STRVAR(getdlopenflags_doc,
606 "getdlopenflags() -> int\n\ 608 "getdlopenflags() -> int\n\
607 \n\ 609 \n\
608 Return the current value of the flags that are used for dlopen()\n\ 610 Return the current value of the flags that are used for dlopen calls.\n\
609 calls. The flag constants are defined in the dl module." 611 The flag constants are defined in the ctypes and DLFCN modules.");
610 ); 612
611 #endif 613 #endif /* HAVE_DLOPEN */
612 614
613 #ifdef USE_MALLOPT 615 #ifdef USE_MALLOPT
614 /* Link with -lmalloc (or -lmpc) on an SGI */ 616 /* Link with -lmalloc (or -lmpc) on an SGI */
615 #include <malloc.h> 617 #include <malloc.h>
616 618