Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,178 for Dirent (0.22 sec)

  1. src/cmd/go/script_test.go

    	localDir := filepath.Join(telemetryDir, "local")
    	dirents, err := os.ReadDir(localDir)
    	if err != nil {
    		if os.IsNotExist(err) {
    			return nil // The Go command didn't ever run so the local dir wasn't created
    		}
    		t.Fatalf("reading telemetry local dir: %v", err)
    	}
    	totals := map[string]uint64{}
    	for _, dirent := range dirents {
    		if dirent.IsDir() || !strings.HasSuffix(dirent.Name(), ".count") {
    			// not a counter file
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/syscall_freebsd.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: Thu Mar 07 05:26:45 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/syscall_dragonfly.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Fileno), unsafe.Sizeof(Dirent{}.Fileno))
    }
    
    func direntReclen(buf []byte) (uint64, bool) {
    	namlen, ok := direntNamlen(buf)
    	if !ok {
    		return 0, false
    	}
    	return (16 + namlen + 1 + 7) &^ 7, true
    }
    
    func direntNamlen(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Namlen), unsafe.Sizeof(Dirent{}.Namlen))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      close(src_fd);
      close(dst_fd);
      if (error_code != 0) {
        errno = error_code;
        return -1;
      } else {
        return 0;
      }
    }
    
    int RemoveSpecialDirectoryEntries(const struct dirent* entry) {
      return strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 16 05:36:52 UTC 2020
    - 2.1K bytes
    - Viewed (0)
  5. src/syscall/syscall_aix.go

    	}
    	return setgroups(len(a), &a[0])
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    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: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  6. src/syscall/types_freebsd.go

    */
    
    // +godefs map struct_in_addr [4]byte /* in_addr */
    // +godefs map struct_in6_addr [16]byte /* in6_addr */
    
    package syscall
    
    /*
    #define	_WANT_FREEBSD11_KEVENT	1
    
    #include <dirent.h>
    #include <fcntl.h>
    #include <signal.h>
    #include <termios.h>
    #include <stdio.h>
    #include <unistd.h>
    #include <sys/event.h>
    #include <sys/mman.h>
    #include <sys/mount.h>
    #include <sys/param.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    	return -1, ENOSYS
    }
    
    func direntIno(buf []byte) (uint64, bool) {
    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    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: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  8. src/syscall/syscall_solaris.go

    	return readInt(buf, unsafe.Offsetof(Dirent{}.Ino), unsafe.Sizeof(Dirent{}.Ino))
    }
    
    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
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  9. src/syscall/dirent_test.go

    }
    
    func TestDirentRepeat(t *testing.T) {
    	const N = 100
    	// Note: the size of the buffer is small enough that the loop
    	// below will need to execute multiple times. See issue #31368.
    	size := N * unsafe.Offsetof(syscall.Dirent{}.Name) / 4
    	if runtime.GOOS == "freebsd" || runtime.GOOS == "netbsd" {
    		if size < 1024 {
    			size = 1024 // DIRBLKSIZ, see issue 31403.
    		}
    	}
    
    	// Make a directory containing N files
    	d := t.TempDir()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. src/syscall/types_linux.go

    // +godefs map struct_in6_addr [16]byte /* in6_addr */
    
    package syscall
    
    /*
    #define _LARGEFILE_SOURCE
    #define _LARGEFILE64_SOURCE
    #define _FILE_OFFSET_BITS 64
    #define _GNU_SOURCE
    
    #include <dirent.h>
    #include <fcntl.h>
    #include <netinet/in.h>
    #include <netinet/tcp.h>
    #include <netpacket/packet.h>
    #include <signal.h>
    #include <stdio.h>
    #include <sys/epoll.h>
    #include <sys/inotify.h>
    #include <sys/mman.h>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 26 20:15:45 UTC 2022
    - 10.9K bytes
    - Viewed (0)
Back to top