mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
fix build. i would love to know why my other client
didn't see this as a diff. TBR=r OCL=29827 CL=29831
This commit is contained in:
parent
e02d3e8ed1
commit
024c83f2f8
1 changed files with 0 additions and 11 deletions
|
|
@ -161,17 +161,6 @@ func Seek(fd int, offset int64, whence int) (newoffset int64, errno int) {
|
||||||
return int64(n), e;
|
return int64(n), e;
|
||||||
}
|
}
|
||||||
|
|
||||||
//sys gettimeofday(tp *Timeval) (sec int64, usec int32, errno int)
|
|
||||||
func Gettimeofday(tv *Timeval) (errno int) {
|
|
||||||
// The tv passed to gettimeofday must be non-nil
|
|
||||||
// but is otherwise unused. The answers come back
|
|
||||||
// in the two registers.
|
|
||||||
sec, usec, err := gettimeofday(tv);
|
|
||||||
tv.Sec = sec;
|
|
||||||
tv.Usec = usec;
|
|
||||||
return err;
|
|
||||||
}
|
|
||||||
|
|
||||||
func Sleep(ns int64) (errno int) {
|
func Sleep(ns int64) (errno int) {
|
||||||
tv := NsecToTimeval(ns);
|
tv := NsecToTimeval(ns);
|
||||||
return Select(0, nil, nil, nil, &tv);
|
return Select(0, nil, nil, nil, &tv);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue