Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsType (0.06 sec)

  1. src/cmd/cgo/gcc.go

    			break
    		}
    		if p.isUnsafeData(c.Fun, true) {
    			return true
    		}
    		if !p.isType(c.Fun) {
    			break
    		}
    		x = c.Args[0]
    	}
    	return false
    }
    
    // isType reports whether the expression is definitely a type.
    // This is conservative--it returns false for an unknown identifier.
    func (p *Package) isType(t ast.Expr) bool {
    	switch t := t.(type) {
    	case *ast.SelectorExpr:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    		s.drivePath = ep.Path
    		return s, err
    	}
    
    	info, rootDrive, err := getDiskInfo(s.drivePath)
    	if err != nil {
    		return s, err
    	}
    
    	s.major = info.Major
    	s.minor = info.Minor
    	s.fsType = info.FSType
    
    	if rootDrive {
    		return s, errDriveIsRoot
    	}
    
    	// Sanitize before setting it
    	if info.NRRequests > 0 {
    		s.nrRequests = info.NRRequests
    	}
    
    	// We stagger listings only on HDDs.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top