syscall package defines
// Note: on mips64, we're using the getdents syscall,
// so the Dirent struct is different.
type Dirent struct {
Ino uint64
Off int64
Reclen uint16
Name [256]int8
Type uint8
Pad_cgo_0 [5]byte
}
On the other hand, x/sys/unix package defines
type Dirent struct {
Ino uint64
Off int64
Reclen uint16
Type uint8
Name [256]int8
Pad_cgo_0 [5]byte
}
x/sys/unix should be fixed.