]> granicus.if.org Git - python/commitdiff
Patch #1557515: Add RLIMIT_SBSIZE.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 16 Sep 2006 17:36:37 +0000 (17:36 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 16 Sep 2006 17:36:37 +0000 (17:36 +0000)
Misc/NEWS
Modules/resource.c

index 285e8a4461b683c2f691449bec38f2b4a8a22b84..07d11023eb59fd701ae0d877d853310d8e0d00e2 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -62,6 +62,8 @@ Library
 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().
 
index fe6f3b6a25fa5fcf7c9a73dec5c4a5891df6c396..d38c660e77059cc1f5fda41f7de5614851737db9 100644 (file)
@@ -298,6 +298,10 @@ initresource(void)
        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