From a6084767b3c1f3a64e9066b4ebdc1c243d9f6713 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Sun, 5 Mar 2023 08:00:48 -0800 Subject: [PATCH] syscall: remove misleading comment about Stat_t fields --- src/syscall/syscall_libc_darwin.go | 1 - src/syscall/syscall_libc_wasi.go | 1 - 2 files changed, 2 deletions(-) diff --git a/src/syscall/syscall_libc_darwin.go b/src/syscall/syscall_libc_darwin.go index 79c5f2ba..a8c98f21 100644 --- a/src/syscall/syscall_libc_darwin.go +++ b/src/syscall/syscall_libc_darwin.go @@ -163,7 +163,6 @@ type Dirent struct { Pad_cgo_0 [3]byte } -// Go chose Linux's field names for Stat_t, see https://github.com/golang/go/issues/31735 type Stat_t struct { Dev int32 Mode uint16 diff --git a/src/syscall/syscall_libc_wasi.go b/src/syscall/syscall_libc_wasi.go index 00635ca2..29043b4a 100644 --- a/src/syscall/syscall_libc_wasi.go +++ b/src/syscall/syscall_libc_wasi.go @@ -218,7 +218,6 @@ func (ts *Timespec) Unix() (sec int64, nsec int64) { // https://github.com/WebAssembly/wasi-libc/blob/main/libc-bottom-half/headers/public/__struct_stat.h // https://github.com/WebAssembly/wasi-libc/blob/main/libc-bottom-half/headers/public/__typedef_ino_t.h // etc. -// Go chose Linux's field names for Stat_t, see https://github.com/golang/go/issues/31735 type Stat_t struct { Dev uint64 Ino uint64