Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1021)

Unified Diff: src/pkg/os/stat_solaris.go

Issue 36020043: code review 36020043: os, os/exec, os/user: add support for GOOS=solaris
Patch Set: diff -r 884801fb67af https://code.google.com/p/go Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/os/signal/signal_unix.go ('k') | src/pkg/os/sys_solaris.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/os/stat_solaris.go
===================================================================
copy from src/pkg/os/stat_freebsd.go
copy to src/pkg/os/stat_solaris.go
--- a/src/pkg/os/stat_freebsd.go
+++ b/src/pkg/os/stat_solaris.go
@@ -19,7 +19,7 @@
fs := &fileStat{
name: basename(name),
size: int64(st.Size),
- modTime: timespecToTime(st.Mtimespec),
+ modTime: timespecToTime(st.Mtim),
sys: st,
}
fs.mode = FileMode(st.Mode & 0777)
@@ -57,5 +57,5 @@
// For testing.
func atime(fi FileInfo) time.Time {
- return timespecToTime(fi.Sys().(*syscall.Stat_t).Atimespec)
+ return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
}
« no previous file with comments | « src/pkg/os/signal/signal_unix.go ('k') | src/pkg/os/sys_solaris.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b