aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall/syscall_solaris.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/syscall/syscall_solaris.go')
-rw-r--r--libgo/go/syscall/syscall_solaris.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/libgo/go/syscall/syscall_solaris.go b/libgo/go/syscall/syscall_solaris.go
new file mode 100644
index 00000000000..c1919171b7d
--- /dev/null
+++ b/libgo/go/syscall/syscall_solaris.go
@@ -0,0 +1,13 @@
+// Copyright 2012 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package syscall
+
+func (ts *Timestruc) Unix() (sec int64, nsec int64) {
+ return int64(ts.Sec), int64(ts.Nsec)
+}
+
+func (ts *Timestruc) Nano() int64 {
+ return int64(ts.Sec)*1e9 + int64(ts.Nsec)
+}