Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 408 for runFix (0.17 sec)

  1. src/os/exec.go

    // type, such as [syscall.WaitStatus] on Unix, to access its contents.
    func (p *ProcessState) Sys() any {
    	return p.sys()
    }
    
    // SysUsage returns system-dependent resource usage information about
    // the exited process. Convert it to the appropriate underlying
    // type, such as [*syscall.Rusage] on Unix, to access its contents.
    // (On Unix, *syscall.Rusage matches struct rusage as defined in the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  2. pkg/kubelet/stats/cadvisor_stats_provider_test.go

    	checkCPUStats(t, "Pod0Container0", seedPod0Container0, con.CPU)
    	checkMemoryStats(t, "Pod0Conainer0", seedPod0Container0, infos["/pod0-c0"], con.Memory)
    	checkSwapStats(t, "Pod0Conainer0", seedPod0Container0, infos["/pod0-c0"], con.Swap)
    
    	con = indexCon[cName01]
    	assert.EqualValues(t, testTime(creationTime, seedPod0Container1).Unix(), con.StartTime.Time.Unix())
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  3. src/time/example_test.go

    }
    
    func ExampleTime_Unix() {
    	// 1 billion seconds of Unix, three ways.
    	fmt.Println(time.Unix(1e9, 0).UTC())     // 1e9 seconds
    	fmt.Println(time.Unix(0, 1e18).UTC())    // 1e18 nanoseconds
    	fmt.Println(time.Unix(2e9, -1e18).UTC()) // 2e9 seconds - 1e18 nanoseconds
    
    	t := time.Date(2001, time.September, 9, 1, 46, 40, 0, time.UTC)
    	fmt.Println(t.Unix())     // seconds since 1970
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  4. src/os/file_unix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1
    
    package os
    
    import (
    	"internal/poll"
    	"internal/syscall/unix"
    	"io/fs"
    	"runtime"
    	"sync/atomic"
    	"syscall"
    	_ "unsafe" // for go:linkname
    )
    
    const _UTIME_OMIT = unix.UTIME_OMIT
    
    // fixLongPath is a noop on non-Windows platforms.
    func fixLongPath(path string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. pkg/test/framework/suite.go

    	scopes.Framework.Infof("===============================")
    
    	// Ensure that the work dir is set.
    	if err := os.MkdirAll(settings.RunDir(), os.ModePerm); err != nil {
    		return fmt.Errorf("error creating rundir %q: %v", settings.RunDir(), err)
    	}
    	scopes.Framework.Infof("Test run dir: %v", settings.RunDir())
    
    	rt, err = newRuntime(settings, environmentFactory, s.labels)
    	return err
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  6. src/time/zoneinfo_test.go

    		if err != nil {
    			t.Fatal(err)
    		}
    		s := time.Unix(test.unix, 0).In(z).Format(format)
    		if s != test.want1 {
    			t.Errorf("for %s %d got %q want %q", test.zone, test.unix, s, test.want1)
    		}
    		s = time.Unix(test.unix+1, 0).In(z).Format(format)
    		if s != test.want2 {
    			t.Errorf("for %s %d got %q want %q", test.zone, test.unix, s, test.want2)
    		}
    	}
    }
    
    func TestLocationNames(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 13 17:06:56 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  7. pkg/volume/util/hostutil/hostutil_linux.go

    		return false, nil
    	}
    	fd, errno := unix.Open(pathname, unix.O_RDONLY|unix.O_EXCL|unix.O_CLOEXEC, 0)
    	// If the device is in use, open will return an invalid fd.
    	// When this happens, it is expected that Close will fail and throw an error.
    	defer unix.Close(fd)
    	if errno == nil {
    		// device not in use
    		return false, nil
    	} else if errno == unix.EBUSY {
    		// device is in use
    		return true, nil
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 23 08:36:44 UTC 2023
    - 10K bytes
    - Viewed (0)
  8. pkg/volume/util/subpath/subpath_linux.go

    		unix.Fstatat(parentFD, seg+"/", &deviceStat, unix.AT_SYMLINK_NOFOLLOW)
    
    		klog.V(5).Infof("Opening path %s", currentPath)
    		childFD, err = syscall.Openat(parentFD, seg, openFDFlags|unix.O_CLOEXEC, 0)
    		if err != nil {
    			return -1, fmt.Errorf("cannot open %s: %s", currentPath, err)
    		}
    
    		err := unix.Fstat(childFD, &deviceStat)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 12 14:09:11 UTC 2022
    - 21.4K bytes
    - Viewed (0)
  9. src/os/readfrom_linux_test.go

    			})
    		}
    	})
    	t.Run("Basic-Unix", func(t *testing.T) {
    		for _, size := range sizes {
    			t.Run(strconv.Itoa(size), func(t *testing.T) {
    				testSpliceFile(t, "unix", int64(size), -1)
    			})
    		}
    	})
    	t.Run("TCP-To-TTY", func(t *testing.T) {
    		testSpliceToTTY(t, "tcp", 32768)
    	})
    	t.Run("Unix-To-TTY", func(t *testing.T) {
    		testSpliceToTTY(t, "unix", 32768)
    	})
    	t.Run("Limited", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/net_test.go

    // limitations under the License.
    
    package nodeagent
    
    import (
    	"context"
    	"errors"
    	"net/netip"
    	"runtime"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	"golang.org/x/sys/unix"
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/intstr"
    
    	"istio.io/istio/cni/pkg/ipset"
    	"istio.io/istio/cni/pkg/iptables"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 17.8K bytes
    - Viewed (0)
Back to top