Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Page (0.5 sec)

  1. src/cmd/go/internal/mmap/mmap_unix.go

    		return Data{}, fmt.Errorf("%s: too large for mmap", f.Name())
    	}
    	n := int(size)
    	if n == 0 {
    		return Data{f, nil}, nil
    	}
    	mmapLength := int(((size + pagesize - 1) / pagesize) * pagesize) // round up to page size
    	data, err := syscall.Mmap(int(f.Fd()), 0, mmapLength, syscall.PROT_READ, syscall.MAP_SHARED)
    	if err != nil {
    		return Data{}, &fs.PathError{Op: "mmap", Path: f.Name(), Err: err}
    	}
    	return Data{f, data[:n]}, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 21:57:36 UTC 2023
    - 886 bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    			if pos != -1 {
    				t.Errorf("IndexByte(%q, 'x') = %v", b1, pos)
    			}
    		}
    	}
    }
    
    // test a small index across all page offsets
    func TestIndexByteSmall(t *testing.T) {
    	b := make([]byte, 5015) // bigger than a page
    	// Make sure we find the correct byte even when straddling a page.
    	for i := 0; i <= len(b)-15; i++ {
    		for j := 0; j < 15; j++ {
    			b[i+j] = byte(100 + j)
    		}
    		for j := 0; j < 15; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/web/http.go

    			// Report the error from the HTTP attempt.
    			return nil, err
    		}
    	}
    
    	// Note: accepting a non-200 OK here, so people can serve a
    	// meta import in their http 404 page.
    	if cfg.BuildX {
    		fmt.Fprintf(os.Stderr, "# get %s: %v (%.3fs)\n", fetched.Redacted(), res.Status, time.Since(start).Seconds())
    	}
    
    	r := &Response{
    		URL:        fetched.Redacted(),
    		Status:     res.Status,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. src/cmd/go/internal/help/helpdoc.go

    will result in the following requests:
    
    	https://example.org/pkg/foo?go-get=1 (preferred)
    	http://example.org/pkg/foo?go-get=1  (fallback, only with use of correctly set GOINSECURE)
    
    If that page contains the meta tag
    
    	<meta name="go-import" content="example.org git https://code.org/r/p/exproj">
    
    the go tool will verify that https://example.org/?go-get=1 contains the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/load.go

    		}
    
    		fmt.Fprintf(os.Stderr, "If reproducibility with go %s is not needed:\n\tgo mod tidy%s -compat=%s\n", compatVersion, goFlag, goVersion)
    
    		// TODO(#46141): Populate the linked wiki page.
    		fmt.Fprintf(os.Stderr, "For other options, see:\n\thttps://golang.org/doc/modules/pruning\n")
    	}
    
    	mg, err := rs.Graph(ctx)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  6. src/cmd/go/alldocs.go

    //
    // will result in the following requests:
    //
    //	https://example.org/pkg/foo?go-get=1 (preferred)
    //	http://example.org/pkg/foo?go-get=1  (fallback, only with use of correctly set GOINSECURE)
    //
    // If that page contains the meta tag
    //
    //	<meta name="go-import" content="example.org git https://code.org/r/p/exproj">
    //
    // the go tool will verify that https://example.org/?go-get=1 contains the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  7. src/cmd/go/internal/vcweb/vcstest/vcstest_test.go

    		}
    	})
    
    	t.Cleanup(func() {
    		// The subtests spawned by WalkDir run in parallel. When they complete, this
    		// Cleanup callback will run. At that point we fetch the root URL (which
    		// contains a status page), both to test that the root handler runs without
    		// crashing and to display a nice summary of the server's view of the test
    		// coverage.
    		resp, err := http.Get(srv.URL)
    		if err == nil {
    			var body []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 11 16:04:21 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/script/engine.go

    type CmdUsage struct {
    	Summary string   // in the style of the Name section of a Unix 'man' page, omitting the name
    	Args    string   // a brief synopsis of the command's arguments (only)
    	Detail  []string // zero or more sentences in the style of the Description section of a Unix 'man' page
    
    	// If Async is true, the Cmd is meaningful to run in the background, and its
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/test.go

    int check_cbytes(char *b, size_t l) {
    	int i;
    	for (i = 0; i < l; i++) {
    		if (b[i] != i) {
    			return 0;
    		}
    	}
    	return 1;
    }
    
    // issue 17065
    // Test that C symbols larger than a page play nicely with the race detector.
    int ii[65537];
    
    // issue 17537
    // The void* cast introduced by cgo to avoid problems
    // with const/volatile qualifiers breaks C preprocessor macros that
    // emulate functions.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/html.go

        const len = collapsedEls.length;
    
        for (let i = 0; i < len; i++) {
            collapsedEls[i].classList.toggle('darkmode');
        }
    
        // Collect and spread the appropriate elements from all of the svgs on the page into one array
        const svgParts = [
            ...document.querySelectorAll('path'),
            ...document.querySelectorAll('ellipse'),
            ...document.querySelectorAll('polygon'),
        ];
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 34.8K bytes
    - Viewed (0)
Back to top