Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cpython
Commits
43fd99c8
Commit
43fd99c8
authored
18 years ago
by
Martin v. Löwis
Browse files
Options
Download
Email Patches
Plain Diff
Patch #1557515: Add RLIMIT_SBSIZE.
parent
13782a33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
Misc/NEWS
Misc/NEWS
+2
-0
Modules/resource.c
Modules/resource.c
+4
-0
No files found.
Misc/NEWS
View file @
43fd99c8
...
...
@@ -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().
...
...
This diff is collapsed.
Click to expand it.
Modules/resource.c
View file @
43fd99c8
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment