Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 838 for ncgo (0.09 sec)

  1. 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)
  2. 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)
  3. src/cmd/cgo/out.go

    		fmt.Fprintf(fm, "void _cgo_release_context(size_t ctxt __attribute__((unused))) { }\n")
    		fmt.Fprintf(fm, "char* _cgo_topofstack(void) { return (char*)0; }\n")
    	} else {
    		// If we're not importing runtime/cgo, we *are* runtime/cgo,
    		// which provides these functions. We just need a prototype.
    		fmt.Fprintf(fm, "void crosscall2(void(*fn)(void*), void *a, int c, size_t ctxt);\n")
    		fmt.Fprintf(fm, "size_t _cgo_wait_runtime_init_done(void);\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/go/testdata/script/cgo_stale.txt

    go build -x .
    stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    ! stale runtime/cgo
    
    
    # After runtime/cgo has been rebuilt and cached, it should not be rebuilt again.
    
    go build -x .
    ! stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    ! stale runtime/cgo
    
    
    -- go.mod --
    module example.com/m
    
    go 1.17
    -- m.go --
    package m
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 22:43:41 UTC 2022
    - 888 bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testnocgo/nocgo_test.go

    // Copyright 2014 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 nocgo
    
    import "testing"
    
    func TestNop(t *testing.T) {
    	i := NoCgo()
    	if i != 42 {
    		t.Errorf("got %d, want %d", i, 42)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 292 bytes
    - Viewed (0)
  7. api/go1.txt

    pkg syscall (darwin-386-cgo), const AF_PPP ideal-int
    pkg syscall (darwin-386-cgo), const AF_PUP ideal-int
    pkg syscall (darwin-386-cgo), const AF_RESERVED_36 ideal-int
    pkg syscall (darwin-386-cgo), const AF_ROUTE ideal-int
    pkg syscall (darwin-386-cgo), const AF_SIP ideal-int
    pkg syscall (darwin-386-cgo), const AF_SNA ideal-int
    pkg syscall (darwin-386-cgo), const AF_SYSTEM ideal-int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt

    ! stdout '"sync"'
    
    	# Experiment: the implicitly-imported package "runtime/cgo" is also a test variant,
    	# because "runtime/cgo" also depends on "runtime".
    stdout '"runtime/cgo \[runtime\.test\]"'
    ! stdout '"runtime/cgo"'
    
    
    # Because the import of "runtime/cgo" in the cgo-generated file actually refers
    # to "runtime/cgo [runtime.test]", the latter should be listed in the ImportMap.
    # BUG(#46462): Today, it is not.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testso/testdata/so/cgoso.go

    // to test correct handling of LDFLAGS.
    #cgo linux LDFLAGS: -L. -lcgosotest
    #cgo dragonfly LDFLAGS: -L. -l cgosotest
    #cgo freebsd LDFLAGS: -L. -l cgosotest
    #cgo openbsd LDFLAGS: -L. -l cgosotest
    #cgo solaris LDFLAGS: -L. -lcgosotest
    #cgo netbsd LDFLAGS: -L. libcgosotest.so
    #cgo darwin LDFLAGS: -L. libcgosotest.dylib
    #cgo windows LDFLAGS: -L. libcgosotest.a
    #cgo aix LDFLAGS: -L. -l cgosotest
    
    void init(void);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:41 UTC 2023
    - 761 bytes
    - Viewed (0)
  10. 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)
Back to top