Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for direntType (0.16 sec)

  1. src/os/dirent_aix.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  2. src/os/dirent_js.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 678 bytes
    - Viewed (0)
  3. src/os/dirent_solaris.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	return ^FileMode(0) // unknown
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 759 bytes
    - Viewed (0)
  4. src/os/dirent_linux.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(syscall.Dirent{}.Name)), true
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	typ := buf[off]
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  5. src/os/dirent_openbsd.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	typ := buf[off]
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  6. src/os/dirent_freebsd.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	typ := buf[off]
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  7. src/os/dirent_netbsd.go

    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	typ := buf[off]
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  8. src/os/dirent_dragonfly.go

    	}
    	return (16 + namlen + 1 + 7) &^ 7, true
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	typ := buf[off]
    	switch typ {
    	case syscall.DT_BLK:
    		return ModeDevice
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.3K bytes
    - Viewed (0)
  9. src/os/dirent_wasip1.go

    	return sizeOfDirent + namelen, ok
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    	off := unsafe.Offsetof(syscall.Dirent{}.Type)
    	if off >= uintptr(len(buf)) {
    		return ^FileMode(0) // unknown
    	}
    	switch syscall.Filetype(buf[off]) {
    	case syscall.FILETYPE_BLOCK_DEVICE:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/os/dir_unix.go

    		if n > 0 { // see 'n == 0' comment above
    			n--
    		}
    		if mode == readdirName {
    			names = append(names, string(name))
    		} else if mode == readdirDirEntry {
    			de, err := newUnixDirent(f.name, string(name), direntType(rec))
    			if IsNotExist(err) {
    				// File disappeared between readdir and stat.
    				// Treat as if it didn't exist.
    				continue
    			}
    			if err != nil {
    				return nil, dirents, nil, err
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top