Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 37 for sysconf (0.13 sec)

  1. src/net/dnsclient_unix.go

    		var mtime time.Time
    		if fi, err := os.Stat(name); err == nil {
    			mtime = fi.ModTime()
    		}
    		if mtime.Equal(conf.dnsConfig.Load().mtime) {
    			return
    		}
    	}
    
    	dnsConf := dnsReadConfig(name)
    	conf.dnsConfig.Store(dnsConf)
    }
    
    func (conf *resolverConfig) tryAcquireSema() bool {
    	select {
    	case conf.ch <- struct{}{}:
    		return true
    	default:
    		return false
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. src/fmt/example_test.go

    		}
    		fmt.Printf("%d: %s, %d, %f\n", n, a, b, c)
    	}
    	// Output:
    	// 3: dmr, 1771, 1.618034
    	// 3: ken, 271828, 3.141590
    }
    
    func ExampleSscanf() {
    	var name string
    	var age int
    	n, err := fmt.Sscanf("Kim is 22 years old", "%s is %d years old", &name, &age)
    	if err != nil {
    		panic(err)
    	}
    	fmt.Printf("%d: %s, %d\n", n, name, age)
    
    	// Output:
    	// 2: Kim, 22
    }
    
    func ExamplePrint() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 21:03:10 UTC 2019
    - 11.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/inline/inlheur/funcprops_test.go

    	}
    	// first line contains info about function: file/name/line
    	info := dr.curLine()
    	chunks := strings.Fields(info)
    	funcInlHeur.file = chunks[0]
    	funcInlHeur.fname = chunks[1]
    	if _, err := fmt.Sscanf(chunks[2], "%d", &funcInlHeur.line); err != nil {
    		return funcInlHeur, callsites, fmt.Errorf("scanning line %q: %v", info, err)
    	}
    	// consume comments until and including delimiter
    	for {
    		if !dr.scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 15K bytes
    - Viewed (0)
  4. cmd/notification.go

    }
    
    // GetSysConfig - Get information about system config
    // (only the config that are of concern to minio)
    func (sys *NotificationSys) GetSysConfig(ctx context.Context) []madmin.SysConfig {
    	reply := make([]madmin.SysConfig, len(sys.peerClients))
    
    	g := errgroup.WithNErrs(len(sys.peerClients))
    	for index, client := range sys.peerClients {
    		if client == nil {
    			continue
    		}
    		index := index
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 44.9K bytes
    - Viewed (0)
  5. src/fmt/scan.go

    	return Fscanln((*stringReader)(&str), a...)
    }
    
    // Sscanf scans the argument string, storing successive space-separated
    // values into successive arguments as determined by the format. It
    // returns the number of items successfully parsed.
    // Newlines in the input must match newlines in the format.
    func Sscanf(str string, format string, a ...any) (n int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. src/runtime/mstats.go

    		// * memstats.totalAlloc == totalAlloc
    		// * memstats.totalFree == totalFree
    		//
    		// Check if that's actually true.
    		//
    		// Prevent sysmon and the tracer from skewing the stats since they can
    		// act without synchronizing with a STW. See #64401.
    		lock(&sched.sysmonlock)
    		lock(&trace.lock)
    		if gcController.heapInUse.load() != uint64(consStats.inHeap) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  7. src/internal/trace/trace_test.go

    		scanner := bufio.NewScanner(bytes.NewReader(stderr))
    		pprofSamples := 0
    		pprofStacks := make(map[string]int)
    		for scanner.Scan() {
    			var stack string
    			var samples int
    			_, err := fmt.Sscanf(scanner.Text(), "%s\t%d", &stack, &samples)
    			if err != nil {
    				t.Fatalf("failed to parse CPU profile summary in stderr: %s\n\tfull:\n%s", scanner.Text(), stderr)
    			}
    			pprofStacks[stack] = samples
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  8. src/runtime/trace.go

    	// the world and see an unpaired sweep 'end' event. Other parts of the tracer rely on this.
    	stw := stopTheWorld(stwStartTrace)
    
    	// Prevent sysmon from running any code that could generate events.
    	lock(&sched.sysmonlock)
    
    	// Grab the minimum page heap address. All Ps are stopped, so it's safe to read this since
    	// nothing can allocate heap memory.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  9. src/runtime/gc_test.go

    			z []string
    		})
    		hugeSink = new(struct {
    			x float64
    			y [n]uintptr
    			z []string
    		})
    	}
    }
    
    func TestPeriodicGC(t *testing.T) {
    	if runtime.GOARCH == "wasm" {
    		t.Skip("no sysmon on wasm yet")
    	}
    
    	// Make sure we're not in the middle of a GC.
    	runtime.GC()
    
    	var ms1, ms2 runtime.MemStats
    	runtime.ReadMemStats(&ms1)
    
    	// Make periodic GC run continuously.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  10. misc/ios/go_ios_exec.go

    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		os.Stderr.Write(out)
    		return fmt.Errorf("xcrun simctl launch booted %q: %v", bundleID, err)
    	}
    	var processID int
    	var ignore string
    	if _, err := fmt.Sscanf(string(out), "%s %d", &ignore, &processID); err != nil {
    		return fmt.Errorf("runSimulator: couldn't find processID from `simctl launch`: %v (%q)", err, out)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 23.4K bytes
    - Viewed (0)
Back to top