[Python-checkins] r51897 - in python/trunk: Misc/NEWS Modules/resource.c
martin.v.loewis
python-checkins at python.org
Sat Sep 16 19:36:38 CEST 2006
Author: martin.v.loewis
Date: Sat Sep 16 19:36:37 2006
New Revision: 51897
Modified:
python/trunk/Misc/NEWS
python/trunk/Modules/resource.c
Log:
Patch #1557515: Add RLIMIT_SBSIZE.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Sep 16 19:36:37 2006
@@ -62,6 +62,8 @@
Extension Modules
-----------------
+- RLIMIT_SBSIZE was added to the resource module where available.
+
- Bug #1551427: fix a wrong NULL pointer check in the win32 version
of os.urandom().
Modified: python/trunk/Modules/resource.c
==============================================================================
--- python/trunk/Modules/resource.c (original)
+++ python/trunk/Modules/resource.c Sat Sep 16 19:36:37 2006
@@ -298,6 +298,10 @@
PyModule_AddIntConstant(m, "RLIMIT_MEMLOCK", RLIMIT_MEMLOCK);
#endif
+#ifdef RLIMIT_SBSIZE
+ PyModule_AddIntConstant(m, "RLIMIT_SBSIZE", RLIMIT_SBSIZE);
+#endif
+
#ifdef RUSAGE_SELF
PyModule_AddIntConstant(m, "RUSAGE_SELF", RUSAGE_SELF);
#endif
More information about the Python-checkins
mailing list