| ... | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | 2 | const string = []const u8; |
| 3 | 3 | const List = std.ArrayList(string); |
| 4 | 4 | const extras = @import("extras"); |
| 5 | | const libc = @import("sys-libc"); |
| 5 | const linux = @import("sys-linux"); |
| 6 | 6 | |
| 7 | 7 | var singles: std.StringArrayHashMap(string) = undefined; |
| 8 | 8 | var multis: std.StringArrayHashMap(List) = undefined; |
| ... | ... | @@ -68,7 +68,7 @@ pub fn parse(k: FlagDashKind) !std.process.ArgIterator { |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | std.log.err("Unrecognized argument: {s}{s}", .{ dash, name }); |
| 71 | | libc.exit(1); |
| 71 | linux.exit(1); |
| 72 | 72 | } |
| 73 | 73 | return argiter; |
| 74 | 74 | } |
| ... | ... | @@ -79,7 +79,7 @@ pub fn parseEnv() !void { |
| 79 | 79 | for (singles.keys(), singles.values()) |k, *v| { |
| 80 | 80 | const u = try fixNameForEnv(alloc, k); |
| 81 | 81 | defer alloc.free(u); |
| 82 | | if (libc.getenv(u)) |value| { |
| 82 | if (linux.getenv(u)) |value| { |
| 83 | 83 | v.* = value; |
| 84 | 84 | } |
| 85 | 85 | } |
| ... | ... | @@ -90,7 +90,7 @@ pub fn parseEnv() !void { |
| 90 | 90 | defer alloc.free(u); |
| 91 | 91 | const w = try std.fmt.allocPrintZ(alloc, "{s}_{d}", .{ u, n }); |
| 92 | 92 | defer alloc.free(w); |
| 93 | | if (libc.getenv(w)) |value| { |
| 93 | if (linux.getenv(w)) |value| { |
| 94 | 94 | try v.append(value); |
| 95 | 95 | continue; |
| 96 | 96 | } |