Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 155 for ts (0.23 sec)

  1. src/runtime/netpoll_solaris.go

    	if portfd == -1 {
    		return gList{}, 0
    	}
    
    	var wait *timespec
    	var ts timespec
    	if delay < 0 {
    		wait = nil
    	} else if delay == 0 {
    		wait = &ts
    	} else {
    		ts.setNsec(delay)
    		if ts.tv_sec > 1e6 {
    			// An arbitrary cap on how long to wait for a timer.
    			// 1e6 s == ~11.5 days.
    			ts.tv_sec = 1e6
    		}
    		wait = &ts
    	}
    
    	var events [128]portevent
    retry:
    	var n uint32 = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating/plugin_test.go

    func TestValidateWebhookDuration(ts *testing.T) {
    	clk := clocktesting.FakeClock{}
    	testServer := webhooktesting.NewTestServerWithHandler(ts, webhooktesting.ClockSteppingWebhookHandler(ts, &clk))
    	testServer.StartTLS()
    	defer testServer.Close()
    	serverURL, err := url.ParseRequestURI(testServer.URL)
    	if err != nil {
    		ts.Fatalf("this should never happen? %v", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:52 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  3. src/syscall/syscall_aix.go

    const (
    	F_DUPFD_CLOEXEC = 0
    	// AF_LOCAL doesn't exist on AIX
    	AF_LOCAL = AF_UNIX
    
    	_F_DUP2FD_CLOEXEC = 0
    )
    
    func (ts *StTimespec_t) Unix() (sec int64, nsec int64) {
    	return int64(ts.Sec), int64(ts.Nsec)
    }
    
    func (ts *StTimespec_t) Nano() int64 {
    	return int64(ts.Sec)*1e9 + int64(ts.Nsec)
    }
    
    /*
     * Wrapped
     */
    
    func Access(path string, mode uint32) (err error) {
    	return Faccessat(_AT_FDCWD, path, mode, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper_test.go

    		cert, err := tls.X509KeyPair(exampleCert, exampleKey)
    		if err != nil {
    			t.Errorf("https (invalid hostname): proxy_test: %v", err)
    		}
    		ts := httptest.NewUnstartedServer(h)
    		ts.TLS = &tls.Config{
    			Certificates: []tls.Certificate{cert},
    		}
    		ts.StartTLS()
    		return ts
    	}
    }
    
    func httpsServerValidHostname(t *testing.T) serverFunc {
    	return func(h http.Handler) *httptest.Server {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 32.7K bytes
    - Viewed (0)
  5. src/net/http/httptest/server.go

    	}
    	return false
    }
    
    // NewServer starts and returns a new [Server].
    // The caller should call Close when finished, to shut it down.
    func NewServer(handler http.Handler) *Server {
    	ts := NewUnstartedServer(handler)
    	ts.Start()
    	return ts
    }
    
    // NewUnstartedServer returns a new [Server] but doesn't start it.
    //
    // After changing its configuration, the caller should call Start or
    // StartTLS.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 17:26:10 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. src/runtime/os_netbsd.go

    			}
    			continue
    		}
    
    		// Sleep until unparked by semawakeup or timeout.
    		var tsp *timespec
    		var ts timespec
    		if ns >= 0 {
    			wait := deadline - nanotime()
    			if wait <= 0 {
    				return -1
    			}
    			ts.setNsec(wait)
    			tsp = &ts
    		}
    		ret := lwp_park(_CLOCK_MONOTONIC, _TIMER_RELTIME, tsp, 0, unsafe.Pointer(&gp.m.waitsemacount), nil)
    		if ret == _ETIMEDOUT {
    			return -1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  7. src/runtime/sys_linux_386.s

    	// Stack layout, depending on call path:
    	//  x(SP)   vDSO            INVOKE_SYSCALL
    	//    12    ts.tv_nsec      ts.tv_nsec
    	//     8    ts.tv_sec       ts.tv_sec
    	//     4    &ts             -
    	//     0    CLOCK_<id>      -
    
    	MOVL	runtime·vdsoClockgettimeSym(SB), AX
    	CMPL	AX, $0
    	JEQ	fallback
    
    	LEAL	8(SP), BX	// &ts (struct timespec)
    	MOVL	BX, 4(SP)
    	MOVL	$0, 0(SP)	// CLOCK_REALTIME
    	CALL	AX
    	JMP finish
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 24 18:53:44 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go

    	return timestamp
    }
    
    func (u *Unstructured) SetCreationTimestamp(timestamp metav1.Time) {
    	ts, _ := timestamp.MarshalQueryParameter()
    	if len(ts) == 0 || timestamp.Time.IsZero() {
    		RemoveNestedField(u.Object, "metadata", "creationTimestamp")
    		return
    	}
    	u.setNestedField(ts, "metadata", "creationTimestamp")
    }
    
    func (u *Unstructured) GetDeletionTimestamp() *metav1.Time {
    	var timestamp metav1.Time
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun May 28 03:26:35 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    			paxHdrs[paxKey] = v
    		}
    	}
    	verifyTime := func(ts time.Time, size int, name, paxKey string) {
    		if ts.IsZero() {
    			return // Always okay
    		}
    		if !fitsInBase256(size, ts.Unix()) {
    			whyNoGNU = fmt.Sprintf("GNU cannot encode %s=%v", name, ts)
    			format.mustNotBe(FormatGNU)
    		}
    		isMtime := paxKey == paxMtime
    		fitsOctal := fitsInOctal(size, ts.Unix())
    		if (isMtime && !fitsOctal) || !isMtime {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_aix.go

    func UtimesNano(path string, ts []Timespec) error {
    	if len(ts) != 2 {
    		return EINVAL
    	}
    	return utimensat(AT_FDCWD, path, (*[2]Timespec)(unsafe.Pointer(&ts[0])), 0)
    }
    
    func UtimesNanoAt(dirfd int, path string, ts []Timespec, flags int) error {
    	if ts == nil {
    		return utimensat(dirfd, path, nil, flags)
    	}
    	if len(ts) != 2 {
    		return EINVAL
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 16.1K bytes
    - Viewed (0)
Back to top