- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 57 for linkage (0.23 sec)
-
src/runtime/vdso_linux_amd64.go
// Copyright 2012 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 runtime import _ "unsafe" // for linkname const ( // vdsoArrayMax is the byte-size of a maximally sized array on this architecture. // See cmd/compile/internal/amd64/galign.go arch.MAXWIDTH initialization. vdsoArrayMax = 1<<50 - 1 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 816 bytes - Viewed (0) -
src/os/executable_darwin.go
// Copyright 2016 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 os import ( "errors" _ "unsafe" // for linkname ) //go:linkname executablePath var executablePath string // set by ../runtime/os_darwin.go var initCwd, initCwdErr = Getwd() func executable() (string, error) { ep := executablePath if len(ep) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 675 bytes - Viewed (0) -
test/linkname3.go
// errorcheck // 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. // Tests that errors are reported for misuse of linkname. package p import _ "unsafe" type t int var x, y int func F[T any](T) {} //go:linkname x ok // ERROR "//go:linkname must refer to declared function or variable"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:27:25 UTC 2024 - 720 bytes - Viewed (0) -
src/runtime/security_unix.go
// environment variable values (currently we only force GOTRACEBACK=none) // // Other packages may also disable specific functionality when secure mode // is enabled (determined by using linkname to call isSecureMode). secureEnv() } func secureEnv() { var hasTraceback bool for i := 0; i < len(envs); i++ { if stringslite.HasPrefix(envs[i], "GOTRACEBACK=") { hasTraceback = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 15:41:45 UTC 2024 - 866 bytes - Viewed (0) -
src/runtime/timestub.go
//go:build !faketime && !windows && !(linux && amd64) package runtime import _ "unsafe" // for go:linkname // time_now should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - gitee.com/quant1x/gox // - github.com/phuslu/log // - github.com/sethvargo/go-limiter // - github.com/ulule/limiter/v3 //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 889 bytes - Viewed (0) -
src/testing/newcover.go
// license that can be found in the LICENSE file. // Support for test coverage with redesigned coverage implementation. package testing import ( "fmt" "internal/goexperiment" "os" _ "unsafe" // for linkname ) // cover2 variable stores the current coverage mode and a // tear-down function to be called at the end of the testing run. var cover2 struct { mode string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 1.6K bytes - Viewed (0) -
src/net/ipsock_posix.go
// license that can be found in the LICENSE file. //go:build unix || js || wasip1 || windows package net import ( "context" "internal/poll" "net/netip" "runtime" "syscall" _ "unsafe" // for linkname ) // probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication // capabilities which are controlled by the IPV6_V6ONLY socket option // and kernel configuration. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 8.6K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_386.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build 386 package atomic import "unsafe" // Export some functions via linkname to assembly in sync/atomic. // //go:linkname Load //go:linkname Loadp //go:linkname LoadAcquintptr //go:nosplit //go:noinline func Load(ptr *uint32) uint32 { return *ptr } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 2.2K bytes - Viewed (0) -
src/net/dnsconfig.go
"sync/atomic" "time" _ "unsafe" ) // defaultNS is the default name servers to use in the absence of DNS configuration. // // defaultNS should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - github.com/pojntfx/hydrapp/hydrapp // - github.com/mtibben/androiddnsfix // - github.com/metacubex/mihomo // // Do not remove or change the type signature.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/bytealg/compare_generic.go
return runtime_cmpstring(a, b) } // runtime.cmpstring calls are emitted by the compiler. // // runtime.cmpstring should be an internal detail, // but widely used packages access it using linkname. // Notable members of the hall of shame include: // - gitee.com/zhaochuninhefei/gmgo // - github.com/bytedance/gopkg // - github.com/songzhibin97/gkit // // Do not remove or change the type signature.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 1.5K bytes - Viewed (0)