Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for chdir (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. security/pkg/nodeagent/sds/sdsservice_test.go

    		RootCert:     fakeRootCert,
    		ResourceName: ca2.RootCertReqResourceName,
    	})
    
    	opts := &ca2.Options{}
    
    	// SDS uses a hardcoded UDS path relative to current dir, so switch to a new one for the test.
    	os.Chdir(t.TempDir())
    	if usefakePrivateKeyProviderConf {
    		server = NewServer(opts, st, fakePrivateKeyProviderConf)
    	} else {
    		server = NewServer(opts, st, nil)
    	}
    	t.Cleanup(func() {
    		server.Stop()
    	})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. 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)
  8. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

      return strncpy(dest, src, n);
    }
    
    // ChDir(), FReopen(), FDOpen(), Read(), Write(), Close(), and
    // StrError() aren't needed on Windows CE at this time and thus not
    // defined there.
    
    #if !GTEST_OS_WINDOWS_MOBILE
    inline int ChDir(const char* dir) { return chdir(dir); }
    #endif
    inline FILE* FOpen(const char* path, const char* mode) {
      return fopen(path, mode);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  9. src/syscall/exec_plan9.go

    				goto childerror
    			}
    
    			r1, _, _ = RawSyscall(SYS_CLOSE, uintptr(envfd), 0, 0)
    
    			if int32(r1) == -1 {
    				goto childerror
    			}
    		}
    	}
    
    	// Chdir
    	if dir != nil {
    		r1, _, _ = RawSyscall(SYS_CHDIR, uintptr(unsafe.Pointer(dir)), 0, 0)
    		if int32(r1) == -1 {
    			goto childerror
    		}
    	}
    
    	// Pass 1: look for fd[i] < i and move those up above len(fd)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.go

    //sys	CapEnter() (err error)
    //sys	capRightsGet(version int, fd int, rightsp *CapRights) (err error) = SYS___CAP_RIGHTS_GET
    //sys	capRightsLimit(fd int, rightsp *CapRights) (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 Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top