We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0293703 commit a4712b9Copy full SHA for a4712b9
plan9/pwd_go15_plan9.go
plan9/pwd_plan9.go
@@ -2,22 +2,18 @@
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
5
-//go:build !go1.5
6
-
7
package plan9
8
+import "syscall"
+
9
func fixwd() {
10
+ syscall.Fixwd()
11
}
12
13
func Getwd() (wd string, err error) {
- fd, err := open(".", O_RDONLY)
14
- if err != nil {
15
- return "", err
16
- }
17
- defer Close(fd)
18
- return Fd2path(fd)
+ return syscall.Getwd()
19
20
21
func Chdir(path string) error {
22
- return chdir(path)
+ return syscall.Chdir(path)
23
0 commit comments