Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › os › linux › recvfrom Public Function recvfrom Doc Source Public Function std.os.linux.recvfrom
pub fn recvfrom (
fd : fd_t ,
noalias buf : [*]u8 ,
len : usize ,
flags : u32 ,
noalias addr : ?*sockaddr ,
noalias alen : ?*socklen_t ,
) usize Params File os/linux.zig: 2574
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587 pub fn recvfrom (
fd : fd_t ,
noalias buf : [*]u8 ,
len : usize ,
flags : u32 ,
noalias addr : ?*sockaddr ,
noalias alen : ?*socklen_t ,
) usize {
if (native_arch == .x86 ) {
return socketcall (SC .recvfrom , &[6 ]usize { @as (u32 , @bitCast (fd )), @intFromPtr (buf ), len , flags , @intFromPtr (addr ), @intFromPtr (alen ) });
} else {
return syscall6 (.recvfrom , @as (u32 , @bitCast (fd )), @intFromPtr (buf ), len , flags , @intFromPtr (addr ), @intFromPtr (alen ));
}
}