OSDN Git Service

libgo: Update to weekly.2011-11-02.
[pf3gnuchains/gcc-fork.git] / libgo / go / time / sys_plan9.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) error {
13         err := syscall.Sleep(t)
14         if err != nil {
15                 return os.NewSyscallError("sleep", err)
16         }
17         return nil
18 }
19
20 // for testing: whatever interrupts a sleep
21 func interrupt() {
22         // cannot predict pid, don't want to kill group
23 }