Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 495 for reclen (0.55 sec)

  1. src/os/dirent_netbsd.go

    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Fileno), unsafe.Sizeof(syscall.Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Reclen), unsafe.Sizeof(syscall.Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(syscall.Dirent{}.Namlen), unsafe.Sizeof(syscall.Dirent{}.Namlen))
    }
    
    func direntType(buf []byte) FileMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 00:59:20 UTC 2020
    - 1.2K bytes
    - Viewed (0)
  2. src/syscall/syscall_js.go

    const direntSize = 8 + 8 + 2 + 256
    
    type Dirent struct {
    	Reclen uint16
    	Name   [256]byte
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return 1, true
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. cmd/os_unix.go

    	if v := unsafe.Offsetof(dirent.Reclen) + unsafe.Sizeof(dirent.Reclen); uintptr(len(buf)) < v {
    		return consumed, nil, typ, fmt.Errorf("buf size of %d smaller than dirent header size %d", len(buf), v)
    	}
    	if len(buf) < int(dirent.Reclen) {
    		return consumed, nil, typ, fmt.Errorf("buf size %d < record length %d", len(buf), dirent.Reclen)
    	}
    	consumed = int(dirent.Reclen)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go

    		e := readdir_r(d, &entry, &entryp)
    		if e != 0 {
    			return n, errnoErr(e)
    		}
    		if entryp == nil {
    			break
    		}
    		if skip > 0 {
    			skip--
    			cnt++
    			continue
    		}
    
    		reclen := int(entry.Reclen)
    		if reclen > len(buf) {
    			// Not enough room. Return for now.
    			// The counter will let us know where we should start up again.
    			// Note: this strategy for suspending in the middle and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 20.7K bytes
    - Viewed (0)
  5. cmd/os-dirent_namelen_linux.go

    	const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name))
    	nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0]))
    	const nameBufLen = uint16(len(nameBuf))
    	limit := dirent.Reclen - fixedHdr
    	if limit > nameBufLen {
    		limit = nameBufLen
    	}
    	// Avoid bugs in long file names
    	// https://github.com/golang/tools/commit/5f9a5413737ba4b4f692214aebee582b47c8be74
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  6. src/syscall/getdirentries_test.go

    			// we have cap(buf) < Sizeof(Dirent). So use an appropriate slice to copy from data.
    			var dirent syscall.Dirent
    			copy((*[unsafe.Sizeof(dirent)]byte)(unsafe.Pointer(&dirent))[:], data)
    
    			data = data[dirent.Reclen:]
    			name := make([]byte, dirent.Namlen)
    			for i := 0; i < int(dirent.Namlen); i++ {
    				name[i] = byte(dirent.Name[i])
    			}
    			names2 = append(names2, string(name))
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  7. src/syscall/syscall_netbsd.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    func Pipe(p []int) (err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 18:12:35 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go

    	Fsid    uint64
    	Namelen uint64
    	Frsize  uint64
    	Flags   uint64
    	_       [4]uint64
    }
    
    type direntLE struct {
    	Reclen uint16
    	Namlen uint16
    	Ino    uint32
    	Extra  uintptr
    	Name   [256]byte
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Name   [256]uint8
    	_      [5]byte
    }
    
    type FdSet struct {
    	Bits [64]int32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/syscall/syscall_aix.go

    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	reclen, ok := direntReclen(buf)
    	if !ok {
    		return 0, false
    	}
    	return reclen - uint64(unsafe.Offsetof(Dirent{}.Name)), true
    }
    
    func Gettimeofday(tv *Timeval) (err error) {
    	err = gettimeofday(tv, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  10. src/syscall/syscall_openbsd.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Reclen), unsafe.Sizeof(Dirent{}.Reclen))
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    func Pipe(p []int) error {
    	return Pipe2(p, 0)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 10:34:00 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top