OSDN Git Service

Add sparc fmaf test.
[pf3gnuchains/gcc-fork.git] / libgo / go / time / sys_windows.go
1 // Copyright 2011 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 time
6
7 import (
8         "os"
9         "syscall"
10 )
11
12 func sysSleep(t int64) os.Error {
13         errno := syscall.Sleep(t)
14         if errno != 0 && errno != syscall.EINTR {
15                 return os.NewSyscallError("sleep", errno)
16         }
17         return nil
18 }
19
20 // for testing: whatever interrupts a sleep
21 func interrupt() {
22 }