1
0
mirror of https://github.com/golang/go synced 2024-11-23 15:30:05 -07:00

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 <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2016-08-08 16:46:48 -07:00
parent 355d7fa8a8
commit e80376ca6b

View File

@ -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