Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 175 for Unix (0.15 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

        return Files.createTempFile(tempDir, "test", ".test");
      }
    
      public void testByteSource_size_ofDirectory() throws IOException {
        try (FileSystem fs = Jimfs.newFileSystem(Configuration.unix())) {
          Path dir = fs.getPath("dir");
          Files.createDirectory(dir);
    
          ByteSource source = MoreFiles.asByteSource(dir);
    
          assertThat(source.sizeIfKnown()).isAbsent();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 29 22:57:05 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/ztunnelserver.go

    	if err != nil {
    		return nil, fmt.Errorf("failed to resolve unix addr: %w", err)
    	}
    	// remove potentially existing address
    	// Remove unix socket before use, if one is leftover from previous CNI restart
    	if err := os.Remove(addr); err != nil && !os.IsNotExist(err) {
    		// Anything other than "file not found" is an error.
    		return nil, fmt.Errorf("failed to remove unix://%s: %w", addr, err)
    	}
    
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. apache-maven/README.txt

      Operating System:
        Windows:
          Windows 2000 or above.
        Unix based systems (Linux, Solaris and Mac OS X) and others:
          No minimum requirement.
    
      Installing Maven
      ----------------
    
      1) Unpack the archive where you would like to store the binaries, e.g.:
    
        Unix-based operating systems (Linux, Solaris and Mac OS X)
          tar zxvf apache-maven-4.x.y.tar.gz
        Windows
    Plain Text
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Mar 13 20:21:20 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  4. cmd/bucket-stats.go

    func (l *ReplicationLastHour) addsize(sz int64) {
    	min := time.Now().Unix() / 60
    	l.forwardTo(min)
    	winIdx := min % 60
    	l.Totals[winIdx].merge(AccElem{Total: min, Size: sz, N: 1})
    	l.LastMin = min
    }
    
    // Merge all recorded counts of last hour into one
    func (l *ReplicationLastHour) getTotal() AccElem {
    	var res AccElem
    	min := time.Now().Unix() / 60
    	l.forwardTo(min)
    	for _, elem := range l.Totals[:] {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  5. internal/jwt/parser_test.go

    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    				"exp": float64(time.Now().Unix() - 100),
    			},
    		},
    		false,
    		-1,
    	},
    	{
    		"basic nbf",
    		"", // autogen
    		defaultKeyFunc,
    		&MapClaims{
    			MapClaims: jwt.MapClaims{
    				"foo": "bar",
    				"nbf": float64(time.Now().Unix() + 100),
    			},
    		},
    		false,
    		-1,
    	},
    	{
    		"expired and nbf",
    		"", // autogen
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Nov 05 19:20:08 GMT 2021
    - 6K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java

         */
        private static final String FAMILY_TANDEM = "tandem";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_UNIX = "unix";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_OPENVMS = "openvms";
    
        /**
         * OS family that can be tested for. {@value}
         */
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  7. internal/disk/fdatasync_linux.go

    func Fdatasync(f *os.File) error {
    	return syscall.Fdatasync(int(f.Fd()))
    }
    
    // FadviseDontNeed invalidates page-cache
    func FadviseDontNeed(f *os.File) error {
    	return unix.Fadvise(int(f.Fd()), 0, 0, unix.FADV_DONTNEED)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Viewed (0)
  8. internal/disk/stat_solaris.go

    package disk
    
    import (
    	"errors"
    	"fmt"
    
    	"golang.org/x/sys/unix"
    )
    
    // GetInfo returns total and free bytes available in a directory, e.g. `/`.
    func GetInfo(path string, _ bool) (info Info, err error) {
    	s := unix.Statvfs_t{}
    	if err = unix.Statvfs(path, &s); err != nil {
    		return Info{}, err
    	}
    	reservedBlocks := uint64(s.Bfree) - uint64(s.Bavail)
    	info = Info{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Feb 26 19:34:50 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  9. cmd/object-handlers-common.go

    	if r.Method != http.MethodPut {
    		return false
    	}
    	// If the object doesn't have a modtime (IsZero), or the modtime
    	// is obviously garbage (Unix time == 0), then ignore modtimes
    	// and don't process the If-Modified-Since header.
    	if objInfo.ModTime.IsZero() || objInfo.ModTime.Equal(time.Unix(0, 0)) {
    		return false
    	}
    
    	// Headers to be set of object content is not going to be written to the client.
    	writeHeaders := func() {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Apr 09 08:17:49 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  10. cmd/bucket-replication-stats.go

    }
    
    func (r *ReplicationStats) getSRMetricsForNode() SRMetricsSummary {
    	if r == nil {
    		return SRMetricsSummary{}
    	}
    
    	m := SRMetricsSummary{
    		Uptime:        UTCNow().Unix() - globalBootTime.Unix(),
    		Queued:        r.qCache.getSiteStats(),
    		ActiveWorkers: r.ActiveWorkers(),
    		Metrics:       r.srStats.get(),
    		Proxied:       r.pCache.getSiteStats(),
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top