]> Cypherpunks repositories - gostls13.git/commit
runtime: use correct pipe call for mips/mips64 GNU/Linux
authorIan Lance Taylor <iant@golang.org>
Mon, 21 Oct 2019 09:04:14 +0000 (02:04 -0700)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 21 Oct 2019 11:41:11 +0000 (11:41 +0000)
commite01e9176870d74a564cb69a70303c1c5e55c965f
tree855b0688557b348ebc3190cc8ec231c63f0cb9b9
parentd960de0b6f61a486576dbd5a49151bc6125c7010
runtime: use correct pipe call for mips/mips64 GNU/Linux

On MIPS, pipe returns two values rather than taking a pointer.

On MIPS64, call pipe2 rather than pipe.

Also, use the correct system call number for fcntl on mips64.

Change-Id: Ie72acdefeb593f44cb98735fc40eac99cf73509e
Reviewed-on: https://go-review.googlesource.com/c/go/+/202417
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/runtime/sys_linux_mips64x.s
src/runtime/sys_linux_mipsx.s