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

@ -4,7 +4,10 @@
package syscall
const _SYS_dup = SYS_DUP3
const (
_SYS_dup = SYS_DUP3
_SYS_getdents = SYS_GETDENTS64
)
//sys Fchown(fd int, uid int, gid int) (err error)
//sys Fstat(fd int, stat *Stat_t) (err error)