mirror of
https://github.com/restic/restic.git
synced 2025-08-14 18:17:28 +00:00
.github
changelog
cmd
doc
docker
internal
scripts
vendor
bazil.org
cloud.google.com
github.com
golang.org
x
crypto
net
oauth2
sync
sys
cpu
plan9
asm.s
asm_plan9_386.s
asm_plan9_amd64.s
asm_plan9_arm.s
const_plan9.go
dir_plan9.go
env_plan9.go
errors_plan9.go
mkall.sh
mkerrors.sh
mksyscall.pl
mksysnum_plan9.sh
pwd_go15_plan9.go
pwd_plan9.go
race.go
race0.go
str.go
syscall.go
syscall_plan9.go
syscall_test.go
zsyscall_plan9_386.go
zsyscall_plan9_amd64.go
zsyscall_plan9_arm.go
zsysnum_plan9.go
unix
windows
.gitattributes
.gitignore
AUTHORS
CONTRIBUTING.md
CONTRIBUTORS
LICENSE
PATENTS
README.md
codereview.cfg
text
google.golang.org
gopkg.in
.gitignore
.hound.yml
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
GOVERNANCE.md
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.rst
VERSION
appveyor.yml
build.go
run_integration_tests.go
24 lines
412 B
Go
24 lines
412 B
Go
![]() |
// Copyright 2015 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.
|
||
|
|
||
|
// +build !go1.5
|
||
|
|
||
|
package plan9
|
||
|
|
||
|
func fixwd() {
|
||
|
}
|
||
|
|
||
|
func Getwd() (wd string, err error) {
|
||
|
fd, err := open(".", O_RDONLY)
|
||
|
if err != nil {
|
||
|
return "", err
|
||
|
}
|
||
|
defer Close(fd)
|
||
|
return Fd2path(fd)
|
||
|
}
|
||
|
|
||
|
func Chdir(path string) error {
|
||
|
return chdir(path)
|
||
|
}
|