- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 127 for linkname (0.26 sec)
-
src/os/executable_solaris.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 ( "syscall" _ "unsafe" // for linkname ) //go:linkname executablePath var executablePath string // set by sysauxv in ../runtime/os3_solaris.go var initCwd, initCwdErr = Getwd() func executable() (string, error) { path := executablePath
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 757 bytes - Viewed (0) -
src/runtime/badlinkname.go
// license that can be found in the LICENSE file. package runtime import _ "unsafe" // These should be an internal details // but widely used packages access them using linkname. // Do not remove or change the type signature. // See go.dev/issue/67401. // Notable members of the hall of shame include: // - github.com/dgraph-io/ristretto // - github.com/outcaste-io/ristretto
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 661 bytes - Viewed (0) -
test/fixedbugs/issue30061.go
// compile // Copyright 2019 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. // Make sure we can linkname to memmove with an unsafe.Pointer argument. package p import "unsafe" //go:linkname memmove runtime.memmove func memmove(to, from unsafe.Pointer, n uintptr) var V1, V2 int func F() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 01 23:43:09 UTC 2019 - 465 bytes - Viewed (0) -
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) -
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/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/testdata/testprognet/waiters.go
"net" "internal/runtime/atomic" "sync" "time" _ "unsafe" // for go:linkname ) // The bug is that netpollWaiters increases monotonically. // This doesn't cause a problem until it overflows. // Use linkname to see the value. // //go:linkname netpollWaiters runtime.netpollWaiters var netpollWaiters atomic.Uint32 func init() { register("NetpollWaiters", NetpollWaiters) } func NetpollWaiters() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/syscall/unix/at_libc2.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build darwin || (openbsd && !mips64) package unix import ( "syscall" _ "unsafe" // for linkname ) func Unlinkat(dirfd int, path string, flags int) error { return unlinkat(dirfd, path, flags) } func Openat(dirfd int, path string, flags int, perm uint32) (int, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 16:59:38 UTC 2022 - 927 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)