local-etc-hosts-updater/src/util.zig

16 lines
286 B
Zig
Raw Normal View History

2024-05-10 13:13:59 +05:00
const std = @import("std");
2024-05-10 12:49:51 +05:00
pub const IPs = struct {
v4: [:0]const u8,
v6: [:0]const u8,
};
2024-05-10 13:13:59 +05:00
pub fn check_perms() !void {
var f = try std.fs.openFileAbsolute("/etc/hosts", .{ .mode = .write_only });
f.close();
}
2024-05-10 12:49:51 +05:00
pub fn get_input() ![:0]const u8 {
return "stub";
}