aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/syscall/syscall_linux.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2011-11-14 14:06:50 -0500
committerRuss Cox <rsc@golang.org>2011-11-14 14:06:50 -0500
commit0acd879c267061814810f70d0f13b4c8767268b8 (patch)
treed3af57359271318deccbd811eef3085ab9fa7161 /src/pkg/syscall/syscall_linux.go
parentdc6726b37f54b0ae3db471de7f1631e6b5cf80e5 (diff)
downloadgo-0acd879c267061814810f70d0f13b4c8767268b8.tar.xz
syscall: take over env implementation
The environment is needed by package time, which we want not to depend on os (so that os can use time.Time), so push down into syscall. Delete syscall.Sleep, now unnecessary. The package os environment API is preserved; it is only the implementation that is moving to syscall. Delete os.Envs, which was undocumented, uninitialized on Windows and Plan 9, and not maintained by Setenv and Clearenv. Code can call os.Environ instead. R=golang-dev, r CC=golang-dev https://golang.org/cl/5370091
Diffstat (limited to 'src/pkg/syscall/syscall_linux.go')
-rw-r--r--src/pkg/syscall/syscall_linux.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pkg/syscall/syscall_linux.go b/src/pkg/syscall/syscall_linux.go
index 52a7dc26bf..bae7f20e1c 100644
--- a/src/pkg/syscall/syscall_linux.go
+++ b/src/pkg/syscall/syscall_linux.go
@@ -184,12 +184,6 @@ func Wait4(pid int, wstatus *WaitStatus, options int, rusage *Rusage) (wpid int,
return
}
-func Sleep(nsec int64) (err error) {
- tv := NsecToTimeval(nsec)
- _, err = Select(0, nil, nil, nil, &tv)
- return err
-}
-
func Mkfifo(path string, mode uint32) (err error) {
return Mknod(path, mode|S_IFIFO, 0)
}