From e80376ca6b1f3c4cbc11639d998c0c83787f9247 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 8 Aug 2016 16:46:48 -0700 Subject: [PATCH] runtime: ignore closeonexec ret val on openbsd/arm Fixes #16641 Updates #11041 Change-Id: I087208a486f535d74135591b2c9a73168cf80e1a Reviewed-on: https://go-review.googlesource.com/27490 Run-TryBot: Josh Bleecher Snyder Reviewed-by: Brad Fitzpatrick --- src/runtime/sys_openbsd_arm.s | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/runtime/sys_openbsd_arm.s b/src/runtime/sys_openbsd_arm.s index 29e89710af2..952069bc1a7 100644 --- a/src/runtime/sys_openbsd_arm.s +++ b/src/runtime/sys_openbsd_arm.s @@ -353,15 +353,13 @@ TEXT runtime·kevent(SB),NOSPLIT,$8 MOVW R0, ret+24(FP) RET -// int32 runtime·closeonexec(int32 fd); +// func closeonexec(fd int32) TEXT runtime·closeonexec(SB),NOSPLIT,$0 MOVW fd+0(FP), R0 // arg 1 - fd MOVW $2, R1 // arg 2 - cmd (F_SETFD) MOVW $1, R2 // arg 3 - arg (FD_CLOEXEC) MOVW $92, R12 // sys_fcntl SWI $0 - RSB.CS $0, R0 - MOVW R0, ret+4(FP) RET TEXT ·publicationBarrier(SB),NOSPLIT,$-4-0