bsd: add missing os.IFNAMESIZE

- based on system API value IF_NAMESIZE
- unblocks `zig test lib/std/std.zig`
This commit is contained in:
Michael Dusan 2024-02-01 20:58:49 -05:00 committed by Andrew Kelley
parent 39459e78ad
commit 6724a524d4
3 changed files with 6 additions and 0 deletions

View File

@ -838,6 +838,8 @@ pub const EAI = enum(c_int) {
_,
};
pub const IFNAMESIZE = 16;
pub const AI = struct {
pub const PASSIVE = 0x00000001;
pub const CANONNAME = 0x00000002;

View File

@ -483,6 +483,8 @@ pub const sockaddr = extern struct {
};
};
pub const IFNAMESIZE = 16;
pub const AI = struct {
/// get address to use bind()
pub const PASSIVE = 0x00000001;

View File

@ -388,6 +388,8 @@ pub const sockaddr = extern struct {
};
};
pub const IFNAMESIZE = 16;
pub const AI = struct {
/// get address to use bind()
pub const PASSIVE = 1;