Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 83 for segs (0.07 sec)

  1. src/cmd/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go

    }
    
    // PtraceSetRegsMips sets the registers used by mips binaries.
    func PtraceSetRegsMips(pid int, regs *PtraceRegsMips) error {
    	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
    }
    
    // PtraceRegsMips64 is the registers used by mips64 binaries.
    type PtraceRegsMips64 struct {
    	Regs     [32]uint64
    	Lo       uint64
    	Hi       uint64
    	Epc      uint64
    	Badvaddr uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  2. src/archive/tar/strconv.go

    	}
    
    	// If seconds is negative, then perform correction.
    	sign := ""
    	if secs < 0 {
    		sign = "-"             // Remember sign
    		secs = -(secs + 1)     // Add a second to secs
    		nsecs = -(nsecs - 1e9) // Take that second away from nsecs
    	}
    	return strings.TrimRight(fmt.Sprintf("%s%d.%09d", sign, secs, nsecs), "0")
    }
    
    // parsePAXRecord parses the input PAX record string into a key-value pair.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy

            then:
            timer.getElapsed() == "51.243 secs"
        }
    
        def testOnlySecondsEvenMs() {
            when:
            setTime(4000)
    
            then:
            timer.getElapsed() == "4.0 secs"
        }
    
        def testMinutesAndSeconds() {
            when:
            setTime(0, 32, 40, 322)
    
            then:
            timer.getElapsed() == "32 mins 40.322 secs"
        }
    
        def testHoursMinutesAndSeconds() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. src/net/tcpsockopt_unix.go

    	if d == 0 {
    		d = defaultTCPKeepAliveIdle
    	} else if d < 0 {
    		return nil
    	}
    
    	// The kernel expects seconds so round to next highest second.
    	secs := int(roundDurationUp(d, time.Second))
    	err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPIDLE, secs)
    	runtime.KeepAlive(fd)
    	return wrapSyscallError("setsockopt", err)
    }
    
    func setKeepAliveInterval(fd *netFD, d time.Duration) error {
    	if d == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:17:21 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/report/shortnames.go

    // (in decreasing preference) that can be used to represent name.
    func shortNameList(name string) []string {
    	name = graph.ShortenFunctionName(name)
    	seps := sepRE.FindAllStringIndex(name, -1)
    	result := make([]string, 0, len(seps)+1)
    	result = append(result, name)
    	for _, sep := range seps {
    		// Suffix starting just after sep
    		if sep[1] < len(name) {
    			result = append(result, name[sep[1]:])
    		}
    	}
    	return result
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go

    	return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
    }
    
    // PtraceSetRegSetArm64 sets the registers used by arm64 binaries.
    func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error {
    	iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))}
    	return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 22:42:18 UTC 2023
    - 721 bytes
    - Viewed (0)
  7. src/net/tcpsockopt_windows.go

    	}
    
    	if d == 0 {
    		d = defaultTCPKeepAliveIdle
    	} else if d < 0 {
    		return nil
    	}
    	// The kernel expects seconds so round to next highest second.
    	secs := int(roundDurationUp(d, time.Second))
    	err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, windows.TCP_KEEPIDLE, secs)
    	runtime.KeepAlive(fd)
    	return os.NewSyscallError("setsockopt", err)
    }
    
    func setKeepAliveInterval(fd *netFD, d time.Duration) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. src/net/tcpsockopt_solaris.go

    	}
    
    	if d == 0 {
    		d = defaultTCPKeepAliveIdle
    	} else if d < 0 {
    		return nil
    	}
    	// The kernel expects seconds so round to next highest second.
    	secs := int(roundDurationUp(d, time.Second))
    	err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, sysTCP_KEEPIDLE, secs)
    	runtime.KeepAlive(fd)
    	return wrapSyscallError("setsockopt", err)
    }
    
    func setKeepAliveInterval(fd *netFD, d time.Duration) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testcshared/testdata/libgo4/libgo4.go

    //
    //export TestSEGV
    func TestSEGV() {
    	defer func() {
    		if recover() == nil {
    			fmt.Fprintln(os.Stderr, "no panic from segv")
    			os.Exit(1)
    		}
    	}()
    	*P = 0
    	fmt.Fprintln(os.Stderr, "continued after segv")
    	os.Exit(1)
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 864 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/testdata/libgo2/libgo2.go

    //
    //export TestSEGV
    func TestSEGV() {
    	defer func() {
    		if recover() == nil {
    			fmt.Fprintln(os.Stderr, "no panic from segv")
    			os.Exit(1)
    		}
    	}()
    	*P = 0
    	fmt.Fprintln(os.Stderr, "continued after segv")
    	os.Exit(1)
    }
    
    // Noop ensures that the Go runtime is initialized.
    //
    //export Noop
    func Noop() {
    }
    
    // Raise SIGPIPE.
    //
    //export GoRaiseSIGPIPE
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top