| ... | ... | @@ -189,6 +189,10 @@ pub fn preadv(fd: i32, iov: [*]const iovec, count: usize, offset: u64) usize { |
| 189 | 189 | return syscall4(SYS_preadv, @bitCast(usize, isize(fd)), @ptrToInt(iov), count, offset); |
| 190 | 190 | } |
| 191 | 191 | |
| 192 | pub fn preadv2(fd: i32, iov: [*]const iovec, count: usize, offset: u64, flags: kernel_rwf) usize { |
| 193 | return syscall5(SYS_preadv2, @bitCast(usize, isize(fd)), @ptrToInt(iov), count, offset, flags); |
| 194 | } |
| 195 | |
| 192 | 196 | pub fn readv(fd: i32, iov: [*]const iovec, count: usize) usize { |
| 193 | 197 | return syscall3(SYS_readv, @bitCast(usize, isize(fd)), @ptrToInt(iov), count); |
| 194 | 198 | } |
| ... | ... | @@ -201,6 +205,10 @@ pub fn pwritev(fd: i32, iov: [*]const iovec_const, count: usize, offset: u64) us |
| 201 | 205 | return syscall4(SYS_pwritev, @bitCast(usize, isize(fd)), @ptrToInt(iov), count, offset); |
| 202 | 206 | } |
| 203 | 207 | |
| 208 | pub fn pwritev2(fd: i32, iov: [*]const iovec_const, count: usize, offset: u64, flags: kernel_rwf) usize { |
| 209 | return syscall5(SYS_pwritev2, @bitCast(usize, isize(fd)), @ptrToInt(iov), count, offset, flags); |
| 210 | } |
| 211 | |
| 204 | 212 | // TODO https://github.com/ziglang/zig/issues/265 |
| 205 | 213 | pub fn rmdir(path: [*]const u8) usize { |
| 206 | 214 | if (@hasDecl(@This(), "SYS_rmdir")) { |