Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 488 for CGO (0.02 sec)

  1. src/runtime/cgo/cgo.go

    /*
    Package cgo contains runtime support for code generated
    by the cgo tool.  See the documentation for the cgo command
    for details on using cgo.
    */
    package cgo
    
    /*
    
    #cgo darwin,!arm64 LDFLAGS: -lpthread
    #cgo darwin,arm64 LDFLAGS: -framework CoreFoundation
    #cgo dragonfly LDFLAGS: -lpthread
    #cgo freebsd LDFLAGS: -lpthread
    #cgo android LDFLAGS: -llog
    #cgo !android,linux LDFLAGS: -lpthread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 14:29:46 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vet/testdata/cgo/cgo.go

    // Copyright 2015 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.
    
    // This file contains tests for the cgo checker.
    
    package testdata
    
    // void f(void *p) {}
    import "C"
    
    import "unsafe"
    
    func CgoTests() {
    	var c chan bool
    	C.f(*(*unsafe.Pointer)(unsafe.Pointer(&c))) // ERROR "embedded pointer"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 462 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprogcgo/cgo.go

    Russ Cox <******@****.***> 1509125409 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/go/testdata/script/version_build_settings.txt

    ! stdout CGO_CPPFLAGS|CGO_CFLAGS|CGO_CXXFLAGS|CGO_LDFLAGS
    
    [cgo] env CGO_ENABLED=1
    [cgo] env CGO_CPPFLAGS=-DFROM_CPPFLAGS=1
    [cgo] env CGO_CFLAGS=-DFROM_CFLAGS=1
    [cgo] env CGO_CXXFLAGS=-DFROM_CXXFLAGS=1
    [cgo] env CGO_LDFLAGS=-L/extra/dir/does/not/exist
    [cgo] go build '-ldflags=all=-linkmode=external -extldflags=-L/bonus/dir/does/not/exist'
    [cgo] go version -m m$GOEXE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_cwd_newline.txt

    [cgo] ! go tool cgo main.go
    [cgo] stderr 'cgo: input path contains newline character: .*uh-oh'
    [cgo] ! exists _obj
    
    [cgo] go tool cgo -trimpath=$PWD main.go
    [cgo] grep '//line main\.go:1:1' _obj/main.cgo1.go
    [cgo] ! grep 'uh-oh' _obj/main.cgo1.go
    [cgo] rm _obj
    
    
    # Since we do preserve $PWD (or set it appropriately) for commands, and we do
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/cmd/go/testdata/script/cgo_bad_directives.txt

    [compiler:gc] stderr '//go:cgo_ldflag only allowed in cgo-generated code|no Go files'
    
    rm _cgo_yy.go
    
    # Reject #cgo CFLAGS: -fplugin=foo.so
    cp x.go.txt x.go
    cp y_fplugin.go.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -fplugin=foo.so'
    
    # Reject #cgo CFLAGS: -lbar -fplugin=foo.so
    cp y_lbar_fplugin.go.txt y.go
    ! go build x
    stderr 'invalid flag in #cgo CFLAGS: -fplugin=foo.so'
    
    # Reject #cgo pkg-config: -foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 2.8K bytes
    - Viewed (0)
Back to top