Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for flickr (0.24 sec)

  1. misc/go_android_exec/main.go

    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This wrapper uses syscall.Flock to prevent concurrent adb commands,
    // so for now it only builds on platforms that support that system call.
    // TODO(#33974): use a more portable library for file locking.
    
    //go:build darwin || dragonfly || freebsd || illumos || linux || netbsd || openbsd
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  2. misc/ios/go_ios_exec.go

    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    	if err != nil {
    		return 1, err
    	}
    	if err := syscall.Flock(int(lock.Fd()), syscall.LOCK_EX); err != nil {
    		return 1, err
    	}
    
    	if goarch := os.Getenv("GOARCH"); goarch == "arm64" {
    		err = runOnDevice(appdir)
    	} else {
    		err = runOnSimulator(appdir)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  3. internal/lock/lock_solaris.go

    	case syscall.O_RDWR | syscall.O_CREAT:
    		lockType = syscall.F_WRLCK
    	default:
    		return nil, &os.PathError{
    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	lock := syscall.Flock_t{
    		Start:  0,
    		Len:    0,
    		Pid:    0,
    		Type:   lockType,
    		Whence: 0,
    	}
    
    	f, err := os.OpenFile(path, flag, perm)
    	if err != nil {
    		return nil, err
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 2.8K bytes
    - Viewed (0)
  4. cmd/http-tracer.go

    	op = strings.Replace(op, "adminAPIHandlers", "admin", 1)
    	op = strings.Replace(op, "(*storageRESTServer)", "storageR", 1)
    	op = strings.Replace(op, "(*peerRESTServer)", "peer", 1)
    	op = strings.Replace(op, "(*lockRESTServer)", "lockR", 1)
    	op = strings.Replace(op, "(*stsAPIHandlers)", "sts", 1)
    	op = strings.Replace(op, "(*peerS3Server)", "s3", 1)
    	op = strings.Replace(op, "ClusterCheckHandler", "health.Cluster", 1)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  5. internal/grid/handlers.go

    	HandlerConsoleLog:                  peerPrefix,
    	HandlerListDir:                     storagePrefix,
    	HandlerListBuckets:                 peerPrefixS3,
    }
    
    const (
    	lockPrefix      = "lockR"
    	storagePrefix   = "storageR"
    	bootstrapPrefix = "bootstrap"
    	peerPrefix      = "peer"
    	peerPrefixS3    = "peerS3"
    	healPrefix      = "heal"
    )
    
    func init() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  6. cmd/common-main.go

    	currentReleaseTime time.Time
    	orchestrated       = IsKubernetes() || IsDocker()
    )
    
    func init() {
    	if runtime.GOOS == "windows" {
    		if mousetrap.StartedByExplorer() {
    			fmt.Printf("Don't double-click %s\n", os.Args[0])
    			fmt.Println("You need to open cmd.exe/PowerShell and run it from the command line")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 24 04:08:47 GMT 2024
    - 35.5K bytes
    - Viewed (2)
  7. internal/lock/lock_nix.go

    			Op:   "open",
    			Path: path,
    			Err:  syscall.EINVAL,
    		}
    	}
    
    	f, err := os.OpenFile(path, flag|syscall.O_SYNC, perm)
    	if err != nil {
    		return nil, err
    	}
    
    	if err = syscall.Flock(int(f.Fd()), lockType); err != nil {
    		f.Close()
    		if err == syscall.EWOULDBLOCK {
    			err = ErrAlreadyLocked
    		}
    		return nil, err
    	}
    
    	st, err := os.Stat(path)
    	if err != nil {
    		f.Close()
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 2.8K bytes
    - Viewed (0)
Back to top