Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 838 for ncgo (0.06 sec)

  1. src/cmd/go/testdata/script/list_constraints.txt

    stdout '^C cgoimport cgotag suffix tag $'
    
    # Disabling cgo should exclude cgo files and their imports.
    env CGO_ENABLED=0
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    stdout 'empty.go suffix_linux.go tag.go'
    go list -f '{{range .CgoFiles}}{{.}} {{end}}'
    ! stdout .
    go list -f '{{range .Imports}}{{.}} {{end}}'
    stdout '^suffix tag $'
    
    # Changing OS should exclude linux sources.
    env GOOS=darwin
    go list -f '{{range .GoFiles}}{{.}} {{end}}'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 04 23:54:27 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  2. test/fixedbugs/bug514.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    package main
    
    import "runtime/cgo"
    
    type iface interface {
    	Get() int
    }
    
    type notInHeap struct {
    	_ cgo.Incomplete
    	i int
    }
    
    type myInt struct {
    	f *notInHeap
    }
    
    func (mi myInt) Get() int {
    	return int(mi.f.i)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 15:27:18 UTC 2022
    - 782 bytes
    - Viewed (0)
  3. src/os/user/lookup_stubs.go

    // license that can be found in the LICENSE file.
    
    //go:build (!cgo && !darwin && !windows && !plan9) || android || (osusergo && !windows && !plan9)
    
    package user
    
    import (
    	"fmt"
    	"os"
    	"runtime"
    	"strconv"
    )
    
    var (
    	// unused variables (in this implementation)
    	// modified during test to exercise code paths in the cgo implementation.
    	userBuffer  = 0
    	groupBuffer = 0
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 07 16:09:09 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  4. src/net/main_conf_test.go

    	if !cgoAvailable {
    		t.Skip("cgo resolver not available")
    	}
    	defer forceCgoDNS()()
    	order, _ := systemConf().hostLookupOrder(nil, "go.dev")
    	if order != hostLookupCgo {
    		t.Fatalf("hostLookupOrder returned: %v, want cgo", order)
    	}
    	order, _ = systemConf().addrLookupOrder(nil, "192.0.2.1")
    	if order != hostLookupCgo {
    		t.Fatalf("addrLookupOrder returned: %v, want cgo", order)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:29:27 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/ldflag.txt

    # Issue #42565
    
    [!cgo] skip
    
    # We can't build package bad, which uses #cgo LDFLAGS.
    cd bad
    ! go build
    stderr no-such-warning
    
    # We can build package ok with the same flags in CGO_LDFLAGS.
    env CGO_LDFLAGS=-Wno-such-warning -Wno-unknown-warning-option
    cd ../ok
    go build
    
    # Build a main program that actually uses LDFLAGS.
    cd ..
    go build -ldflags=-v
    
    # Because we passed -v the Go linker should print the external linker
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Nov 14 14:11:56 UTC 2020
    - 762 bytes
    - Viewed (0)
  6. src/net/cgo_unix_cgo_resn.go

    // res_nsearch, for cgo systems where that's available.
    
    //go:build cgo && !netgo && unix && !(darwin || linux || openbsd)
    
    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include <unistd.h>
    #include <string.h>
    #include <arpa/nameser.h>
    #include <resolv.h>
    
    #cgo !aix,!dragonfly,!freebsd LDFLAGS: -lresolv
    */
    import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 979 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/toolexec.txt

    # are run is irrelevant here.
    # Finally, note that asm and cgo are run twice.
    
    go build -toolexec=$PWD/mytool
    [GOARCH:amd64] stderr -count=2 '^asm'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main/withasm"$'
    stderr -count=1 '^compile'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main/withasm"$'
    [cgo] stderr -count=2 '^cgo'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main/withcgo"$'
    [cgo] stderr -count=1 '^compile'${GOEXE}' TOOLEXEC_IMPORTPATH="test/main/withcgo"$'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  8. src/cmd/gofmt/long_test.go

    	if testing.Short() {
    		return
    	}
    
    	if *ngo < 1 {
    		*ngo = 1 // make sure test is run
    	}
    	if *verbose {
    		fmt.Printf("running test using %d goroutines\n", *ngo)
    	}
    
    	// generate filenames
    	filenames := make(chan string, 32)
    	go genFilenames(t, filenames)
    
    	// launch test goroutines
    	done := make(chan int)
    	for i := 0; i < *ngo; i++ {
    		go testFiles(t, filenames, done)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/test/issue7234_test.go

    // This test actually doesn't have anything to do with cgo.  It is a
    // test of https://golang.org/issue/7234, a compiler/linker bug in
    // handling string constants when using -linkmode=external.  The test
    // is in this directory because we routinely test -linkmode=external
    // here.
    
    var v7234 = [...]string{"runtime/cgo"}
    
    func Test7234(t *testing.T) {
    	if v7234[0] != "runtime/cgo" {
    		t.Errorf("bad string constant %q", v7234[0])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 634 bytes
    - Viewed (0)
  10. src/net/cgo_unix_cgo_res.go

    // license that can be found in the LICENSE file.
    
    // res_search, for cgo systems where that is thread-safe.
    
    //go:build cgo && !netgo && (linux || openbsd)
    
    package net
    
    /*
    #include <sys/types.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <netdb.h>
    #include <unistd.h>
    #include <string.h>
    #include <arpa/nameser.h>
    #include <resolv.h>
    
    #cgo !android,!openbsd LDFLAGS: -lresolv
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:50:56 UTC 2024
    - 892 bytes
    - Viewed (0)
Back to top