Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for direntNamlen (0.29 sec)

  1. cmd/os-dirent_namelen_bsd.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // 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)
  2. cmd/os-dirent_namelen_linux.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"fmt"
    	"syscall"
    	"unsafe"
    )
    
    func direntNamlen(dirent *syscall.Dirent) (uint64, error) {
    	const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name))
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    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)
  3. cmd/os_unix.go

    		// to handle such files, MinIO is only interested in
    		// 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)
Back to top