| ... | @@ -1410,6 +1410,30 @@ pub fn pidfd_send_signal(pidfd: fd_t, sig: i32, info: ?*siginfo_t, flags: u32) u | ... | @@ -1410,6 +1410,30 @@ pub fn pidfd_send_signal(pidfd: fd_t, sig: i32, info: ?*siginfo_t, flags: u32) u |
| 1410 | ); | 1410 | ); |
| 1411 | } | 1411 | } |
| 1412 | | 1412 | |
| | 1413 | pub fn process_vm_readv(pid: pid_t, local: [*]const iovec, local_count: usize, remote: [*]const iovec, remote_count: usize, flags: usize) usize { |
| | 1414 | return syscall6( |
| | 1415 | .process_vm_readv, |
| | 1416 | @bitCast(usize, @as(isize, pid)), |
| | 1417 | @ptrToInt(local), |
| | 1418 | local_count, |
| | 1419 | @ptrToInt(remote), |
| | 1420 | remote_count, |
| | 1421 | flags, |
| | 1422 | ); |
| | 1423 | } |
| | 1424 | |
| | 1425 | pub fn process_vm_writev(pid: pid_t, local: [*]const iovec, local_count: usize, remote: [*]const iovec, remote_count: usize, flags: usize) usize { |
| | 1426 | return syscall6( |
| | 1427 | .process_vm_writev, |
| | 1428 | @bitCast(usize, @as(isize, pid)), |
| | 1429 | @ptrToInt(local), |
| | 1430 | local_count, |
| | 1431 | @ptrToInt(remote), |
| | 1432 | remote_count, |
| | 1433 | flags, |
| | 1434 | ); |
| | 1435 | } |
| | 1436 | |
| 1413 | test { | 1437 | test { |
| 1414 | if (builtin.os.tag == .linux) { | 1438 | if (builtin.os.tag == .linux) { |
| 1415 | _ = @import("linux/test.zig"); | 1439 | _ = @import("linux/test.zig"); |