syscall: added support for linux/mips64{,le}

Syscall getdents64 is relatively new in linux/mips64, only since kernel
version 3.10. To support older kernel, syscall getdents is used for
mips64.

Change-Id: I892b05dff7d93e7ddb0d700abd6a5e6d4084ab4c
Reviewed-on: https://go-review.googlesource.com/14449
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Yao Zhang 2015-09-10 08:48:19 -04:00 committed by Minux Ma
parent 1dba497aca
commit 4f19cb7011
15 changed files with 343 additions and 12 deletions

View file

@ -6,7 +6,10 @@ package syscall
import "unsafe"
const _SYS_dup = SYS_DUP2
const (
_SYS_dup = SYS_DUP2
_SYS_getdents = SYS_GETDENTS64
)
func Getpagesize() int { return 4096 }