Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 833 for stdat (0.05 sec)

  1. src/cmd/link/internal/ld/fallocate_test.go

    	for _, sz := range []int64{1 << 20, 2 << 20, 3 << 20} {
    		err = out.Mmap(uint64(sz))
    		if err != nil {
    			t.Fatalf("Mmap failed: %v", err)
    		}
    		stat, err := os.Stat(filename)
    		if err != nil {
    			t.Fatalf("Stat failed: %v", err)
    		}
    		if got := stat.Size(); got != sz {
    			t.Errorf("unexpected file size: got %d, want %d", got, sz)
    		}
    		// The number of blocks must be enough for the requested size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 05 14:17:36 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. cmd/metrics-v3-system-process.go

    )
    
    func loadProcStatMetrics(ctx context.Context, stat procfs.ProcStat, m MetricValues) {
    	if stat.CPUTime() > 0 {
    		m.Set(processCPUTotalSeconds, float64(stat.CPUTime()))
    	}
    
    	if stat.ResidentMemory() > 0 {
    		m.Set(processResidentMemoryBytes, float64(stat.ResidentMemory()))
    	}
    
    	if stat.VirtualMemory() > 0 {
    		m.Set(processVirtualMemoryBytes, float64(stat.VirtualMemory()))
    	}
    
    	startTime, err := stat.StartTime()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 26 16:07:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. src/net/internal/socktest/switch.go

    }
    
    type stats map[Cookie]*Stat
    
    func (st stats) getLocked(c Cookie) *Stat {
    	s, ok := st[c]
    	if !ok {
    		s = &Stat{Family: c.Family(), Type: c.Type(), Protocol: c.Protocol()}
    		st[c] = s
    	}
    	return s
    }
    
    // A FilterType represents a filter type.
    type FilterType int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/daemon/DaemonRegistryStateProbe.groovy

            if (OperatingSystem.current().isLinux() || OperatingSystem.current().isMacOsX()) {
                def stat = NativeServicesTestFixture.instance.get(Stat)
                assert stat.getUnixMode(registryFile) == 0600 // user read-write
                assert stat.getUnixMode(registryFile.parentFile) == 0700 // user read-write-execute
            }
        }
    
        @Override
        State getCurrentState() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AttributeBasedFileVisitDetails.java

        public AttributeBasedFileVisitDetails(File file, RelativePath relativePath, AtomicBoolean stop, Chmod chmod, Stat stat, BasicFileAttributes attributes) {
            super(file, relativePath, stop, chmod, stat);
            this.attributes = attributes;
        }
    
        @Override
        public long getSize() {
            return attributes.size();
        }
    
        @Override
        public long getLastModified() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/cri_stats_provider_windows_test.go

    	eps := hcsshim.HNSEndpointStats{}
    	for _, c := range s.containers {
    		for _, stat := range c.hcsStats {
    			if endpointName == stat.InstanceId {
    				eps = hcsshim.HNSEndpointStats{
    					EndpointID:      stat.EndpointId,
    					BytesSent:       stat.BytesSent,
    					BytesReceived:   stat.BytesReceived,
    					PacketsReceived: stat.PacketsReceived,
    					PacketsSent:     stat.PacketsSent,
    				}
    			}
    		}
    	}
    
    	return &eps, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 17 00:02:10 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/internal/testlog/log.go

    }
    
    // Open calls Logger().Open, if a logger has been set.
    func Open(name string) {
    	if log := Logger(); log != nil {
    		log.Open(name)
    	}
    }
    
    // Stat calls Logger().Stat, if a logger has been set.
    func Stat(name string) {
    	if log := Logger(); log != nil {
    		log.Stat(name)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 11 19:08:32 UTC 2017
    - 1.9K bytes
    - Viewed (0)
  8. src/syscall/syscall_linux_arm64.go

    func Stat(path string, stat *Stat_t) (err error) {
    	return fstatat(_AT_FDCWD, path, stat, 0)
    }
    
    func Lchown(path string, uid int, gid int) (err error) {
    	return Fchownat(_AT_FDCWD, path, uid, gid, _AT_SYMLINK_NOFOLLOW)
    }
    
    func Lstat(path string, stat *Stat_t) (err error) {
    	return fstatat(_AT_FDCWD, path, stat, _AT_SYMLINK_NOFOLLOW)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 22:23:07 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go

    //sys	Shutdown(fd int, how int) (err error)
    //sys	Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)
    
    func Stat(path string, stat *Stat_t) (err error) {
    	// Use fstatat, because Android's seccomp policy blocks stat.
    	return Fstatat(AT_FDCWD, path, stat, 0)
    }
    
    //sys	Statfs(path string, buf *Statfs_t) (err error)
    //sys	SyncFileRange(fd int, off int64, n int64, flags int) (err error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  10. cmd/is-dir-empty_linux.go

    		entries, err := readDirN(dirname, 1)
    		if err != nil {
    			return false
    		}
    		return len(entries) == 0
    	}
    	var stat syscall.Stat_t
    	if err := syscall.Stat(dirname, &stat); err != nil {
    		return false
    	}
    	return stat.Mode&syscall.S_IFMT == syscall.S_IFDIR && stat.Nlink == 2
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Apr 05 15:17:08 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top