pub fn pipe(fd: *[2]fd_t) usize fd: *[2]fd_t1610
1611
1612
1613
1614
1615
1616
1617
1618pub fn pipe(fd: *[2]fd_t) usize {
if (native_arch.isMIPS() or native_arch.isSPARC()) {
return syscall_pipe(fd);
} else if (@hasField(SYS, "pipe")) {
return syscall1(.pipe, @intFromPtr(fd));
} else {
return syscall2(.pipe2, @intFromPtr(fd), 0);
}
}