Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for netgo (0.04 sec)

  1. src/net/conf_test.go

    	attempts: 2,
    	err:      fs.ErrNotExist,
    }
    
    func TestConfHostLookupOrder(t *testing.T) {
    	// These tests are written for a system with cgo available,
    	// without using the netgo tag.
    	if netGoBuildTag {
    		t.Skip("skipping test because net package built with netgo tag")
    	}
    	if !cgoAvailable {
    		t.Skip("skipping test because cgo resolver not available")
    	}
    
    	tests := []struct {
    		name      string
    		c         *conf
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:46:36 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. src/net/main_conf_test.go

    	c := systemConf()
    	oldGo := c.netGo
    	oldCgo := c.netCgo
    	fixup := func() {
    		c.netGo = oldGo
    		c.netCgo = oldCgo
    	}
    	c.netGo = true
    	c.netCgo = false
    	return fixup
    }
    
    // forceCgoDNS forces the resolver configuration to use the cgo resolver
    // and returns a fixup function to restore the old settings.
    func forceCgoDNS() func() {
    	c := systemConf()
    	oldGo := c.netGo
    	oldCgo := c.netCgo
    	fixup := func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:29:27 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/net/netgo_netcgo.go

    // license that can be found in the LICENSE file.
    
    //go:build netgo && netcgo
    
    package net
    
    func init() {
    	// This will give a compile time error about the unused constant.
    	// The advantage of this approach is that the gc compiler
    	// actually prints the constant, making the problem obvious.
    	"Do not use both netgo and netcgo build tags."
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 453 bytes
    - Viewed (0)
  4. pkg/test/fakes/gce_metadata_server/Makefile

    TAG := 1.2
    
    all: build_and_push clean
    
    build_and_push:
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o main-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    	docker buildx build --platform=linux/amd64,linux/arm64  $(MD_PATH) -t $(IMG):$(TAG) --push
    
    clean:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/net/cgo_stub.go

    // This file holds stub versions of the cgo functions called on Unix systems.
    // We build this file:
    // - if using the netgo build tag on a Unix system
    // - on a Unix system without the cgo resolver functions
    //   (Darwin always provides the cgo functions, in cgo_unix_syscall.go)
    // - on wasip1, where cgo is never available
    
    //go:build (netgo && unix) || (unix && !cgo && !darwin) || js || wasip1
    
    package net
    
    import "context"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. src/net/conf.go

    	dnsMode, debugLevel := goDebugNetDNS()
    	confVal.netGo = netGoBuildTag || dnsMode == "go"
    	confVal.netCgo = netCgoBuildTag || dnsMode == "cgo"
    	confVal.dnsDebugLevel = debugLevel
    
    	if confVal.dnsDebugLevel > 0 {
    		defer func() {
    			if confVal.dnsDebugLevel > 1 {
    				println("go package net: confVal.netCgo =", confVal.netCgo, " netGo =", confVal.netGo)
    			}
    			switch {
    			case confVal.netGo:
    				if netGoBuildTag {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  7. pkg/test/fakes/imageregistry/Makefile

    $(MD_PATH)/$(BIN_NAME)-amd64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o $(BIN_NAME)-amd64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    $(MD_PATH)/$(BIN_NAME)-arm64: $(MD_PATH)/main.go
    	cd $(MD_PATH) && CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o $(BIN_NAME)-arm64 -a -tags netgo -ldflags '-w -extldflags "-static"' main.go
    
    build: $(MD_PATH)/$(BIN_NAME)-amd64  $(MD_PATH)/$(BIN_NAME)-arm64
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 17 16:29:18 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  8. src/net/netgo_on.go

    // Copyright 2023 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.
    
    //go:build netgo
    
    package net
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 218 bytes
    - Viewed (0)
  9. src/net/cgo_bsd.go

    // Copyright 2011 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.
    
    //go:build cgo && !netgo && (dragonfly || freebsd)
    
    package net
    
    /*
    #include <netdb.h>
    */
    import "C"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 21:05:53 UTC 2022
    - 343 bytes
    - Viewed (0)
  10. src/net/netgo_off.go

    // Copyright 2023 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.
    
    //go:build !netgo
    
    package net
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 22:26:09 UTC 2023
    - 220 bytes
    - Viewed (0)
Back to top