- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 974 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/cmd/compile/internal/test/pgo_inl_test.go
} } // TestPGOIntendedInlining tests that specific functions are inlined when PGO // is applied to the exact source that was profiled. func TestPGOIntendedInlining(t *testing.T) { wd, err := os.Getwd() if err != nil { t.Fatalf("error getting wd: %v", err) } srcDir := filepath.Join(wd, "testdata/pgo/inline") // Copy the module to a scratch location so we can add a go.mod. dir := t.TempDir()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 11.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/os/file_open_wasip1.go
// os.(*File).Chdir is emulated by setting the working directory to the // absolute path that this file was opened at, which is why we have to // resolve and capture it here. if filePath[0] != '/' { wd, err := syscall.Getwd() if err != nil { return -1, poll.SysFile{}, err } absPath = joinPath(wd, filePath) } fd, err := syscall.Open(absPath, flag, perm) return fd, poll.SysFile{Path: absPath}, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 818 bytes - Viewed (0)