- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 106 for CGO (0.03 sec)
-
src/runtime/cgo.go
var set_crosscall2 func() // cgoHasExtraM is set on startup when an extra M is created for cgo. // The extra M must be created before any C/C++ code calls cgocallback. var cgoHasExtraM bool // cgoUse is called by cgo-generated code (using go:linkname to get at // an unexported name). The calls serve two purposes: // 1) they are opaque to escape analysis, so the argument is considered to // escape to the heap.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 3.1K bytes - Viewed (0) -
src/internal/trace/testdata/testprog/cgo-callback.go
Carlos Amedee <******@****.***> 1715265901 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 1.3K bytes - Viewed (0) -
src/net/conf.go
// On those systems the cgo resolver does not require the cgo tool. // (The term "cgo resolver" was locked in by GODEBUG settings // at a time when the cgo resolver did require the cgo tool.) // // Adding netdns=go to GODEBUG will prefer the go resolver. // Adding netdns=cgo to GODEBUG will prefer the cgo resolver. // // The Resolver struct has a PreferGo field that user code // may set to prefer the go resolver. It is documented as being
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/cmd/cgo/doc.go
environment variable when running the go tool: set it to 1 to enable the use of cgo, and to 0 to disable it. The go tool will set the build constraint "cgo" if cgo is enabled. The special import "C" implies the "cgo" build constraint, as though the file also said "//go:build cgo". Therefore, if cgo is disabled, files that import "C" will not be built by the go tool. (For more about build constraints
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/cgo_long_cmd.txt
# Issue #66456 [!cgo] skip [GOOS:windows] skip [GOOS:plan9] skip # Generate a file with a very long #cgo LDFLAGS line. # This used to cause "go build" to fail with "argument list too long". go generate # Build with the generated file. go build -- go.mod -- module cgolongcmd go 1.22 -- generate.go -- //go:build ignore package main import ( "fmt" "log" "os" "bytes" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 782 bytes - Viewed (0) -
src/runtime/cgocall.go
"unsafe" ) // Addresses collected in a cgo backtrace when crashing. // Length must match arg.Max in x_cgo_callers in runtime/cgo/gcc_traceback.c. type cgoCallers [32]uintptr // argset matches runtime/cgo/linux_syscall.c:argset_t type argset struct { args unsafe.Pointer retval uintptr } // wrapper for syscall package to call cgocall for libc (cgo) calls. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:16:47 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_fuzz_cgo.txt
[!fuzz] skip [!cgo] skip [short] skip env GOCACHE=$WORK/cache # Test that fuzzing works with cgo (issue 65169) go test -fuzz=. -fuzztime=1x stdout ok ! stdout FAIL -- go.mod -- module example.com/p go 1.20 -- c.go -- package p import "C" -- c_test.go -- package p import "testing" func Fuzz(f *testing.F) { f.Add(0) f.Fuzz(func(t *testing.T, x int) {})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 12 15:10:50 UTC 2024 - 364 bytes - Viewed (0) -
src/make.bash
# building the commands. # # CGO_ENABLED: Controls cgo usage during the build. Set it to 1 # to include all cgo related files, .c and .go file with "cgo" # build directive, in the build. Set it to 0 to ignore them. # # GO_EXTLINK_ENABLED: Set to 1 to invoke the host linker when building # packages that use cgo. Set to 0 to do all linking internally. This
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:48:46 UTC 2024 - 7.6K bytes - Viewed (0) -
src/go/build/deps_test.go
< image/gif, image/jpeg, image/png; # cgo, delayed as long as possible. # If you add a dependency on CGO, you must add the package # to cgoPackages in cmd/dist/test.go as well. RUNTIME < C < runtime/cgo < CGO < runtime/msan, runtime/asan; # runtime/race NONE < runtime/race/internal/amd64v1; NONE < runtime/race/internal/amd64v3;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/runtime/testdata/testprogcgo/coro.go
CoroCgo(callerStopCallback, iterNested) }) } var toCall func() //export go_callback_coro func go_callback_coro(handle C.uintptr_t) { h := cgo.Handle(handle) h.Value().(func())() h.Delete() } func callFromC(f func()) { C.call_go(C.uintptr_t(cgo.NewHandle(f))) } func CoroCgo(driver func(iter.Seq[int]) error, seq iter.Seq[int]) { if err := driver(seq); err != nil { println("error:", err.Error())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 3.4K bytes - Viewed (0)