mirror of
https://github.com/golang/sys.git
synced 2026-02-08 11:46:04 +03:00
Make Plan 9 implementation similar to Unix. Fixes golang/go#10803. Change-Id: Ib2f069a68370792daf926ec2a393f9cf16c2816b Reviewed-on: https://go-review.googlesource.com/10104 Reviewed-by: Rob Pike <r@golang.org>
28 lines
489 B
Go
28 lines
489 B
Go
// Copyright 2011 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.
|
|
|
|
// Plan 9 environment variables.
|
|
|
|
package plan9
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func Getenv(key string) (value string, found bool) {
|
|
return syscall.Getenv(key)
|
|
}
|
|
|
|
func Setenv(key, value string) error {
|
|
return syscall.Setenv(key, value)
|
|
}
|
|
|
|
func Clearenv() {
|
|
syscall.Clearenv()
|
|
}
|
|
|
|
func Environ() []string {
|
|
return syscall.Environ()
|
|
}
|