- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for direntNamlen (0.05 seconds)
-
cmd/os-dirent_namelen_bsd.go
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 982 bytes - Click Count (0) -
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))
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Thu Aug 19 01:35:22 GMT 2021 - 1.5K bytes - Click Count (0) -
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
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 9.3K bytes - Click Count (0)