Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,272 for unixOS (0.3 sec)

  1. src/archive/tar/stat_actime2.go

    //go:build darwin || freebsd || netbsd
    
    package tar
    
    import (
    	"syscall"
    	"time"
    )
    
    func statAtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Atimespec.Unix())
    }
    
    func statCtime(st *syscall.Stat_t) time.Time {
    	return time.Unix(st.Ctimespec.Unix())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 421 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_encryption_test.go

    		},
    	}, {
    		desc: "invalid url",
    		in:   &apiserver.KMSConfiguration{Endpoint: "unix:///foo\n.socket"},
    		want: field.ErrorList{
    			field.Invalid(endpointField, "unix:///foo\n.socket", fmt.Sprintf(invalidURLErrFmt, `parse "unix:///foo\n.socket": net/url: invalid control character in URL`)),
    		},
    	}}
    
    	for _, tt := range testCases {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 33.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/toolchain/path_unix.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package toolchain
    
    import (
    	"internal/syscall/unix"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"syscall"
    
    	"cmd/go/internal/gover"
    )
    
    // pathDirs returns the directories in the system search path.
    func pathDirs() []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 31 15:15:19 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. pkg/util/rlimit/rlimit_linux.go

    limitations under the License.
    */
    
    package rlimit
    
    import (
    	"golang.org/x/sys/unix"
    )
    
    // SetNumFiles sets the linux rlimit for the maximum open files.
    func SetNumFiles(maxOpenFiles uint64) error {
    	return unix.Setrlimit(unix.RLIMIT_NOFILE, &unix.Rlimit{Max: maxOpenFiles, Cur: maxOpenFiles})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 866 bytes
    - Viewed (0)
  5. cmd/kubeadm/app/phases/patchnode/patchnode_test.go

    			currentCRISocketAnnotation: "",
    			newCRISocketAnnotation:     "unix:///run/containerd/containerd.sock",
    			expectedPatch:              `{"metadata":{"annotations":{"kubeadm.alpha.kubernetes.io/cri-socket":"unix:///run/containerd/containerd.sock"}}}`,
    		},
    		{
    			name:                       "CRI-socket annotation already exists",
    			currentCRISocketAnnotation: "unix:///run/containerd/containerd.sock",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 12 15:15:45 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  6. pkg/util/filesystem/util_windows.go

    	"k8s.io/klog/v2"
    )
    
    const (
    	// Amount of time to wait between attempting to use a Unix domain socket.
    	// As detailed in https://github.com/kubernetes/kubernetes/issues/104584
    	// the first attempt will most likely fail, hence the need to retry
    	socketDialRetryPeriod = 1 * time.Second
    	// Overall timeout value to dial a Unix domain socket, including retries
    	socketDialTimeout = 4 * time.Second
    )
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 4K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/phases/reset/unmount_linux.go

    	"github.com/pkg/errors"
    	"golang.org/x/sys/unix"
    
    	"k8s.io/klog/v2"
    
    	utilerrors "k8s.io/apimachinery/pkg/util/errors"
    
    	kubeadmapi "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"
    )
    
    var flagMap = map[string]int{
    	kubeadmapi.UnmountFlagMNTForce:       unix.MNT_FORCE,
    	kubeadmapi.UnmountFlagMNTDetach:      unix.MNT_DETACH,
    	kubeadmapi.UnmountFlagMNTExpire:      unix.MNT_EXPIRE,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 10:58:44 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/term/term_unix_other.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build aix || linux || solaris || zos
    
    package term
    
    import "golang.org/x/sys/unix"
    
    const ioctlReadTermios = unix.TCGETS
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 324 bytes
    - Viewed (0)
  9. src/net/unixsock_readmsg_test.go

    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package net
    
    import (
    	"internal/syscall/unix"
    	"os"
    	"syscall"
    	"testing"
    	"time"
    )
    
    func TestUnixConnReadMsgUnixSCMRightsCloseOnExec(t *testing.T) {
    	if !testableNetwork("unix") {
    		t.Skip("not unix system")
    	}
    
    	scmFile, err := os.Open(os.DevNull)
    	if err != nil {
    		t.Fatalf("file open: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 18 09:15:25 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  10. pkg/kubelet/util/boottime_util_freebsd.go

    */
    
    package util
    
    import (
    	"fmt"
    	"time"
    
    	"golang.org/x/sys/unix"
    	"unsafe"
    )
    
    // GetBootTime returns the time at which the machine was started, truncated to the nearest second
    func GetBootTime() (time.Time, error) {
    	currentTime := time.Now()
    	ts := &unix.Timeval{}
    	_, _, e1 := unix.Syscall(uintptr(unix.SYS_CLOCK_GETTIME), uintptr(unix.CLOCK_UPTIME), uintptr(unsafe.Pointer(ts)), 0)
    	if e1 != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
Back to top