Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for ino (0.7 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. 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)
  4. 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)
  5. src/os/dir_darwin.go

    		//
    		//   Users of getdirentries() should skip entries with d_fileno = 0,
    		//   as such entries represent files which have been deleted but not
    		//   yet removed from the directory entry.
    		//
    		if dirent.Ino == 0 {
    			continue
    		}
    		name := (*[len(syscall.Dirent{}.Name)]byte)(unsafe.Pointer(&dirent.Name))[:]
    		for i, c := range name {
    			if c == 0 {
    				name = name[:i]
    				break
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/fakes_test.go

    	if err != nil {
    		return nil, err
    	}
    	return &fakeFileFakeFI{FileInfo: fi}, nil
    }
    
    type fakeFileFakeFI struct {
    	fs.FileInfo
    }
    
    func (f *fakeFileFakeFI) Sys() any {
    	return &syscall.Stat_t{Ino: 1}
    }
    
    // Open opens the named file.
    // When Open returns an error, it should be of type *PathError
    // with the Op field set to "open", the Path field set to name,
    // and the Err field describing the problem.
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 12 21:47:31 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/syscall/syscall_js.go

    	S_IRWXG = 070
    	S_IRGRP = 040
    	S_IWGRP = 020
    	S_IXGRP = 010
    
    	S_IRWXO = 07
    	S_IROTH = 04
    	S_IWOTH = 02
    	S_IXOTH = 01
    )
    
    type Stat_t struct {
    	Dev       int64
    	Ino       uint64
    	Mode      uint32
    	Nlink     uint32
    	Uid       uint32
    	Gid       uint32
    	Rdev      int64
    	Size      int64
    	Blksize   int32
    	Blocks    int32
    	Atime     int64
    	AtimeNsec int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
Back to top