annotate libgo/go/internal/syscall/execenv/execenv_default.go @ 19:2b5abeee2509 default tip

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
1 // Copyright 2020 The Go Authors. All rights reserved.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
2 // Use of this source code is governed by a BSD-style
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
3 // license that can be found in the LICENSE file.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
4
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
5 // +build !windows
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
6
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
7 package execenv
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
8
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
9 import "syscall"
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
10
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
11 // Default will return the default environment
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
12 // variables based on the process attributes
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
13 // provided.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
14 //
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
15 // Defaults to syscall.Environ() on all platforms
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
16 // other than Windows.
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
17 func Default(sys *syscall.SysProcAttr) ([]string, error) {
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
18 return syscall.Environ(), nil
2b5abeee2509 update gcc11
anatofuz
parents:
diff changeset
19 }