aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/bits/linux.zig
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2020-03-09 04:20:37 +1100
committerAndrew Kelley <andrew@ziglang.org>2020-03-09 13:02:38 -0400
commit648f94c0275a85fece347ced013f89ee5eb5d800 (patch)
tree4bf90c5c62278243149ade54cceb757c5c8a2aee /lib/std/os/bits/linux.zig
parent6ab156ce7dd781875db4965361418d8cdf4b3771 (diff)
downloadzig-648f94c0275a85fece347ced013f89ee5eb5d800.tar.gz
zig-648f94c0275a85fece347ced013f89ee5eb5d800.zip
std: add some definitions for netlink sockets
Diffstat (limited to 'lib/std/os/bits/linux.zig')
-rw-r--r--lib/std/os/bits/linux.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/std/os/bits/linux.zig b/lib/std/os/bits/linux.zig
index c5a9a7d774..e20e96181a 100644
--- a/lib/std/os/bits/linux.zig
+++ b/lib/std/os/bits/linux.zig
@@ -18,6 +18,8 @@ pub usingnamespace switch (builtin.arch) {
else => struct {},
};
+pub usingnamespace @import("linux/netlink.zig");
+
const is_mips = builtin.arch.isMIPS();
pub const pid_t = i32;
@@ -30,6 +32,10 @@ pub const NAME_MAX = 255;
pub const PATH_MAX = 4096;
pub const IOV_MAX = 1024;
+/// Largest hardware address length
+/// e.g. a mac address is a type of hardware address
+pub const MAX_ADDR_LEN = 32;
+
pub const STDIN_FILENO = 0;
pub const STDOUT_FILENO = 1;
pub const STDERR_FILENO = 2;