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

Delta Between Two Patch Sets: src/pkg/os/stat_solaris.go

Issue 36020043: code review 36020043: os, os/exec, os/user: add support for GOOS=solaris
Left Patch Set: diff -r 884801fb67af https://code.google.com/p/go Created 11 years, 3 months ago
Right Patch Set: diff -r 884801fb67af https://code.google.com/p/go Created 11 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/os/signal/signal_unix.go ('k') | src/pkg/os/sys_solaris.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package os 5 package os
6 6
7 import ( 7 import (
8 "syscall" 8 "syscall"
9 "time" 9 "time"
10 ) 10 )
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 func timespecToTime(ts syscall.Timespec) time.Time { 54 func timespecToTime(ts syscall.Timespec) time.Time {
55 return time.Unix(int64(ts.Sec), int64(ts.Nsec)) 55 return time.Unix(int64(ts.Sec), int64(ts.Nsec))
56 } 56 }
57 57
58 // For testing. 58 // For testing.
59 func atime(fi FileInfo) time.Time { 59 func atime(fi FileInfo) time.Time {
60 return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim) 60 return timespecToTime(fi.Sys().(*syscall.Stat_t).Atim)
61 } 61 }
LEFTRIGHT

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