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 7 package plan9 8 9 func fixwd() { 10 } 11 12 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) 19 } 20 21 func Chdir(path string) error { 22 return chdir(path) 23 } 24