From c47cb47a3064eaebd36bc07aeb9a6e4b22681103 Mon Sep 17 00:00:00 2001 From: Hiroshi Ioka Date: Tue, 1 Mar 2016 19:37:41 +0900 Subject: [PATCH] x/sys/unix: remove unused constants Change-Id: Ib80ad194eda478c1e6653a3fe34a20ecf785c6ca Reviewed-on: https://go-review.googlesource.com/20005 Run-TryBot: Russ Cox Reviewed-by: Russ Cox --- unix/syscall_linux_arm64.go | 2 -- unix/syscall_linux_mips64x.go | 7 ------- 2 files changed, 9 deletions(-) diff --git a/unix/syscall_linux_arm64.go b/unix/syscall_linux_arm64.go index 4b6ff2a8..4a136396 100644 --- a/unix/syscall_linux_arm64.go +++ b/unix/syscall_linux_arm64.go @@ -6,8 +6,6 @@ package unix -const _SYS_dup = SYS_DUP3 - //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) = SYS_EPOLL_PWAIT //sys Fchown(fd int, uid int, gid int) (err error) //sys Fstat(fd int, stat *Stat_t) (err error) diff --git a/unix/syscall_linux_mips64x.go b/unix/syscall_linux_mips64x.go index 440f54ee..8119fde3 100644 --- a/unix/syscall_linux_mips64x.go +++ b/unix/syscall_linux_mips64x.go @@ -7,13 +7,6 @@ package unix -// Linux introduced getdents64 syscall for N64 ABI only in 3.10 -// (May 21 2013, rev dec33abaafc89bcbd78f85fad0513170415a26d5), -// to support older kernels, we have to use getdents for mips64. -// Also note that struct dirent is different for these two. -// Lookup linux_dirent{,64} in kernel source code for details. -const _SYS_getdents = SYS_GETDENTS - //sys EpollWait(epfd int, events []EpollEvent, msec int) (n int, err error) //sys Fchown(fd int, uid int, gid int) (err error) //sys Fstatfs(fd int, buf *Statfs_t) (err error)