Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for oldName (0.16 sec)

  1. src/os/file_unix.go

    		if ofi, err := Lstat(oldname); err != nil {
    			if pe, ok := err.(*PathError); ok {
    				err = pe.Err
    			}
    			return &LinkError{"rename", oldname, newname, err}
    		} else if newname == oldname || !SameFile(fi, ofi) {
    			return &LinkError{"rename", oldname, newname, syscall.EEXIST}
    		}
    	}
    	err = ignoringEINTR(func() error {
    		return syscall.Rename(oldname, newname)
    	})
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/shell.go

    	}
    	return err
    }
    
    // Symlink creates a symlink newname -> oldname.
    func (sh *Shell) Symlink(oldname, newname string) error {
    	// It's not an error to try to recreate an existing symlink.
    	if link, err := os.Readlink(newname); err == nil && link == oldname {
    		return nil
    	}
    
    	if cfg.BuildN || cfg.BuildX {
    		sh.ShowCmd("", "ln -s %s %s", oldname, newname)
    		if cfg.BuildN {
    			return nil
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

      }
    }
    
    internal inline fun threadName(
      name: String,
      block: () -> Unit,
    ) {
      val currentThread = Thread.currentThread()
      val oldName = currentThread.name
      currentThread.name = name
      try {
        block()
      } finally {
        currentThread.name = oldName
      }
    }
    
    /** Returns the Content-Length as reported by the response headers. */
    internal fun Response.headersContentLength(): Long {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  4. src/cmd/gofmt/gofmt.go

    			if err := writeFile(filename, src, res, perm, info.Size()); err != nil {
    				return err
    			}
    		}
    		if *doDiff {
    			newName := filepath.ToSlash(filename)
    			oldName := newName + ".orig"
    			r.Write(diff.Diff(oldName, src, newName, res))
    		}
    	}
    
    	if !*list && !*write && !*doDiff {
    		_, err = r.Write(res)
    	}
    
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	expectNoDiff(t, "incorrect first page", []example.Pod{*preset[0].storedObj}, out.Items)
    
    	continueFromSecondItem := out.Continue
    
    	// update /second/bar
    	oldName := preset[2].obj.Name
    	newPod := &example.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: oldName,
    			Labels: map[string]string{
    				"state": "new",
    			},
    		},
    	}
    	if err := store.GuaranteedUpdate(ctx, preset[2].key, preset[2].storedObj, false, nil,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  6. pkg/kubelet/eviction/helpers_test.go

    			},
    		},
    		"previous-observation": {
    			thresholds: []evictionapi.Threshold{hardThreshold},
    			lastObservedAt: thresholdsObservedAt{
    				hardThreshold: oldTime.Time,
    			},
    			now: now.Time,
    			result: thresholdsObservedAt{
    				hardThreshold: oldTime.Time,
    			},
    		},
    	}
    	for testName, testCase := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  7. src/encoding/json/encode.go

    	for i, field := range fields {
    		exactNameIndex[field.name] = &fields[i]
    		// For historical reasons, first folded match takes precedence.
    		if _, ok := foldedNameIndex[string(foldName(field.nameBytes))]; !ok {
    			foldedNameIndex[string(foldName(field.nameBytes))] = &fields[i]
    		}
    	}
    	return structFields{fields, exactNameIndex, foldedNameIndex}
    }
    
    // dominantField looks through the fields, all of which are known to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  8. src/net/http/transport.go

    		return false
    	}
    
    	// If IdleConnTimeout is set, calculate the oldest
    	// persistConn.idleAt time we're willing to use a cached idle
    	// conn.
    	var oldTime time.Time
    	if t.IdleConnTimeout > 0 {
    		oldTime = time.Now().Add(-t.IdleConnTimeout)
    	}
    
    	// Look for most recently-used idle connection.
    	if list, ok := t.idleConn[w.key]; ok {
    		stop := false
    		delivered := false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  9. src/encoding/json/decode.go

    				mapElem = reflect.New(elemType).Elem()
    			} else {
    				mapElem.SetZero()
    			}
    			subv = mapElem
    		} else {
    			f := fields.byExactName[string(key)]
    			if f == nil {
    				f = fields.byFoldedName[string(foldName(key))]
    			}
    			if f != nil {
    				subv = v
    				destring = f.quoted
    				for _, i := range f.index {
    					if subv.Kind() == reflect.Pointer {
    						if subv.IsNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  10. src/runtime/stack.go

    //
    // varp > sp means that the function has a frame;
    // varp == sp means frameless function.
    
    type adjustinfo struct {
    	old   stack
    	delta uintptr // ptr distance from old to new stack (newbase - oldbase)
    
    	// sghi is the highest sudog.elem on the stack.
    	sghi uintptr
    }
    
    // adjustpointer checks whether *vpp is in the old stack described by adjinfo.
    // If so, it rewrites *vpp to point into the new stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top