Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for Younis (0.18 sec)

  1. src/bufio/bufio_test.go

    	}
    	b1.Flush()
    	if w1 != 3 {
    		t.Fatalf("flush 1200 + 1389 'x's: got %d writes, want 3", w1)
    	}
    }
    
    // A writeCountingDiscard is like io.Discard and counts the number of times
    // Write is called on it.
    type writeCountingDiscard int
    
    func (w *writeCountingDiscard) Write(p []byte) (int, error) {
    	*w++
    	return len(p), nil
    }
    
    type negativeReader int
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. internal/mountinfo/mountinfo_linux.go

    func checkCrossDevice(absPaths []string, mountsPath string) error {
    	mounts, err := readProcMounts(mountsPath)
    	if err != nil {
    		return err
    	}
    	for _, path := range absPaths {
    		if err := mounts.checkCrossMounts(path); err != nil {
    			return err
    		}
    	}
    	return nil
    }
    
    // CheckCrossDevice - check if given path has any sub-mounts in the input mounts list.
    func (mts mountInfos) checkCrossMounts(path string) error {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sun Jan 02 17:15:06 GMT 2022
    - 4.7K bytes
    - Viewed (0)
  3. istioctl/pkg/injector/injector-list.go

    }
    
    func renderCounts(injectedRevision string, counts revisionCount) string {
    	if counts.pods == 0 {
    		return "<no pods>"
    	}
    
    	podText := strconv.Itoa(counts.pods)
    	if counts.disabled > 0 {
    		podText += fmt.Sprintf(" (injection disabled: %d)", counts.disabled)
    	}
    	if counts.needsRestart > 0 {
    		podText += fmt.Sprintf(" NEEDS RESTART: %d", counts.needsRestart)
    	}
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Thu Jan 04 03:08:06 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  4. internal/mountinfo/mountinfo_others.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package mountinfo
    
    // CheckCrossDevice - check if any input path has multiple sub-mounts.
    // this is a dummy function and returns nil for now.
    func CheckCrossDevice(paths []string) error {
    	return nil
    }
    
    // IsLikelyMountPoint determines if a directory is a mountpoint.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  5. src/bytes/bytes.go

    	na := 0
    	for len(s) > 0 {
    		if na+1 >= n {
    			a[na] = s
    			na++
    			break
    		}
    		_, size = utf8.DecodeRune(s)
    		a[na] = s[0:size:size]
    		s = s[size:]
    		na++
    	}
    	return a[0:na]
    }
    
    // Count counts the number of non-overlapping instances of sep in s.
    // If sep is an empty slice, Count returns 1 + the number of UTF-8-encoded code points in s.
    func Count(s, sep []byte) int {
    	// special case
    	if len(sep) == 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/input.go

    // The opening parenthesis has been absorbed.
    func (in *Input) argsFor(macro *Macro) map[string][]Token {
    	var args [][]Token
    	// One macro argument per iteration. Collect them all and check counts afterwards.
    	for argNum := 0; ; argNum++ {
    		tokens, tok := in.collectArgument(macro)
    		args = append(args, tokens)
    		if tok == ')' {
    			break
    		}
    	}
    	// Zero-argument macros are tricky.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/parse.go

    			} else if nextReg != int(reg) {
    				p.errorf("incontiguous register in ARM64 register list: %s", name)
    			}
    			regCnt++
    			nextReg = (nextReg + 1) % 32
    		case sys.ARM:
    			// Parse the upper and lower bounds.
    			lo := p.registerNumber(tok.String())
    			hi := lo
    			if p.peek() == '-' {
    				p.next()
    				hi = p.registerNumber(p.next().String())
    			}
    			if hi < lo {
    				lo, hi = hi, lo
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. internal/mountinfo/mountinfo.go

    package mountinfo
    
    // mountInfo - This represents a single line in /proc/mounts.
    type mountInfo struct {
    	Device  string
    	Path    string
    	FSType  string
    	Options []string
    	Freq    string
    	Pass    string
    }
    
    func (m mountInfo) String() string {
    	return m.Path
    }
    
    // mountInfos - This represents the entire /proc/mounts.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.1K bytes
    - Viewed (0)
  9. cmd/metrics-realtime.go

    			if len(cm) == 1 {
    				m.Aggregated.CPU.TimesStat = &cm[0]
    			} else {
    				m.Errors = append(m.Errors, fmt.Sprintf("%s: Expected one CPU stat, got %d", byHostName, len(cm)))
    			}
    		}
    		cpuCount, err := c.Counts(true)
    		if err != nil {
    			m.Errors = append(m.Errors, fmt.Sprintf("%s: %v (cpuCount)", byHostName, err.Error()))
    		} else {
    			m.Aggregated.CPU.CPUCount = cpuCount
    		}
    
    		loadStat, err := load.Avg()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Apr 10 16:28:08 GMT 2024
    - 6.1K bytes
    - Viewed (0)
  10. cmd/endpoint-ellipses.go

    		}
    
    		// No automatic symmetry calculation expected, user is on their own
    		setSize = customSetDriveCount
    		globalCustomErasureDriveCount = true
    	} else {
    		// Returns possible set counts with symmetry.
    		setCounts = possibleSetCountsWithSymmetry(setCounts, argPatterns)
    
    		if len(setCounts) == 0 {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 21:22:47 GMT 2024
    - 14.8K bytes
    - Viewed (0)
Back to top