Source file src/cmd/vendor/golang.org/x/sys/plan9/pwd_plan9.go
1 // Copyright 2015 The Go Authors. All rights reserved. 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 // +build !go1.5 7 8 package plan9 9 10 func fixwd() { 11 } 12 13 func Getwd() (wd string, err error) { 14 fd, err := open(".", O_RDONLY) 15 if err != nil { 16 return "", err 17 } 18 defer Close(fd) 19 return Fd2path(fd) 20 } 21 22 func Chdir(path string) error { 23 return chdir(path) 24 } 25