- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 39 for chdir (0.06 sec)
-
src/cmd/cgo/internal/testplugin/plugin_test.go
} os.Setenv("GOPATH", filepath.Join(GOPATH, "alt")) if err := os.Chdir(altRoot); err != nil { log.Panic(err) } else { prettyPrintf("cd %s\n", altRoot) } os.Setenv("PWD", altRoot) goCmd(nil, "build", "-buildmode=plugin", "-o", filepath.Join(modRoot, "plugin-mismatch.so"), "./plugin-mismatch") os.Setenv("GOPATH", GOPATH) if err := os.Chdir(modRoot); err != nil { log.Panic(err) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0) -
src/internal/poll/fd_wasip1.go
// duplicate file descriptors. func dupCloseOnExecOld(fd int) (int, string, error) { return -1, "dup", syscall.ENOSYS } // Fchdir wraps syscall.Fchdir. func (fd *FD) Fchdir() error { if err := fd.incref(); err != nil { return err } defer fd.decref() return syscall.Chdir(fd.Path) } // ReadDir wraps syscall.ReadDir. // We treat this like an ordinary system call rather than a call
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:14:02 UTC 2024 - 6.7K bytes - Viewed (0) -
src/os/exec/exec_test.go
path string err error sync.Once } func chdir(t *testing.T, dir string) { t.Helper() prev, err := os.Getwd() if err != nil { t.Fatal(err) } if err := os.Chdir(dir); err != nil { t.Fatal(err) } t.Logf("Chdir(%#q)", dir) t.Cleanup(func() { if err := os.Chdir(prev); err != nil { // Couldn't chdir back to the original working directory.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 20:13:53 UTC 2024 - 48.4K bytes - Viewed (0) -
src/syscall/syscall_linux_test.go
if err != nil { t.Fatalf("chtmpdir: %v", err) } d, err := os.MkdirTemp("", "test") if err != nil { t.Fatalf("chtmpdir: %v", err) } if err := os.Chdir(d); err != nil { t.Fatalf("chtmpdir: %v", err) } return func() { if err := os.Chdir(oldwd); err != nil { t.Fatalf("chtmpdir: %v", err) } os.RemoveAll(d) } } func touch(t *testing.T, name string) { f, err := os.Create(name)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23K bytes - Viewed (0) -
src/syscall/syscall_darwin.go
/* * Exposed directly */ //sys Access(path string, mode uint32) (err error) //sys Adjtime(delta *Timeval, olddelta *Timeval) (err error) //sys Chdir(path string) (err error) //sys Chflags(path string, flags int) (err error) //sys Chmod(path string, mode uint32) (err error) //sys Chown(path string, uid int, gid int) (err error) //sys Chroot(path string) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:50 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/script_test.go
gopath := filepath.Join(work, "gopath") must(s.Setenv("GOPATH", gopath)) gopathSrc := filepath.Join(gopath, "src") must(os.MkdirAll(gopathSrc, 0777)) must(s.Chdir(gopathSrc)) return telemetryDir } func scriptEnv(srv *vcstest.Server, srvCertFile string) ([]string, error) { httpURL, err := url.Parse(srv.HTTP.URL) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0) -
src/syscall/zsyscall_openbsd_arm.go
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT func Fchdir(fd int) (err error) { _, _, e1 := syscall(abi.FuncPCABI0(libc_fchdir_trampoline), uintptr(fd), 0, 0) if e1 != 0 { err = errnoErr(e1) } return } func libc_fchdir_trampoline() //go:cgo_import_dynamic libc_fchdir fchdir "libc.so" // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 04 07:51:20 UTC 2024 - 47.6K bytes - Viewed (0) -
src/syscall/syscall_aix.go
*/ //sys Acct(path string) (err error) //sys Chdir(path string) (err error) //sys Chmod(path string, mode uint32) (err error) //sys Chown(path string, uid int, gid int) (err error) //sys Chroot(path string) (err error) //sys Close(fd int) (err error) //sys Dup(fd int) (nfd int, err error) //sys Faccessat(dirfd int, path string, mode uint32, flags int) (err error) //sys Fchdir(fd int) (err error)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/syscall/exec_linux.go
} for _, c = range sys.AmbientCaps { _, _, err1 = RawSyscall6(SYS_PRCTL, PR_CAP_AMBIENT, uintptr(PR_CAP_AMBIENT_RAISE), c, 0, 0, 0) if err1 != 0 { goto childerror } } } // Chdir if dir != nil { _, _, err1 = RawSyscall(SYS_CHDIR, uintptr(unsafe.Pointer(dir)), 0, 0) if err1 != 0 { goto childerror } } // Parent death signal if sys.Pdeathsig != 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 07:45:37 UTC 2024 - 23K bytes - Viewed (0) -
src/syscall/zsyscall_aix_ppc64.go
//go:cgo_import_dynamic libc_Openat openat "libc.a/shr_64.o" //go:cgo_import_dynamic libc_ptrace64 ptrace64 "libc.a/shr_64.o" //go:cgo_import_dynamic libc_Acct acct "libc.a/shr_64.o" //go:cgo_import_dynamic libc_Chdir chdir "libc.a/shr_64.o" //go:cgo_import_dynamic libc_Chmod chmod "libc.a/shr_64.o" //go:cgo_import_dynamic libc_Chown chown "libc.a/shr_64.o" //go:cgo_import_dynamic libc_Chroot chroot "libc.a/shr_64.o"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 41.7K bytes - Viewed (0)