| ... | ... | @@ -2079,12 +2079,6 @@ pub fn sendmsg(fd: i32, msg: *const msghdr_const, flags: u32) usize { |
| 2079 | 2079 | } |
| 2080 | 2080 | } |
| 2081 | 2081 | |
| 2082 | | /// Warning: libc is defined to have incompatible integer types with the |
| 2083 | | /// corresponding kernel data structures for this syscall. |
| 2084 | | /// |
| 2085 | | /// Warning: on 64-bit systems, if any message length would exceed `maxInt(i32)`, |
| 2086 | | /// number of bytes sent cannot be determined, because the kernel uses `ssize_t` |
| 2087 | | /// for `sendmsg` return value but `int` for the corresponding values here. |
| 2088 | 2082 | pub fn sendmmsg(fd: i32, msgvec: [*]mmsghdr_const, vlen: u32, flags: u32) usize { |
| 2089 | 2083 | return syscall4(.sendmmsg, @as(usize, @bitCast(@as(isize, fd))), @intFromPtr(msgvec), vlen, flags); |
| 2090 | 2084 | } |