Function sendmsg [src]
Prototype
pub fn sendmsg(fd: i32, msg: *const msghdr_const, flags: u32) usize
Parameters
fd: i32
msg: *const msghdr_const
flags: u32
Source
pub fn sendmsg(fd: i32, msg: *const msghdr_const, flags: u32) usize {
const fd_usize = @as(usize, @bitCast(@as(isize, fd)));
const msg_usize = @intFromPtr(msg);
if (native_arch == .x86) {
return socketcall(SC.sendmsg, &[3]usize{ fd_usize, msg_usize, flags });
} else {
return syscall3(.sendmsg, fd_usize, msg_usize, flags);
}
}