From: Martin v. Löwis Date: Sat, 16 Sep 2006 17:36:37 +0000 (+0000) Subject: Patch #1557515: Add RLIMIT_SBSIZE. X-Git-Tag: v2.6a1~2657 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43fd99c8f83868285422e277c7b4d7265102d41a;p=python Patch #1557515: Add RLIMIT_SBSIZE. --- diff --git a/Misc/NEWS b/Misc/NEWS index 285e8a4461..07d11023eb 100644 --- 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(). diff --git a/Modules/resource.c b/Modules/resource.c index fe6f3b6a25..d38c660e77 100644 --- a/Modules/resource.c +++ b/Modules/resource.c @@ -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