Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for nameLen (0.19 sec)

  1. cmd/os-dirent_namelen_linux.go

    		limit = nameBufLen
    	}
    	// Avoid bugs in long file names
    	// https://github.com/golang/tools/commit/5f9a5413737ba4b4f692214aebee582b47c8be74
    	nameLen := bytes.IndexByte(nameBuf[:limit], 0)
    	if nameLen < 0 {
    		return 0, fmt.Errorf("failed to find terminating 0 byte in dirent")
    	}
    	return uint64(nameLen), nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 1.5K bytes
    - Viewed (0)
  2. cmd/os-dirent_namelen_bsd.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	return uint64(dirent.Namlen), nil
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Aug 19 01:35:22 GMT 2021
    - 982 bytes
    - Viewed (0)
  3. cmd/os_unix.go

    		// files and directories.
    		typ = unexpectedFileMode
    	}
    
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	nameLen, err := direntNamlen(dirent)
    	if err != nil {
    		return consumed, nil, typ, err
    	}
    
    	return consumed, nameBuf[:nameLen], typ, nil
    }
    
    // readDirFn applies the fn() function on each entries at dirPath, doesn't recurse into
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  4. internal/event/config.go

    		return err
    	}
    
    	// FilterRuleList must have only one prefix and/or suffix.
    	nameSet := set.NewStringSet()
    	for _, rule := range rules.Rules {
    		if nameSet.Contains(rule.Name) {
    			if rule.Name == "prefix" {
    				return &ErrFilterNamePrefix{}
    			}
    
    			return &ErrFilterNameSuffix{}
    		}
    
    		nameSet.Add(rule.Name)
    	}
    
    	*ruleList = FilterRuleList(rules)
    	return nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 16 17:28:29 GMT 2021
    - 8.4K bytes
    - Viewed (0)
  5. internal/config/help.go

    // DefaultComment used across all sub-systems.
    const DefaultComment = "optionally add a comment to this setting"
    
    // Region help is documented in default config
    var (
    	SiteHelp = HelpKVS{
    		HelpKV{
    			Key:         NameKey,
    			Type:        "string",
    			Description: `name for the site e.g. "cal-rack0"`,
    			Optional:    true,
    		},
    		HelpKV{
    			Key:         RegionKey,
    			Type:        "string",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Jun 23 14:45:27 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. internal/config/config.go

    	Enable  = madmin.EnableKey
    	Comment = madmin.CommentKey
    
    	EnvSeparator = "="
    
    	// Enable values
    	EnableOn  = madmin.EnableOn
    	EnableOff = madmin.EnableOff
    
    	RegionKey  = "region"
    	NameKey    = "name"
    	RegionName = "name"
    	AccessKey  = "access_key"
    	SecretKey  = "secret_key"
    	License    = "license" // Deprecated Dec 2021
    	APIKey     = "api_key"
    	Proxy      = "proxy"
    )
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
Back to top