authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-15 17:32:40+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-09-16 03:06:10+02:00
log00a75075d3a20cb09053bc7ea0aeb83b988dfa95
treeadd5adbca2b6ff5e8afed8a620a76e8ca1dd34ce
parent4edb8c9908f8e5b09194ca07a8ccdc724fd0f150
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.os.linux: fix syscall_pipe() return value for mips

closes https://codeberg.org/ziglang/zig/issues/36847

3 files changed, 3 insertions(+), 0 deletions(-)

lib/std/os/linux/mips.zig+1
...@@ -190,6 +190,7 @@ pub fn syscall_pipe(...@@ -190,6 +190,7 @@ pub fn syscall_pipe(
190 \\1:190 \\1:
191 \\ sw $v0, 0($a0)191 \\ sw $v0, 0($a0)
192 \\ sw $v1, 4($a0)192 \\ sw $v1, 4($a0)
193 \\ move $v0, $zero
193 \\2:194 \\2:
194 : [ret] "={$2}" (-> u32),195 : [ret] "={$2}" (-> u32),
195 : [number] "{$2}" (@backingInt(SYS.pipe)),196 : [number] "{$2}" (@backingInt(SYS.pipe)),
lib/std/os/linux/mips64.zig+1
...@@ -148,6 +148,7 @@ pub fn syscall_pipe(...@@ -148,6 +148,7 @@ pub fn syscall_pipe(
148 \\1:148 \\1:
149 \\ sw $v0, 0($a0)149 \\ sw $v0, 0($a0)
150 \\ sw $v1, 4($a0)150 \\ sw $v1, 4($a0)
151 \\ move $v0, $zero
151 \\2:152 \\2:
152 : [ret] "={$2}" (-> u64),153 : [ret] "={$2}" (-> u64),
153 : [number] "{$2}" (@backingInt(SYS.pipe)),154 : [number] "{$2}" (@backingInt(SYS.pipe)),
lib/std/os/linux/mipsn32.zig+1
...@@ -148,6 +148,7 @@ pub fn syscall_pipe(...@@ -148,6 +148,7 @@ pub fn syscall_pipe(
148 \\1:148 \\1:
149 \\ sw $v0, 0($a0)149 \\ sw $v0, 0($a0)
150 \\ sw $v1, 4($a0)150 \\ sw $v1, 4($a0)
151 \\ move $v0, $zero
151 \\2:152 \\2:
152 : [ret] "={$2}" (-> u32),153 : [ret] "={$2}" (-> u32),
153 : [number] "{$2}" (@backingInt(SYS.pipe)),154 : [number] "{$2}" (@backingInt(SYS.pipe)),