Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for miblen (0.25 sec)

  1. src/runtime/os_freebsd.go

    	oid := [2]uint32{_CTL_QUERY, _CTL_QUERY_MIB}
    	miblen := uintptr(_CTL_MAXNAME)
    	if sysctl(&oid[0], 2, (*byte)(unsafe.Pointer(mib)), &miblen, (*byte)(unsafe.Pointer(&name[0])), (uintptr)(len(name))) < 0 {
    		return 0
    	}
    	miblen /= unsafe.Sizeof(uint32(0))
    	if miblen <= 0 {
    		return 0
    	}
    	return uint32(miblen)
    }
    
    const (
    	_CPU_CURRENT_PID = -1 // Current process ID.
    )
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  2. src/runtime/os_openbsd_syscall2.go

    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    // mmap calls the mmap system call. It is implemented in assembly.
    // We only pass the lower 32 bits of file offset to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. src/runtime/sys_openbsd2.go

    //go:nosplit
    //go:cgo_unsafe_args
    func usleep_no_g(usec uint32) {
    	asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(usleep_trampoline)), unsafe.Pointer(&usec))
    }
    
    //go:nosplit
    //go:cgo_unsafe_args
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(sysctl_trampoline)), unsafe.Pointer(&mib))
    	KeepAlive(mib)
    	KeepAlive(out)
    	KeepAlive(size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. src/runtime/os_dragonfly.go

    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    
    //go:noescape
    func setitimer(mode int32, new, old *itimerval)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    func raiseproc(sig uint32)
    
    func lwp_gettid() int32
    func lwp_kill(pid, tid int32, sig int)
    
    //go:noescape
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  5. src/runtime/os_netbsd.go

    //go:noescape
    func sigaction(sig uint32, new, old *sigactiont)
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    func sigprocmask(how int32, new, old *sigset)
    
    //go:noescape
    func sysctl(mib *uint32, miblen uint32, out *byte, size *uintptr, dst *byte, ndst uintptr) int32
    
    func lwp_tramp()
    
    func raiseproc(sig uint32)
    
    func lwp_kill(tid int32, sig int)
    
    //go:noescape
    func getcontext(ctxt unsafe.Pointer)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. src/runtime/sys_openbsd_riscv64.s

    	RET
    
    TEXT runtime·usleep_trampoline(SB),NOSPLIT,$8
    	MOVW	0(X10), X10		// arg 1 - usec
    	CALL	libc_usleep(SB)
    	RET
    
    TEXT runtime·sysctl_trampoline(SB),NOSPLIT,$8
    	MOVW	8(X10), X11		// arg 2 - miblen
    	MOV	16(X10), X12		// arg 3 - out
    	MOV	24(X10), X13		// arg 4 - size
    	MOV	32(X10), X14		// arg 5 - dst
    	MOV	40(X10), X15		// arg 6 - ndst
    	MOV	0(X10), X10		// arg 1 - mib
    	CALL	libc_sysctl(SB)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 02:55:17 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  7. src/runtime/sys_darwin.go

    	KeepAlive(new)
    	KeepAlive(old)
    }
    func setitimer_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func sysctl(mib *uint32, miblen uint32, oldp *byte, oldlenp *uintptr, newp *byte, newlen uintptr) int32 {
    	ret := libcCall(unsafe.Pointer(abi.FuncPCABI0(sysctl_trampoline)), unsafe.Pointer(&mib))
    	KeepAlive(mib)
    	KeepAlive(oldp)
    	KeepAlive(oldlenp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. src/runtime/memmove_test.go

    	for _, t := range benchSizes {
    		total := 0
    		minLen := 0
    		maxLen := 0
    
    		for _, clrLen := range t.data {
    			maxLen = max(maxLen, clrLen)
    			if clrLen < minLen || minLen == 0 {
    				minLen = clrLen
    			}
    			total += clrLen
    		}
    		buffer := make([]byte, maxLen)
    
    		text := ""
    		if minLen >= (1 << 20) {
    			text = fmt.Sprint(minLen>>20, "M ", (maxLen+(1<<20-1))>>20, "M")
    		} else if minLen >= (1 << 10) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:12 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. src/crypto/dsa/dsa.go

    // in a set of DSA parameters. See FIPS 186-3, section 4.2.
    type ParameterSizes int
    
    const (
    	L1024N160 ParameterSizes = iota
    	L2048N224
    	L2048N256
    	L3072N256
    )
    
    // numMRTests is the number of Miller-Rabin primality tests that we perform. We
    // pick the largest recommended number from table C.1 of FIPS 186-3.
    const numMRTests = 64
    
    // GenerateParameters puts a random, valid set of DSA parameters into params.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. src/net/netip/netip.go

    	var val, pos int
    	var digLen int // number of digits in current octet
    	s := in[off:end]
    	for i := 0; i < len(s); i++ {
    		if s[i] >= '0' && s[i] <= '9' {
    			if digLen == 1 && val == 0 {
    				return parseAddrError{in: in, msg: "IPv4 field has octet with leading zero"}
    			}
    			val = val*10 + int(s[i]) - '0'
    			digLen++
    			if val > 255 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top