- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 608 for getwd (0.04 sec)
-
src/syscall/pwd_plan9.go
} } return false } // goroutine-specific getwd func getwd() (wd string, err error) { fd, err := open(".", O_RDONLY) if err != nil { return "", err } defer Close(fd) return Fd2path(fd) } func Getwd() (wd string, err error) { wdmu.Lock() defer wdmu.Unlock() if wdSet { return wdStr, nil } wd, err = getwd() if err != nil { return } wdSet = true wdStr = wd
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 2.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 373 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/pwd_plan9.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go: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)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 413 bytes - Viewed (0) -
src/os/executable_solaris.go
package os import ( "syscall" _ "unsafe" // for linkname ) //go:linkname executablePath var executablePath string // set by sysauxv in ../runtime/os3_solaris.go var initCwd, initCwdErr = Getwd() func executable() (string, error) { path := executablePath if len(path) == 0 { path, err := syscall.Getexecname() if err != nil { return path, err } } if len(path) > 0 && path[0] != '/' {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 757 bytes - Viewed (0) -
src/os/exec/exec_posix_test.go
"reflect" "runtime" "strconv" "strings" "syscall" "testing" "time" ) func init() { registerHelperCommand("pwd", cmdPwd) } func cmdPwd(...string) { pwd, err := os.Getwd() if err != nil { fmt.Fprintln(os.Stderr, err) os.Exit(1) } fmt.Println(pwd) } func TestCredentialNoSetGroups(t *testing.T) { if runtime.GOOS == "android" { maySkipHelperCommand("echo")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 13 20:21:32 UTC 2022 - 6.8K bytes - Viewed (0) -
src/time/zoneinfo_ios.go
// keep zoneinfo.zip for tethered iOS builds. // For self-hosted iOS builds, the zoneinfo.zip is in GOROOT. var roots []string if goroot != "" { roots = append(roots, goroot+"/lib/time") } wd, err := syscall.Getwd() if err == nil { roots = append(roots, wd) } for _, r := range roots { var st syscall.Stat_t fd, err := syscall.Open(r, syscall.O_RDONLY, 0) if err != nil { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 20:57:35 UTC 2022 - 1K bytes - Viewed (0) -
pkg/test/framework/tools/featuresgen/cmd/root.go
func createLabelsFromYaml() string { data, err := os.ReadFile(input) if err != nil { pwd, _ := os.Getwd() fmt.Println("Error running featuresgen on file: ", pwd, "/", input) panic(err) } m := make(map[any]any) err = yaml.Unmarshal(data, &m) if err != nil { pwd, _ := os.Getwd() fmt.Println("Error running featuresgen on file: ", pwd, "/", input) panic(err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 5.4K bytes - Viewed (0) -
src/os/executable_darwin.go
package os import ( "errors" _ "unsafe" // for linkname ) //go:linkname executablePath var executablePath string // set by ../runtime/os_darwin.go var initCwd, initCwdErr = Getwd() func executable() (string, error) { ep := executablePath if len(ep) == 0 { return ep, errors.New("cannot find executable path") } if ep[0] != '/' { if initCwdErr != nil { return ep, initCwdErr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 675 bytes - Viewed (0) -
src/cmd/compile/internal/test/pgo_devirtualize_test.go
} } // TestPGODevirtualize tests that specific functions are devirtualized when PGO // is applied to the exact source that was profiled. func TestPGODevirtualize(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatalf("error getting wd: %v", err) } srcDir := filepath.Join(wd, "testdata", "pgo", "devirtualize") // Copy the module to a scratch location so we can add a go.mod.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 15 21:30:35 UTC 2024 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/base/env.go
package base import ( "cmd/go/internal/cfg" "fmt" "os" "path/filepath" "runtime" ) // AppendPWD returns the result of appending PWD=dir to the environment base. // // The resulting environment makes os.Getwd more efficient for a subprocess // running in dir, and also improves the accuracy of paths relative to dir // if one or more elements of dir is a symlink. func AppendPWD(base []string, dir string) []string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 16:40:59 UTC 2022 - 1.3K bytes - Viewed (0)