- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 152 for openDir (0.36 sec)
-
src/internal/poll/fd_opendir_darwin.go
// license that can be found in the LICENSE file. package poll import ( "syscall" _ "unsafe" // for go:linkname ) // OpenDir returns a pointer to a DIR structure suitable for // ReadDir. In case of an error, the name of the failed // syscall is returned along with a syscall.Errno. func (fd *FD) OpenDir() (uintptr, string, error) { // fdopendir(3) takes control of the file descriptor, // so use a dup. fd2, call, err := fd.Dup()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:54:15 UTC 2022 - 918 bytes - Viewed (0) -
src/embed/embed.go
return n, io.EOF } return n, nil } // An openDir is a directory open for reading. type openDir struct { f *file // the directory file itself files []file // the directory contents offset int // the read offset, an index into the files slice } func (d *openDir) Close() error { return nil } func (d *openDir) Stat() (fs.FileInfo, error) { return d.f, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:42:51 UTC 2024 - 13.5K bytes - Viewed (0) -
src/os/dir_darwin.go
// If this file has no dirinfo, create one. var d *dirInfo for { d = f.dirinfo.Load() if d != nil { break } dir, call, errno := f.pfd.OpenDir() if errno != nil { return nil, nil, nil, &PathError{Op: call, Path: f.name, Err: errno} } d = &dirInfo{dir: dir} if f.dirinfo.CompareAndSwap(nil, d) { break } // We lost the race: try again.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 20:52:06 UTC 2024 - 3.5K bytes - Viewed (0) -
src/testing/fstest/testfs.go
files []string } // errorf adds an error to the list of errors. func (t *fsTester) errorf(format string, args ...any) { t.errors = append(t.errors, fmt.Errorf(format, args...)) } func (t *fsTester) openDir(dir string) fs.ReadDirFile { f, err := t.fsys.Open(dir) if err != nil { t.errorf("%s: Open: %w", dir, err) return nil } d, ok := f.(fs.ReadDirFile) if !ok { f.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.3K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/sftp/SFTPServer.groovy
expectations << new SftpExpectOnePath(SftpConstants.SSH_FXP_MKDIR, "MKDIR", path) } void expectOpendir(String path) { expectations << new SftpExpectOneOpen(SftpConstants.SSH_FXP_OPENDIR, "OPENDIR", path) } void allowReaddir(String path) { expectations << new SftpAllowHandle(SftpConstants.SSH_FXP_READDIR, path) } void allowWrite(String path) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 17.1K bytes - Viewed (0) -
src/syscall/fs_wasip1.go
func fd_prestat_dir_name(fd int32, path unsafe.Pointer, pathLen size) Errno type opendir struct { fd int32 name string } // List of preopen directories that were exposed by the runtime. The first one // is assumed to the be root directory of the file system, and others are seen // as mount points at sub paths of the root. var preopens []opendir // Current working directory. We maintain this as a string and resolve paths in
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24.1K bytes - Viewed (0) -
src/os/dir.go
// If an error occurs reading the directory, // ReadDir returns the entries it was able to read before the error, // along with the error. func ReadDir(name string) ([]DirEntry, error) { f, err := openDir(name) if err != nil { return nil, err } defer f.Close() dirs, err := f.ReadDir(-1) slices.SortFunc(dirs, func(a, b DirEntry) int { return bytealg.CompareString(a.Name(), b.Name()) })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.1K bytes - Viewed (0) -
src/os/file.go
return nil, err } f.appendMode = flag&O_APPEND != 0 return f, nil } // openDir opens a file which is assumed to be a directory. As such, it skips // the syscalls that make the file descriptor non-blocking as these take time // and will fail on file descriptors for directories. func openDir(name string) (*File, error) { testlog.Open(name) return openDirNolog(name) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 23:07:37 UTC 2024 - 25.4K bytes - Viewed (0) -
src/os/os_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 83.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go
} msg.Iov = &iov msg.Iovlen = 1 if n, err = sendmsg(fd, &msg, flags); err != nil { return 0, err } if len(oob) > 0 && len(p) == 0 { n = 0 } return n, nil } func Opendir(name string) (uintptr, error) { p, err := BytePtrFromString(name) if err != nil { return 0, err } err = nil runtime.EnterSyscall()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 84.4K bytes - Viewed (0)