change the sysroot and c++ include path to fix the bugs the application cannot find...
[platform/upstream/gcc48.git] / libgo / go / syscall / syscall_solaris.go
1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package syscall
6
7 func (ts *Timestruc) Unix() (sec int64, nsec int64) {
8         return int64(ts.Sec), int64(ts.Nsec)
9 }
10
11 func (ts *Timestruc) Nano() int64 {
12         return int64(ts.Sec)*1e9 + int64(ts.Nsec)
13 }