syscall: Stat_t with different fields' name between Darwin and Linux #32887
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Darwin
Unfortunate
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
YES!
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Access file
ctime
fromos.FileInfo
;https://play.golang.org/p/LD80qQy5qyC
What did you expect to see?
All
os.FileInfo.Sys()
should have the same fields' name across OS.What did you see instead?
Within Linux OS, it should call
Stat_t.Ctim.Sec
; But under Darwin OS, you haveStat_t.Ctimespec.Sec
in hand.The text was updated successfully, but these errors were encountered: