aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sys_linux_amd64.s
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2018-02-16 11:26:14 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2018-02-17 18:35:41 +0000
commit1b1c8b34d129eefcdbad234914df999581e62b2f (patch)
tree45c2c52d9abf69e571a14746af046805708599dc /src/runtime/sys_linux_amd64.s
parent9402a2bff75907668f8488ea9d32c56fdf101f04 (diff)
downloadgo-1b1c8b34d129eefcdbad234914df999581e62b2f.tar.xz
runtime: remove unused getrlimit function
Follow CL 93655 which removed the (commented-out) usage of this function. Also remove unused constant _RLIMIT_AS and type rlimit. Change-Id: Ifb6e6b2104f4c2555269f8ced72bfcae24f5d5e9 Reviewed-on: https://go-review.googlesource.com/94775 Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/sys_linux_amd64.s')
-rw-r--r--src/runtime/sys_linux_amd64.s9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/runtime/sys_linux_amd64.s b/src/runtime/sys_linux_amd64.s
index fdbb958bb2..c49bd8841d 100644
--- a/src/runtime/sys_linux_amd64.s
+++ b/src/runtime/sys_linux_amd64.s
@@ -33,7 +33,6 @@
#define SYS_exit 60
#define SYS_kill 62
#define SYS_fcntl 72
-#define SYS_getrlimit 97
#define SYS_sigaltstack 131
#define SYS_arch_prctl 158
#define SYS_gettid 186
@@ -114,14 +113,6 @@ TEXT runtime·read(SB),NOSPLIT,$0-28
MOVL AX, ret+24(FP)
RET
-TEXT runtime·getrlimit(SB),NOSPLIT,$0-20
- MOVL kind+0(FP), DI
- MOVQ limit+8(FP), SI
- MOVL $SYS_getrlimit, AX
- SYSCALL
- MOVL AX, ret+16(FP)
- RET
-
TEXT runtime·usleep(SB),NOSPLIT,$16
MOVL $0, DX
MOVL usec+0(FP), AX