mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 06:45:24 +00:00
std.c: Support optional addr and host arguments in getnameinfo
The POSIX spec allows passing null here https://pubs.opengroup.org/onlinepubs/9799919799/functions/getnameinfo.html
This commit is contained in:
parent
933ba935c5
commit
18ffd48b60
@ -9770,9 +9770,9 @@ pub extern "c" fn freeaddrinfo(res: *addrinfo) void;
|
||||
pub extern "c" fn getnameinfo(
|
||||
noalias addr: *const sockaddr,
|
||||
addrlen: socklen_t,
|
||||
noalias host: [*]u8,
|
||||
noalias host: ?[*]u8,
|
||||
hostlen: socklen_t,
|
||||
noalias serv: [*]u8,
|
||||
noalias serv: ?[*]u8,
|
||||
servlen: socklen_t,
|
||||
flags: u32,
|
||||
) EAI;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user