aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-08-25 00:00:39 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-01 17:54:06 -0700
commit7f03cfe161a2f7b5abbd00ab1ea29ddd6190d435 (patch)
tree5e3a36e5d74e2d07706b817953e74f13a67c272d /src/main.zig
parentc09ba8796c64a0bd3a39d6545b852c1b2e91f473 (diff)
downloadzig-7f03cfe161a2f7b5abbd00ab1ea29ddd6190d435.tar.gz
zig-7f03cfe161a2f7b5abbd00ab1ea29ddd6190d435.zip
std.os: more reorganization efforts
* std lib tests are passing on x86_64-linux with and without -lc * stage2 is building from source on x86_64-linux * down to 38 remaining uses of `usingnamespace`
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 44b3a0515c..f76128db74 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -3836,7 +3836,7 @@ fn gimmeMoreOfThoseSweetSweetFileDescriptors() void {
// On Darwin, `NOFILE` is bounded by a hardcoded value `OPEN_MAX`.
// According to the man pages for setrlimit():
// setrlimit() now returns with errno set to EINVAL in places that historically succeeded.
- // It no longer accepts "rlim_cur = RLIM_INFINITY" for RLIM_NOFILE.
+ // It no longer accepts "rlim_cur = RLIM.INFINITY" for RLIM.NOFILE.
// Use "rlim_cur = min(OPEN_MAX, rlim_max)".
lim.max = std.math.min(std.os.darwin.OPEN_MAX, lim.max);
}
@@ -3846,7 +3846,7 @@ fn gimmeMoreOfThoseSweetSweetFileDescriptors() void {
var min: posix.rlim_t = lim.cur;
var max: posix.rlim_t = 1 << 20;
// But if there's a defined upper bound, don't search, just set it.
- if (lim.max != posix.RLIM_INFINITY) {
+ if (lim.max != posix.RLIM.INFINITY) {
min = lim.max;
max = lim.max;
}