feature. See also
. The project being documented here (as the example) is the Zig library itself.
mips64.syscall_pipe
pub fn syscall_pipe(
fd: *[2]std.os.linux.fd_t,
) u64
File
Code
pub fn syscall_pipe(
fd: *[2]std.os.linux.fd_t,
) u64 {
return asm volatile (
\\ syscall
\\ beq $a3, $zero, 1f
\\ blez $v0, 2f
\\ dsubu $v0, $zero, $v0
\\ b 2f
\\1:
\\ sw $v0, 0($a0)
\\ sw $v1, 4($a0)
\\2:
: [ret] "={$2}" (-> u64),
: [number] "{$2}" (@backingInt(SYS.pipe)),
[fd] "{$4}" (fd),
: .{ .r1 = true, .r3 = true, .r5 = true, .r6 = true, .r7 = true, .r8 = true, .r9 = true, .r10 = true, .r11 = true, .r12 = true, .r13 = true, .r14 = true, .r15 = true, .r24 = true, .r25 = true, .hi = true, .lo = true, .memory = true });
}