Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for stateLineIdx (0.1 sec)

  1. src/runtime/testdata/testprog/syscalls_linux.go

    	// Find the State line.
    	stateLineIdx := -1
    	for i, line := range lines {
    		if bytes.HasPrefix(line, []byte("State:")) {
    			stateLineIdx = i
    			break
    		}
    	}
    	if stateLineIdx < 0 {
    		// Malformed status file?
    		return false, false, fmt.Errorf("unexpected status file format: %s:\n%s", statusFile, status)
    	}
    	stateLine := bytes.SplitN(lines[stateLineIdx], []byte{':'}, 2)
    	if len(stateLine) != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:00:09 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top