aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os.zig
diff options
context:
space:
mode:
authorxackus <14938807+xackus@users.noreply.github.com>2020-11-01 12:19:35 +0100
committerAndrew Kelley <andrew@ziglang.org>2020-11-01 15:47:46 -0500
commit6418284680920a19fd34ec1a10d79113a5bec75d (patch)
tree9c12e2ada9ee871191b9a818c819ad34bb8a28d2 /lib/std/os.zig
parent36f1788762ef5584bd0ebf5cef85a99318230ac4 (diff)
downloadzig-6418284680920a19fd34ec1a10d79113a5bec75d.tar.gz
zig-6418284680920a19fd34ec1a10d79113a5bec75d.zip
std: add {set,get}rlimit bits and improve test
Diffstat (limited to 'lib/std/os.zig')
-rw-r--r--lib/std/os.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/std/os.zig b/lib/std/os.zig
index 5aa81ac54b..d593f816c9 100644
--- a/lib/std/os.zig
+++ b/lib/std/os.zig
@@ -5663,7 +5663,6 @@ pub fn prctl(option: i32, args: anytype) PrctlError!u31 {
pub const GetrlimitError = UnexpectedError;
pub fn getrlimit(resource: rlimit_resource) GetrlimitError!rlimit {
- // TODO implement for systems other than linux and enable test
var limits: rlimit = undefined;
const rc = system.getrlimit(resource, &limits);
switch (errno(rc)) {
@@ -5677,7 +5676,6 @@ pub fn getrlimit(resource: rlimit_resource) GetrlimitError!rlimit {
pub const SetrlimitError = error{PermissionDenied} || UnexpectedError;
pub fn setrlimit(resource: rlimit_resource, limits: rlimit) SetrlimitError!void {
- // TODO implement for systems other than linux and enable test
const rc = system.setrlimit(resource, &limits);
switch (errno(rc)) {
0 => return,