Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 127 for linkname (0.12 sec)

  1. 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)
  2. 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)
  3. src/cmd/link/testdata/linkname/fastrand.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 fastrand is allowed _for now_, as it has a
    // linknamed definition, for legacy reason.
    // NOTE: this may not be allowed in the future. Don't do this!
    
    package main
    
    import _ "unsafe"
    
    //go:linkname fastrand runtime.fastrand
    func fastrand() uint32
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 457 bytes
    - Viewed (0)
  4. test/fixedbugs/issue23311.dir/main.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.
    
    package main
    
    import _ "unsafe" // for linkname
    
    //go:linkname f runtime.GC
    func f()
    
    func main() {
    	f()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 20:00:59 UTC 2018
    - 267 bytes
    - Viewed (0)
  5. src/runtime/syscall_aix.go

    //
    // This is exported via linkname to assembly in the syscall package.
    //
    //go:nosplit
    //go:linkname syscall_Syscall
    func syscall_Syscall(fn, a1, a2, a3 uintptr) (r1, r2, err uintptr) {
    	return 0, 0, _EINVAL
    }
    
    // This is syscall.RawSyscall, it exists to satisfy some build dependency,
    // but it doesn't work.
    //
    // This is exported via linkname to assembly in the syscall package.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  6. src/crypto/x509/root.go

    // license that can be found in the LICENSE file.
    
    package x509
    
    import (
    	"internal/godebug"
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // systemRoots should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/breml/rootcerts
    //
    // 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
    - 2.3K bytes
    - Viewed (0)
  7. src/runtime/rand.go

    //
    //go:nosplit
    func rand32() uint32 {
    	return uint32(rand())
    }
    
    // rand returns a random uint64 from the per-m chacha8 state.
    // Do not change signature: used via linkname from other packages.
    //
    //go:nosplit
    //go:linkname rand
    func rand() uint64 {
    	// Note: We avoid acquirem here so that in the fast path
    	// there is just a getg, an inlined c.Next, and a return.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 14:32:47 UTC 2024
    - 8K bytes
    - Viewed (0)
  8. src/internal/syscall/unix/getentropy_openbsd.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build openbsd && !mips64
    
    package unix
    
    import _ "unsafe" // for linkname
    
    // GetEntropy calls the OpenBSD getentropy system call.
    func GetEntropy(p []byte) error {
    	return getentropy(p)
    }
    
    //go:linkname getentropy syscall.getentropy
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 16:59:38 UTC 2022
    - 431 bytes
    - Viewed (0)
  9. src/runtime/cgo.go

    	_cgo_getstackbound            unsafe.Pointer
    )
    
    // iscgo is set to true by the runtime/cgo package
    //
    // iscgo should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - github.com/ebitengine/purego
    //
    // Do not remove or change the type signature.
    // See go.dev/issue/67401.
    //
    //go:linkname iscgo
    var iscgo bool
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. src/cmd/link/testdata/linkname/coro_var.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 "var" to reference newcoro is not allowed.
    
    package main
    
    import "unsafe"
    
    func main() {
    	call(&newcoro)
    }
    
    //go:linkname newcoro runtime.newcoro
    var newcoro unsafe.Pointer
    
    //go:noinline
    func call(*unsafe.Pointer) {
    	// not implemented
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:05:33 UTC 2024
    - 411 bytes
    - Viewed (0)
Back to top