| ... | @@ -186,6 +186,11 @@ pub const sockaddr_in6 = extern struct { | ... | @@ -186,6 +186,11 @@ pub const sockaddr_in6 = extern struct { |
| 186 | pub const in6_addr = [16]u8; | 186 | pub const in6_addr = [16]u8; |
| 187 | pub const in_addr = u32; | 187 | pub const in_addr = u32; |
| 188 | | 188 | |
| | 189 | pub const sockaddr_un = extern struct { |
| | 190 | family: sa_family_t = AF_UNIX, |
| | 191 | path: [108]u8, |
| | 192 | }; |
| | 193 | |
| 189 | pub const AF_UNSPEC = 0; | 194 | pub const AF_UNSPEC = 0; |
| 190 | pub const AF_UNIX = 1; | 195 | pub const AF_UNIX = 1; |
| 191 | pub const AF_INET = 2; | 196 | pub const AF_INET = 2; |