Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 400 for CGO (0.05 sec)

  1. 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)
  2. 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)
  3. src/cmd/go/testdata/script/test_android_issue62123.txt

    stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    ! go test -c -o $devnull os
    stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled'
    ! stderr 'cannot find runtime/cgo'
    
    env GOOS=ios GOARCH=arm64 CGO_ENABLED=0
    
    ! go build -o $devnull cmd/buildid
    stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 23 21:55:28 UTC 2023
    - 683 bytes
    - Viewed (0)
  4. src/net/cgo_stub.go

    	panic("cgo stub: cgo not available")
    }
    
    func cgoLookupCNAME(ctx context.Context, name string) (cname string, err error, completed bool) {
    	panic("cgo stub: cgo not available")
    }
    
    func cgoLookupPTR(ctx context.Context, addr string) (ptrs []string, err error) {
    	panic("cgo stub: cgo not available")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/go/testdata/script/cgo_suspect_flag_force_external.txt

    # combination with selected "unusual" flags (involving plugins, LTO)
    # that we force external linking.  See related
    # issues 58619,  58620, and 58848.
    
    [compiler:gccgo] skip # only external linking for gccgo
    
    [!cgo] skip 'test verifies behavior that depends on CGO_CFLAGS'
    [mustlinkext] skip 'test expects internal linking for non-cgo programs'
    
    # Here we build three program: one with explicit CGO use, one with no
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 18:16:01 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. test/typeparam/issue54765.go

    // arguments. (pointer-to-nih types are okay though.)
    
    //go:build cgo
    
    package p
    
    import (
    	"runtime/cgo"
    	"sync/atomic"
    )
    
    var _ atomic.Pointer[cgo.Incomplete]  // ERROR "cannot use incomplete \(or unallocatable\) type as a type argument: runtime/cgo\.Incomplete"
    var _ atomic.Pointer[*cgo.Incomplete] // ok
    
    func implicit(ptr *cgo.Incomplete) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 729 bytes
    - Viewed (0)
  8. src/runtime/cgo/handle.go

    //	void myprint(uintptr_t handle);
    //	*/
    //	import "C"
    //	import "runtime/cgo"
    //
    //	//export MyGoPrint
    //	func MyGoPrint(handle C.uintptr_t) {
    //		h := cgo.Handle(handle)
    //		val := h.Value().(string)
    //		println(val)
    //		h.Delete()
    //	}
    //
    //	func main() {
    //		val := "hello Go"
    //		C.myprint(C.uintptr_t(cgo.NewHandle(val)))
    //		// Output: hello Go
    //	}
    //
    // and on the C side:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/cgo_stale_precompiled.txt

    go build -x runtime/cgo
    [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    
    # https://go.dev/issue/47215: a missing $(go env CC) caused the precompiled net
    # to be stale. But as of https://go.dev/cl/452457 the precompiled libraries are
    # no longer installed anyway! Since we're requiring a C compiler in order to
    # build and use cgo libraries in the standard library, we should make sure it
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt

    [!GOOS:darwin] skip
    [!cgo] skip
    
    ! go build
    stderr 'invalid flag in #cgo LDFLAGS: -lto_library'
    
    -- go.mod --
    module ldflag
    
    -- main.go --
    package main
    
    // #cgo CFLAGS: -flto
    // #cgo LDFLAGS: -lto_library bad.dylib
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:41:16 UTC 2024
    - 241 bytes
    - Viewed (0)
Back to top