Commit 836cccc7 by Ian Lance Taylor

syscall: enable ParseDirent for AIX

    
    Reviewed-on: https://go-review.googlesource.com/64990

From-SVN: r253022
parent 5e525857
84f827669dc76326ed99ebcc982c482aa148d8d8 5deeab42b0e5fdf2721773ce7fdaf61716599d4d
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris
package syscall package syscall
......
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package syscall
import "unsafe"
func direntIno(buf []byte) (uint64, bool) {
return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
}
func direntReclen(buf []byte) (uint64, bool) {
return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
}
func direntNamlen(buf []byte) (uint64, bool) {
return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
}
...@@ -485,6 +485,7 @@ fi | sed -e 's/type _dirent64/type Dirent/' \ ...@@ -485,6 +485,7 @@ fi | sed -e 's/type _dirent64/type Dirent/' \
-e 's/d_name/Name/' \ -e 's/d_name/Name/' \
-e 's/]int8/]byte/' \ -e 's/]int8/]byte/' \
-e 's/d_ino/Ino/' \ -e 's/d_ino/Ino/' \
-e 's/d_namlen/Namlen/' \
-e 's/d_off/Off/' \ -e 's/d_off/Off/' \
-e 's/d_reclen/Reclen/' \ -e 's/d_reclen/Reclen/' \
-e 's/d_type/Type/' \ -e 's/d_type/Type/' \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment