Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 259 for dev (0.02 sec)

  1. src/archive/tar/stat_unix.go

    			major := uint32((dev & 0x00000000000fff00) >> 8)
    			major |= uint32((dev & 0xfffff00000000000) >> 32)
    			minor := uint32((dev & 0x00000000000000ff) >> 0)
    			minor |= uint32((dev & 0x00000ffffff00000) >> 12)
    			h.Devmajor, h.Devminor = int64(major), int64(minor)
    		case "darwin", "ios":
    			// Copied from golang.org/x/sys/unix/dev_darwin.go.
    			major := uint32((dev >> 24) & 0xff)
    			minor := uint32(dev & 0xffffff)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/dev_zos.go

    package unix
    
    // Major returns the major component of a z/OS device number.
    func Major(dev uint64) uint32 {
    	return uint32((dev >> 16) & 0x0000FFFF)
    }
    
    // Minor returns the minor component of a z/OS device number.
    func Minor(dev uint64) uint32 {
    	return uint32(dev & 0x0000FFFF)
    }
    
    // Mkdev returns a z/OS device number generated from the given major and minor
    // components.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 830 bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/versions/versions.go

    package versions
    
    import (
    	"strings"
    )
    
    // Note: If we use build tags to use go/versions when go >=1.22,
    // we run into go.dev/issue/53737. Under some operations users would see an
    // import of "go/versions" even if they would not compile the file.
    // For example, during `go get -u ./...` (go.dev/issue/64490) we do not try to include
    // For this reason, this library just a clone of go/versions for the moment.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/testdata/typeset.go

            _[_ ~t|struct{}] t
            _[_ t|~struct{}] t
            _[_ ~t|~struct{}] t
    
            // test cases for go.dev/issue/49175
            _[_ []t]t
            _[_ [1]t]t
            _[_ ~[]t]t
            _[_ ~[1]t]t
            t [ /* ERROR missing type parameter name */ t[0]]t
    )
    
    // test cases for go.dev/issue/49174
    func _[_ t]() {}
    func _[_ []t]() {}
    func _[_ [1]t]() {}
    func _[_ []t | t]() {}
    func _[_ [1]t | t]() {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizes_test.go

    	for _, tv := range types {
    		if ts, ok := tv.Type.(*types2.Struct); ok {
    			return ts
    		}
    	}
    	t.Fatalf("failed to find a struct type in src:\n%s\n", src)
    	return nil
    }
    
    // go.dev/issue/16316
    func TestMultipleSizeUse(t *testing.T) {
    	const src = `
    package main
    
    type S struct {
        i int
        b bool
        s string
        n int
    }
    `
    	ts := findStructType(t, src)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/internal/bootstrap_test/reboot_test.go

    	// on the Go repo's git metadata, add a fake (unreadable) git
    	// directory above the simulated GOROOT.
    	// This mimics the configuration one much have when
    	// building from distro-packaged source code
    	// (see https://go.dev/issue/54852).
    	parent := t.TempDir()
    	dotGit := filepath.Join(parent, ".git")
    	if err := os.Mkdir(dotGit, 000); err != nil {
    		t.Fatal(err)
    	}
    
    	overlayStart := time.Now()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/testdata/issue31092.go

    // Copyright 2018 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.
    
    // Test cases for go.dev/issue/31092: Better synchronization of
    // parser after seeing an := rather than an = in a const,
    // type, or variable declaration.
    
    package p
    
    const _ /* ERROR unexpected := */ := 0
    type _ /* ERROR unexpected := */ := int
    var _ /* ERROR unexpected := */ := 0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 12:49:49 UTC 2023
    - 529 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/named_test.go

    	inst, err := Instantiate(nil, orig, targs, true)
    	if err != nil {
    		tb.Fatal(err)
    	}
    	return inst
    }
    
    // Test that types do not expand infinitely, as in go.dev/issue/52715.
    func TestFiniteTypeExpansion(t *testing.T) {
    	const src = `
    package p
    
    type Tree[T any] struct {
    	*Node[T]
    }
    
    func (*Tree[R]) N(r R) R { return r }
    
    type Node[T any] struct {
    	*Tree[T]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/appends/appends.go

    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "appends",
    	Doc:      analysisutil.MustExtractDoc(doc, "appends"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/appends",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/telemetry/mode.go

    // system and may be inspected with the [gotelemetry] command.
    //
    // If an error occurs while reading the telemetry mode from the file system,
    // Mode returns the default value "local".
    //
    // [gotelemetry]: https://pkg.go.dev/golang.org/x/telemetry/cmd/gotelemetry
    func Mode() string {
    	mode, _ := telemetry.Default.Mode()
    	return mode
    }
    
    // SetMode sets the global telemetry mode to the given value.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:13:09 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top