Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for lockPath (0.28 sec)

  1. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/resources/ProjectLockRegistry.java

            return getOrRegisterResourceLock(lockPath, new ResourceLockProducer<Path, ProjectLock>() {
                @Override
                public ProjectLock create(Path projectPath, ResourceLockCoordinationService coordinationService, ResourceLockContainer owner) {
                    String displayName = parallelEnabled ? "state of project " + lockPath : "state of build " + lockPath;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    	}
    	if tv, ok := pass.TypesInfo.Types[x]; ok && tv.IsValue() {
    		return lockPath(pass.Pkg, tv.Type, nil)
    	}
    	return nil
    }
    
    // lockPath returns a typePath describing the location of a lock value
    // contained in typ. If there is no contained lock, it returns nil.
    //
    // The seen map is used to short-circuit infinite recursion due to type cycles.
    func lockPath(tpkg *types.Package, typ types.Type, seen map[types.Type]bool) typePath {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. pkg/volume/util/subpath/subpath_windows.go

    	if fileHandles != nil {
    		for _, handle := range fileHandles {
    			syscall.CloseHandle(syscall.Handle(handle))
    		}
    	}
    }
    
    // lockPath locks a directory or symlink, return handle, exec "syscall.CloseHandle(handle)" to unlock the path
    func lockPath(path string) (uintptr, error) {
    	if len(path) == 0 {
    		return uintptr(syscall.InvalidHandle), syscall.ERROR_FILE_NOT_FOUND
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 12:57:11 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  4. misc/go_android_exec/main.go

    	// Concurrent use of adb is flaky, so serialize adb commands.
    	// See https://github.com/golang/go/issues/23795 or
    	// https://issuetracker.google.com/issues/73230216.
    	lockPath := filepath.Join(os.TempDir(), "go_android_exec-adb-lock")
    	lock, err := os.OpenFile(lockPath, os.O_CREATE|os.O_RDWR, 0666)
    	if err != nil {
    		return 0, err
    	}
    	defer lock.Close()
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/cfg/lookpath.go

    	"cmd/go/internal/par"
    	"os/exec"
    )
    
    var lookPathCache par.ErrCache[string, string]
    
    // LookPath wraps exec.LookPath and caches the result
    // which can be called by multiple Goroutines at the same time.
    func LookPath(file string) (path string, err error) {
    	return lookPathCache.Do(file,
    		func() (string, error) {
    			return exec.LookPath(file)
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 11 20:12:18 UTC 2023
    - 534 bytes
    - Viewed (0)
  6. src/os/exec/dot_test.go

    					good := dir + "/execabs-test"
    					if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) {
    						t.Fatalf(`LookPath(%#q) = %#q, %v, want "%s...", nil`, good, found, err, good)
    					}
    					if runtime.GOOS == "windows" {
    						good = dir + `\execabs-test`
    						if found, err := LookPath(good); err != nil || !strings.HasPrefix(found, good) {
    							t.Fatalf(`LookPath(%#q) = %#q, %v, want "%s...", nil`, good, found, err, good)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  7. src/os/exec/lp_windows.go

    			}
    		}
    	}
    	if dir == "" {
    		return lookPath(path, exts)
    	}
    	if filepath.VolumeName(path) != "" {
    		return lookPath(path, exts)
    	}
    	if len(path) > 1 && os.IsPathSeparator(path[0]) {
    		return lookPath(path, exts)
    	}
    	dirandpath := filepath.Join(dir, path)
    	// We assume that LookPath will only add file extension.
    	lp, err := lookPath(dirandpath, exts)
    	if err != nil {
    		return "", err
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. src/os/exec/lp_unix_test.go

    	}
    	err = f.Close()
    	if err != nil {
    		t.Fatal("Close failed: ", err)
    	}
    
    	t.Setenv("PATH", "")
    
    	path, err := exec.LookPath("exec_me")
    	if err == nil {
    		t.Fatal("LookPath found exec_me in empty $PATH")
    	}
    	if path != "" {
    		t.Fatalf("LookPath path == %q when err != nil", path)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 18:19:21 UTC 2023
    - 762 bytes
    - Viewed (0)
  9. src/os/exec/lp_plan9.go

    		return nil
    	}
    	return fs.ErrPermission
    }
    
    // LookPath searches for an executable named file in the
    // directories named by the path environment variable.
    // If file begins with "/", "#", "./", or "../", it is tried
    // directly and the path is not consulted.
    // On success, the result is an absolute path.
    //
    // In older versions of Go, LookPath could return a path relative to the current directory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/os/exec/lp_test.go

    }
    
    func TestLookPathNotFound(t *testing.T) {
    	for _, name := range nonExistentPaths {
    		path, err := LookPath(name)
    		if err == nil {
    			t.Fatalf("LookPath found %q in $PATH", name)
    		}
    		if path != "" {
    			t.Fatalf("LookPath path == %q when err != nil", path)
    		}
    		perr, ok := err.(*Error)
    		if !ok {
    			t.Fatal("LookPath error is not an exec.Error")
    		}
    		if perr.Name != name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 737 bytes
    - Viewed (0)
Back to top