Skip to content

x/sys/unix: wrong Dirent is defined in linux mips64x. #16435

@hirochachacha

Description

@hirochachacha

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions