Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 654 for dirent (0.12 sec)

  1. 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
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 982 bytes
    - Viewed (0)
  2. cmd/os_unix.go

    	}
    	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)
    	if direntInode(dirent) == 0 { // File absent in directory.
    		return
    	}
    	switch dirent.Type {
    	case syscall.DT_REG:
    		typ = 0
    	case syscall.DT_DIR:
    		typ = os.ModeDir
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. api/go1.12.txt

    pkg syscall (freebsd-386), func Mknod(string, uint32, uint64) error
    pkg syscall (freebsd-386), type Dirent struct, Fileno uint64
    pkg syscall (freebsd-386), type Dirent struct, Namlen uint16
    pkg syscall (freebsd-386), type Dirent struct, Off int64
    pkg syscall (freebsd-386), type Dirent struct, Pad0 uint8
    pkg syscall (freebsd-386), type Dirent struct, Pad1 uint16
    pkg syscall (freebsd-386), type Stat_t struct, Atim_ext int32
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Jan 02 21:21:53 UTC 2019
    - 13.5K bytes
    - Viewed (0)
  4. cmd/os-dirent_namelen_linux.go

    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))
    	limit := dirent.Reclen - fixedHdr
    	if limit > nameBufLen {
    		limit = nameBufLen
    	}
    	// Avoid bugs in long file names
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. cmd/os-dirent_ino.go

    //go:build (linux || darwin) && !appengine
    // +build linux darwin
    // +build !appengine
    
    package cmd
    
    import "syscall"
    
    func direntInode(dirent *syscall.Dirent) uint64 {
    	return dirent.Ino
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 953 bytes
    - Viewed (0)
  6. api/except.txt

    pkg syscall (freebsd-386), const O_CLOEXEC = 0
    pkg syscall (freebsd-386), func Fchflags(string, int) error
    pkg syscall (freebsd-386), func Mknod(string, uint32, int) error
    pkg syscall (freebsd-386), type Dirent struct, Fileno uint32
    pkg syscall (freebsd-386), type Dirent struct, Namlen uint8
    pkg syscall (freebsd-386), type Stat_t struct, Blksize uint32
    pkg syscall (freebsd-386), type Stat_t struct, Dev uint32
    pkg syscall (freebsd-386), type Stat_t struct, Gen uint32
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sun Jun 16 23:08:08 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  7. cmd/os-dirent_fileino.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import "syscall"
    
    func direntInode(dirent *syscall.Dirent) uint64 {
    	return uint64(dirent.Fileno)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 19 01:35:22 UTC 2021
    - 950 bytes
    - Viewed (0)
  8. api/go1.2.txt

    pkg syscall (netbsd-386), type Dirent struct
    pkg syscall (netbsd-386), type Dirent struct, Fileno uint64
    pkg syscall (netbsd-386), type Dirent struct, Name [512]int8
    pkg syscall (netbsd-386), type Dirent struct, Namlen uint16
    pkg syscall (netbsd-386), type Dirent struct, Pad_cgo_0 [3]uint8
    pkg syscall (netbsd-386), type Dirent struct, Reclen uint16
    pkg syscall (netbsd-386), type Dirent struct, Type uint8
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 18 04:36:59 UTC 2013
    - 1.9M bytes
    - Viewed (0)
  9. api/go1.3.txt

    pkg syscall (openbsd-amd64), type Dirent struct, Fileno uint64
    pkg syscall (openbsd-amd64), type Dirent struct, Off int64
    pkg syscall (openbsd-amd64), type Dirent struct, X__d_padding [4]uint8
    pkg syscall (openbsd-amd64), type FdSet struct, Bits [32]uint32
    pkg syscall (openbsd-amd64), type Kevent_t struct, Data int64
    pkg syscall (openbsd-amd64), type Kevent_t struct, Ident uint64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg syscall (darwin-386), type Dirent struct
    pkg syscall (darwin-386), type Dirent struct, Ino uint64
    pkg syscall (darwin-386), type Dirent struct, Name [1024]int8
    pkg syscall (darwin-386), type Dirent struct, Namlen uint16
    pkg syscall (darwin-386), type Dirent struct, Pad_cgo_0 [3]uint8
    pkg syscall (darwin-386), type Dirent struct, Reclen uint16
    pkg syscall (darwin-386), type Dirent struct, Seekoff uint64
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top