Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 223 for ts (0.08 sec)

  1. src/net/http/alpn_test.go

    	}
    	ts.Config.TLSNextProto = map[string]func(*Server, *tls.Conn, Handler){
    		"tls-0.9": handleTLSProtocol09,
    	}
    	ts.StartTLS()
    	defer ts.Close()
    
    	// Normal request, without NPN.
    	{
    		c := ts.Client()
    		res, err := c.Get(ts.URL)
    		if err != nil {
    			t.Fatal(err)
    		}
    		body, err := io.ReadAll(res.Body)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if want := "path=/,proto="; string(body) != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/ntlmssp/av/AvTimestamp.java

        }
    
    
        /**
         * 
         * @param ts
         */
        public AvTimestamp ( long ts ) {
            this(encode(ts));
        }
    
    
        /**
         * @param ts
         * @return
         */
        private static byte[] encode ( long ts ) {
            byte[] data = new byte[8];
            SMBUtil.writeInt8(ts, data, 0);
            return data;
        }
    
    
        /**
         * @return the timestamp
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  3. src/runtime/cgo/gcc_freebsd_amd64.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	_cgo_tsan_acquire();
    	free(v);
    	_cgo_tsan_release();
    
    	crosscall1(ts.fn, setg_gcc, (void*)ts.g);
    	return nil;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. src/runtime/iface_test.go

    func (Tslice) Method1() {}
    
    var (
    	e  any
    	e_ any
    	i1 I1
    	i2 I2
    	ts TS
    	tm TM
    	tl TL
    	ok bool
    )
    
    // Issue 9370
    func TestCmpIfaceConcreteAlloc(t *testing.T) {
    	if runtime.Compiler != "gc" {
    		t.Skip("skipping on non-gc compiler")
    	}
    
    	n := testing.AllocsPerRun(1, func() {
    		_ = e == ts
    		_ = i1 == ts
    		_ = e == 1
    	})
    
    	if n > 0 {
    		t.Fatalf("iface cmp allocs=%v; want 0", n)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  5. src/syscall/timestruct.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || (js && wasm) || wasip1
    
    package syscall
    
    // TimespecToNsec returns the time stored in ts as nanoseconds.
    func TimespecToNsec(ts Timespec) int64 { return ts.Nano() }
    
    // NsecToTimespec converts a number of nanoseconds into a [Timespec].
    func NsecToTimespec(nsec int64) Timespec {
    	sec := nsec / 1e9
    	nsec = nsec % 1e9
    	if nsec < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 958 bytes
    - Viewed (0)
  6. src/runtime/cgo/gcc_linux_arm64.c

    	pthread_sigmask(SIG_SETMASK, &oset, nil);
    
    	if (err != 0) {
    		fatalf("pthread_create failed: %s", strerror(err));
    	}
    }
    
    extern void crosscall1(void (*fn)(void), void (*setg_gcc)(void*), void *g);
    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    	crosscall1(ts.fn, setg_gcc, (void*)ts.g);
    	return nil;
    }
    
    void
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:06:46 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  7. src/runtime/cgo/gcc_darwin_arm64.c

    static void*
    threadentry(void *v)
    {
    	ThreadStart ts;
    
    	ts = *(ThreadStart*)v;
    	free(v);
    
    #if TARGET_OS_IPHONE
    	darwin_arm_init_thread_exception_port();
    #endif
    
    	crosscall1(ts.fn, setg_gcc, (void*)ts.g);
    	return nil;
    }
    
    #if TARGET_OS_IPHONE
    
    // init_working_dir sets the current working directory to the app root.
    // By default ios/arm64 processes start in "/".
    static void
    init_working_dir()
    {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 09 03:13:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/internal/coverage/cfile/testsupport.go

    			continue
    		}
    		if err := ts.processPod(p, importpaths); err != nil {
    			return err
    		}
    	}
    
    	metafilespath := filepath.Join(dir, coverage.MetaFilesFileName)
    	if _, err := os.Stat(metafilespath); err == nil {
    		if err := ts.readAuxMetaFiles(metafilespath, importpaths); err != nil {
    			return err
    		}
    	}
    
    	// Emit percent.
    	if err := ts.cf.EmitPercent(w, cpkg, true, true); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:57:47 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. src/syscall/syscall.go

    // Unix returns the time stored in ts as seconds plus nanoseconds.
    func (ts *Timespec) Unix() (sec int64, nsec int64) {
    	return int64(ts.Sec), int64(ts.Nsec)
    }
    
    // Unix returns the time stored in tv as seconds plus nanoseconds.
    func (tv *Timeval) Unix() (sec int64, nsec int64) {
    	return int64(tv.Sec), int64(tv.Usec) * 1000
    }
    
    // Nano returns the time stored in ts as nanoseconds.
    func (ts *Timespec) Nano() int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/filters/routine_test.go

    		APIPrefixes:          sets.NewString("api", "apis"),
    		GrouplessAPIPrefixes: sets.NewString("api"),
    	}
    	ts := httptest.NewServer(WithRoutine(WithPanicRecovery(handler, resolver), func(_ *http.Request, _ *request.RequestInfo) bool { return true }))
    	defer ts.Close()
    	_, err := http.Get(ts.URL)
    	if err == nil {
    		t.Error("expected to receive an error")
    	}
    
    	klog.Flush()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 10:22:16 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top