From b653c878b1ad8d1b4f8d7b04201d0cb0a4156ead Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 5 Apr 2019 11:42:37 -0700 Subject: runtime: change read and write to return negative errno value The internal read and write functions used to return -1 on error; change them to return a negative errno value instead. This will be used by later CLs in this series. For most targets this is a simplification, although for ones that call into libc it is a complication. Updates #27707 Change-Id: Id02bf9487f03e7e88e4f2b85e899e986738697ad Reviewed-on: https://go-review.googlesource.com/c/go/+/171823 Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot Reviewed-by: Michael Knyszek --- src/runtime/sys_linux_s390x.s | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/runtime/sys_linux_s390x.s') diff --git a/src/runtime/sys_linux_s390x.s b/src/runtime/sys_linux_s390x.s index 01f408e70b..df01271f7b 100644 --- a/src/runtime/sys_linux_s390x.s +++ b/src/runtime/sys_linux_s390x.s @@ -88,9 +88,6 @@ TEXT runtime·write1(SB),NOSPLIT|NOFRAME,$0-28 MOVW n+16(FP), R4 MOVW $SYS_write, R1 SYSCALL - MOVD $-4095, R3 - CMPUBLT R2, R3, 2(PC) - MOVW $-1, R2 MOVW R2, ret+24(FP) RET @@ -100,9 +97,6 @@ TEXT runtime·read(SB),NOSPLIT|NOFRAME,$0-28 MOVW n+16(FP), R4 MOVW $SYS_read, R1 SYSCALL - MOVD $-4095, R3 - CMPUBLT R2, R3, 2(PC) - MOVW $-1, R2 MOVW R2, ret+24(FP) RET -- cgit v1.3