aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/zsyscall_linux_ppc64.go
diff options
context:
space:
mode:
authorYao Zhang <lunaria21@gmail.com>2015-09-10 08:48:19 -0400
committerMinux Ma <minux@golang.org>2015-11-12 04:49:34 +0000
commit4f19cb7011ade4a647b6429ecc33f96ec4603e61 (patch)
tree035faf80431997041a3df11244e2b7d1d3c2f50f /src/syscall/zsyscall_linux_ppc64.go
parent1dba497aca22cb65df9b2bbad9d63c8d390e39bc (diff)
downloadgo-4f19cb7011ade4a647b6429ecc33f96ec4603e61.tar.xz
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>
Diffstat (limited to 'src/syscall/zsyscall_linux_ppc64.go')
-rw-r--r--src/syscall/zsyscall_linux_ppc64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/zsyscall_linux_ppc64.go b/src/syscall/zsyscall_linux_ppc64.go
index 4f61114d5f..352525faf0 100644
--- a/src/syscall/zsyscall_linux_ppc64.go
+++ b/src/syscall/zsyscall_linux_ppc64.go
@@ -505,7 +505,7 @@ func Getdents(fd int, buf []byte) (n int, err error) {
} else {
_p0 = unsafe.Pointer(&_zero)
}
- r0, _, e1 := Syscall(SYS_GETDENTS64, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
+ r0, _, e1 := Syscall(_SYS_getdents, uintptr(fd), uintptr(_p0), uintptr(len(buf)))
n = int(r0)
if e1 != 0 {
err = errnoErr(e1)