Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for ino (0.04 sec)

  1. src/syscall/dirent.go

    		if !ok || reclen > uint64(len(buf)) {
    			return origlen, count, names
    		}
    		rec := buf[:reclen]
    		buf = buf[reclen:]
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// See src/os/dir_unix.go for the reason why this condition is
    		// excluded on wasip1.
    		if ino == 0 && runtime.GOOS != "wasip1" { // File absent in directory.
    			continue
    		}
    		const namoff = uint64(unsafe.Offsetof(Dirent{}.Name))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:13:24 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. 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)
  3. cni/pkg/nodeagent/podcgroupns_linux.go

    package nodeagent
    
    import (
    	"fmt"
    	"io/fs"
    	"syscall"
    )
    
    func GetInode(fi fs.FileInfo) (uint64, error) {
    	if stat, ok := fi.Sys().(*syscall.Stat_t); ok {
    		return stat.Ino, nil
    	}
    	return 0, fmt.Errorf("unable to get inode")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 814 bytes
    - Viewed (0)
  4. src/os/dir_unix.go

    		}
    		rec := buf[:reclen]
    		d.bufp += int(reclen)
    		ino, ok := direntIno(rec)
    		if !ok {
    			break
    		}
    		// When building to wasip1, the host runtime might be running on Windows
    		// or might expose a remote file system which does not have the concept
    		// of inodes. Therefore, we cannot make the assumption that it is safe
    		// to skip entries with zero inodes.
    		if ino == 0 && runtime.GOOS != "wasip1" {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/syscall/syscall_wasip1.go

    	Ino uint64
    	// The length of the name of the directory entry.
    	Namlen uint32
    	// The type of the file referred to by this directory entry.
    	Type Filetype
    	// Name of the directory entry.
    	Name *byte
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go

    type Stat_t struct {
    	Dev     uint64
    	Ino     uint64
    	Mode    uint32
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    uint64
    	_       uint16
    	_       [4]byte
    	Size    int64
    	Blksize int32
    	_       [4]byte
    	Blocks  int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	_       uint32
    	_       uint32
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go

    }
    
    type Stat_t struct {
    	Dev     uint64
    	Ino     uint64
    	Nlink   uint64
    	Mode    uint32
    	Uid     uint32
    	Gid     uint32
    	_       int32
    	Rdev    uint64
    	Size    int64
    	Blksize int64
    	Blocks  int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	_       uint64
    	_       uint64
    	_       uint64
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go

    }
    
    type Stat_t struct {
    	Dev     uint64
    	Ino     uint64
    	Mode    uint32
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    uint64
    	_       uint64
    	Size    int64
    	Blksize int32
    	_       int32
    	Blocks  int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	_       [2]int32
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go

    	Rdev    uint64
    	_       uint16
    	_       [4]byte
    	Size    int64
    	Blksize int32
    	_       [4]byte
    	Blocks  int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	Ino     uint64
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    	Name   [256]uint8
    	_      [5]byte
    }
    
    type Flock_t struct {
    	Type   int16
    	Whence int16
    	_      [4]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go

    }
    
    type Stat_t struct {
    	Dev     uint64
    	Ino     uint64
    	Mode    uint32
    	Nlink   uint32
    	Uid     uint32
    	Gid     uint32
    	Rdev    uint64
    	_       uint64
    	Size    int64
    	Blksize int32
    	_       int32
    	Blocks  int64
    	Atim    Timespec
    	Mtim    Timespec
    	Ctim    Timespec
    	_       [2]int32
    }
    
    type Dirent struct {
    	Ino    uint64
    	Off    int64
    	Reclen uint16
    	Type   uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top