mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
1dba497aca
commit
4f19cb7011
15 changed files with 343 additions and 12 deletions
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue