| author | |
| committer | |
| log | 6724a524d44fdf112830ca1f549f4cfc8e47ffb9 |
| tree | 35eaf40f72ea0b015348486262ad5fabd364f6aa |
| parent | 39459e78ad0d55ada373f9368d173040dd68d837 |
- based on system API value IF_NAMESIZE
- unblocks `zig test lib/std/std.zig`3 files changed, 6 insertions(+), 0 deletions(-)
lib/std/c/dragonfly.zig+2| ... | @@ -838,6 +838,8 @@ pub const EAI = enum(c_int) { | ... | @@ -838,6 +838,8 @@ pub const EAI = enum(c_int) { |
| 838 | _, | 838 | _, |
| 839 | }; | 839 | }; |
| 840 | 840 | ||
| 841 | pub const IFNAMESIZE = 16; | ||
| 842 | |||
| 841 | pub const AI = struct { | 843 | pub const AI = struct { |
| 842 | pub const PASSIVE = 0x00000001; | 844 | pub const PASSIVE = 0x00000001; |
| 843 | pub const CANONNAME = 0x00000002; | 845 | pub const CANONNAME = 0x00000002; |
lib/std/c/netbsd.zig+2| ... | @@ -483,6 +483,8 @@ pub const sockaddr = extern struct { | ... | @@ -483,6 +483,8 @@ pub const sockaddr = extern struct { |
| 483 | }; | 483 | }; |
| 484 | }; | 484 | }; |
| 485 | 485 | ||
| 486 | pub const IFNAMESIZE = 16; | ||
| 487 | |||
| 486 | pub const AI = struct { | 488 | pub const AI = struct { |
| 487 | /// get address to use bind() | 489 | /// get address to use bind() |
| 488 | pub const PASSIVE = 0x00000001; | 490 | pub const PASSIVE = 0x00000001; |
lib/std/c/openbsd.zig+2| ... | @@ -388,6 +388,8 @@ pub const sockaddr = extern struct { | ... | @@ -388,6 +388,8 @@ pub const sockaddr = extern struct { |
| 388 | }; | 388 | }; |
| 389 | }; | 389 | }; |
| 390 | 390 | ||
| 391 | pub const IFNAMESIZE = 16; | ||
| 392 | |||
| 391 | pub const AI = struct { | 393 | pub const AI = struct { |
| 392 | /// get address to use bind() | 394 | /// get address to use bind() |
| 393 | pub const PASSIVE = 1; | 395 | pub const PASSIVE = 1; |