Skip to content

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

Closed
@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.

Activity

changed the title [-]x/sys/unix: wrong Dirent is used in linux mips64x.[/-] [+]x/sys/unix: wrong Dirent is defined in linux mips64x.[/+] on Jul 20, 2016
bradfitz

bradfitz commented on Jul 20, 2016

@bradfitz
Contributor

Why was this closed?

bradfitz

bradfitz commented on Jul 20, 2016

@bradfitz
Contributor
locked and limited conversation to collaborators on Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @bradfitz@hirochachacha@gopherbot

        Issue actions

          x/sys/unix: wrong Dirent is defined in linux mips64x. · Issue #16435 · golang/go