Skip to content

Commit a4712b9

Browse files
tklausergopherbot
authored andcommitted
plan9: drop go version tags for unsupported versions
go.mod specifies go 1.24. Drop code for older, unsupported versions. Change-Id: I8a1ecd9e5634c1cf9619fbb89b2ecd0bda7eaf21 Reviewed-on: https://go-review.googlesource.com/c/sys/+/579515 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Tobias Klauser <[email protected]> Reviewed-by: Sean Liao <[email protected]> Reviewed-by: Cherry Mui <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
1 parent 0293703 commit a4712b9

File tree

2 files changed

+5
-30
lines changed

2 files changed

+5
-30
lines changed

plan9/pwd_go15_plan9.go

Lines changed: 0 additions & 21 deletions
This file was deleted.

plan9/pwd_plan9.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

5-
//go:build !go1.5
6-
75
package plan9
86

7+
import "syscall"
8+
99
func fixwd() {
10+
syscall.Fixwd()
1011
}
1112

1213
func Getwd() (wd string, err error) {
13-
fd, err := open(".", O_RDONLY)
14-
if err != nil {
15-
return "", err
16-
}
17-
defer Close(fd)
18-
return Fd2path(fd)
14+
return syscall.Getwd()
1915
}
2016

2117
func Chdir(path string) error {
22-
return chdir(path)
18+
return syscall.Chdir(path)
2319
}

0 commit comments

Comments
 (0)