Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 126 for original (0.76 sec)

  1. src/encoding/pem/pem.go

    // array. The line does not include trailing whitespace or the trailing new
    // line bytes. The remainder of the byte array (also not including the new line
    // bytes) is also returned and this will always be smaller than the original
    // argument.
    func getLine(data []byte) (line, rest []byte) {
    	i := bytes.IndexByte(data, '\n')
    	var j int
    	if i < 0 {
    		i = len(data)
    		j = i
    	} else {
    		j = i + 1
    		if i > 0 && data[i-1] == '\r' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. src/syscall/exec_bsd.go

    	}
    
    	// Set the controlling TTY to Ctty
    	if sys.Setctty {
    		_, _, err1 = RawSyscall(SYS_IOCTL, uintptr(sys.Ctty), uintptr(TIOCSCTTY), 0)
    		if err1 != 0 {
    			goto childerror
    		}
    	}
    
    	// Restore original rlimit.
    	if rlim != nil {
    		RawSyscall(SYS_SETRLIMIT, uintptr(RLIMIT_NOFILE), uintptr(unsafe.Pointer(rlim)), 0)
    	}
    
    	// Time to exec.
    	_, _, err1 = RawSyscall(SYS_EXECVE,
    		uintptr(unsafe.Pointer(argv0)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 29 18:51:35 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. src/os/example_test.go

    		// Symlink targets are relative to the directory containing the link.
    		dstAbs = filepath.Join(filepath.Dir(linkPath), dst)
    	}
    
    	// Check that the target is correct by comparing it with os.Stat
    	// on the original target path.
    	dstInfo, err := os.Stat(dstAbs)
    	if err != nil {
    		log.Fatal(err)
    	}
    	targetInfo, err := os.Stat(targetPath)
    	if err != nil {
    		log.Fatal(err)
    	}
    	if !os.SameFile(dstInfo, targetInfo) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 17:35:49 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. src/crypto/aes/aes_gcm.go

    // slice with the contents of the given slice followed by that many bytes and a
    // second slice that aliases into it and contains only the extra bytes. If the
    // original slice has sufficient capacity then no allocation is performed.
    func sliceForAppend(in []byte, n int) (head, tail []byte) {
    	if total := len(in) + n; cap(in) >= total {
    		head = in[:total]
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  5. src/html/template/clone_test.go

    // to the copy but not to the original."
    func TestCloneThenParse(t *testing.T) {
    	t0 := Must(New("t0").Parse(`{{define "a"}}{{template "embedded"}}{{end}}`))
    	t1 := Must(t0.Clone())
    	Must(t1.Parse(`{{define "embedded"}}t1{{end}}`))
    	if len(t0.Templates())+1 != len(t1.Templates()) {
    		t.Error("adding a template to a clone added it to the original")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/instantiate_test.go

    	typ := pkg.Scope().Lookup("T").Type().(*Named)
    	obj, _, _ := LookupFieldOrMethod(typ, false, pkg, "m")
    	if obj == nil {
    		t.Fatalf(`LookupFieldOrMethod(%s, "m") = %v, want func m`, typ, obj)
    	}
    
    	// Verify that the original method is not mutated by instantiating T (this
    	// bug manifested when subst did not return a new signature).
    	want := "func (T[P]).m()"
    	if got := stripAnnotations(ObjectString(obj, RelativeTo(pkg))); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. src/net/http/header_test.go

    		}
    	}
    }
    
    func TestNilHeaderClone(t *testing.T) {
    	t1 := Header(nil)
    	t2 := t1.Clone()
    	if t2 != nil {
    		t.Errorf("cloned header does not match original: got: %+v; want: %+v", t2, nil)
    	}
    }
    
    var testHeader = Header{
    	"Content-Length": {"123"},
    	"Content-Type":   {"text/plain"},
    	"Date":           {"some date at some time Z"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/cgotest/overlaydir.go

    			if err != nil {
    				return err
    			}
    			perm = info.Mode() & os.ModePerm
    		}
    
    		// Always copy directories (don't symlink them).
    		// If we add a file in the overlay, we don't want to add it in the original.
    		if info.IsDir() {
    			return os.MkdirAll(dstPath, perm|0200)
    		}
    
    		// If the OS supports symlinks, use them instead of copying bytes.
    		if err := os.Symlink(srcPath, dstPath); err == nil {
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 20:56:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/os/signal/signal.go

    }
    
    func (h *handler) clear(sig int) {
    	h.mask[sig/32] &^= 1 << uint(sig&31)
    }
    
    // Stop relaying the signals, sigs, to any channels previously registered to
    // receive them and either reset the signal handlers to their original values
    // (action=disableSignal) or ignore the signals (action=ignoreSignal).
    func cancel(sigs []os.Signal, action func(int)) {
    	handlers.Lock()
    	defer handlers.Unlock()
    
    	remove := func(n int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ir/type.go

    	//
    	// BUG(mdempsky): If ITab is non-nil, RType may be nil.
    	RType Node
    
    	// ITab is an expression that yields a *runtime.itab value
    	// representing the asserted type within the assertee expression's
    	// original interface type.
    	//
    	// ITab is only used for assertions (including type switches) from
    	// non-empty interface type to a concrete (i.e., non-interface)
    	// type. For all other assertions, ITab is nil.
    	ITab Node
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Aug 20 05:56:49 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top