Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 341 for linkname (0.15 sec)

  1. src/net/http/roundtrip.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !js
    
    package http
    
    import _ "unsafe" // for linkname
    
    // RoundTrip should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/erda-project/erda-infra
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 988 bytes
    - Viewed (0)
  2. src/internal/cpu/cpu_arm64_darwin.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 && darwin && !ios
    
    package cpu
    
    import _ "unsafe" // for linkname
    
    func osInit() {
    	ARM64.HasATOMICS = sysctlEnabled([]byte("hw.optional.armv8_1_atomics\x00"))
    	ARM64.HasCRC32 = sysctlEnabled([]byte("hw.optional.armv8_crc32\x00"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. src/internal/testlog/exit.go

    // Copyright 2020 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.
    
    package testlog
    
    import (
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // PanicOnExit0 reports whether to panic on a call to os.Exit(0).
    // This is in the testlog package because, like other definitions in
    // package testlog, it is a hook between the testing package and the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. pkg/proxy/ipvs/testing/fake.go

    	res := sets.New[string]()
    	for linkName := range h.localAddresses {
    		if linkName == dev {
    			continue
    		}
    		for _, addr := range h.localAddresses[linkName] {
    			if h.isValidForSet(addr) {
    				res.Insert(addr)
    			}
    		}
    	}
    	return res, nil
    }
    
    // SetLocalAddresses set IP addresses to the given interface device.  It's not part of interface.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  5. src/crypto/tls/defaults.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package tls
    
    import (
    	"internal/godebug"
    	"slices"
    	_ "unsafe" // for linkname
    )
    
    // Defaults are collected in this file to allow distributions to more easily patch
    // them to apply local policies.
    
    var tlskyber = godebug.New("tlskyber")
    
    func defaultCurvePreferences() []CurveID {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_andor_generic.go

    // license that can be found in the LICENSE file.
    
    //go:build arm || wasm
    
    // Export some functions via linkname to assembly in sync/atomic.
    //
    //go:linkname And32
    //go:linkname Or32
    //go:linkname And64
    //go:linkname Or64
    //go:linkname Anduintptr
    //go:linkname Oruintptr
    
    package atomic
    
    import _ "unsafe" // For linkname
    
    //go:nosplit
    func And32(ptr *uint32, val uint32) uint32 {
    	for {
    		old := *ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 20:08:37 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  7. src/reflect/badlinkname.go

    // It is no longer used by this package and is here entirely for the
    // linkname uses.
    //
    //go:linkname unusedIfaceIndir reflect.ifaceIndir
    func unusedIfaceIndir(t *abi.Type) bool {
    	return t.Kind_&abi.KindDirectIface == 0
    }
    
    //go:linkname valueInterface
    
    // The compiler doesn't allow linknames on methods, for good reasons.
    // We use this trick to push linknames of the methods.
    // Do not call them in this package.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/abi.go

    		// Go or assembly) and given a linkname, it may be
    		// referenced from another package, so make it
    		// callable via any ABI. It's important that we know
    		// it's defined in this package since other packages
    		// may "pull" symbols using linkname and we don't want
    		// to create duplicate ABI wrappers.
    		//
    		// However, if it's given a linkname for exporting to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/runtime/proflabel.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "unsafe"
    
    var labelSync uintptr
    
    // runtime_setProfLabel should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/cloudwego/localsession
    //   - github.com/DataDog/datadog-agent
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/cmd/link/testdata/linkname/coro2.go

    // Copyright 2024 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.
    
    // Linkname corostart is not allowed, as it doesn't have
    // a linknamed definition.
    
    package main
    
    import _ "unsafe"
    
    //go:linkname corostart runtime.corostart
    func corostart()
    
    func main() {
    	corostart()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 367 bytes
    - Viewed (0)
Back to top