Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for setsig (0.11 sec)

  1. src/runtime/os_freebsd2.go

    // license that can be found in the LICENSE file.
    
    //go:build freebsd && !amd64
    
    package runtime
    
    import "internal/abi"
    
    //go:nosplit
    //go:nowritebarrierrec
    func setsig(i uint32, fn uintptr) {
    	var sa sigactiont
    	sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART
    	sa.sa_mask = sigset_all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 603 bytes
    - Viewed (0)
  2. src/runtime/os_freebsd_amd64.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package runtime
    
    import "internal/abi"
    
    func cgoSigtramp()
    
    //go:nosplit
    //go:nowritebarrierrec
    func setsig(i uint32, fn uintptr) {
    	var sa sigactiont
    	sa.sa_flags = _SA_SIGINFO | _SA_ONSTACK | _SA_RESTART
    	sa.sa_mask = sigset_all
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 22:40:36 UTC 2021
    - 658 bytes
    - Viewed (0)
  3. src/runtime/signal_unix.go

    		fwdSig[i] = getsig(i)
    
    		if !sigInstallGoHandler(i) {
    			// Even if we are not installing a signal handler,
    			// set SA_ONSTACK if necessary.
    			if fwdSig[i] != _SIG_DFL && fwdSig[i] != _SIG_IGN {
    				setsigstack(i)
    			} else if fwdSig[i] == _SIG_IGN {
    				sigInitIgnored(i)
    			}
    			continue
    		}
    
    		handlingSig[i] = 1
    		setsig(i, abi.FuncPCABIInternal(sighandler))
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
  4. src/runtime/defs_linux_mips64x.go

    	tv.tv_usec = int64(x)
    }
    
    type sigactiont struct {
    	sa_flags   uint32
    	sa_handler uintptr
    	sa_mask    [2]uint64
    	// linux header does not have sa_restorer field,
    	// but it is used in setsig(). it is no harm to put it here
    	sa_restorer uintptr
    }
    
    type siginfoFields struct {
    	si_signo int32
    	si_code  int32
    	si_errno int32
    	__pad0   [1]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/runtime/defs_linux_mipsx.go

    	tv.tv_usec = x
    }
    
    type sigactiont struct {
    	sa_flags   uint32
    	sa_handler uintptr
    	sa_mask    [4]uint32
    	// linux header does not have sa_restorer field,
    	// but it is used in setsig(). it is no harm to put it here
    	sa_restorer uintptr
    }
    
    type siginfoFields struct {
    	si_signo int32
    	si_code  int32
    	si_errno int32
    	// below here is a union; si_addr is the only field we use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  6. src/runtime/defs_linux_riscv64.go

    	tv.tv_usec = int64(x)
    }
    
    type sigactiont struct {
    	sa_handler uintptr
    	sa_flags   uint64
    	sa_mask    uint64
    	// Linux on riscv64 does not have the sa_restorer field, but the setsig
    	// function references it (for x86). Not much harm to include it at the end.
    	sa_restorer uintptr
    }
    
    type siginfoFields struct {
    	si_signo int32
    	si_errno int32
    	si_code  int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  7. src/runtime/defs_linux_loong64.go

    	_O_NONBLOCK = 0x800
    	_O_CLOEXEC  = 0x80000
    )
    
    type sigactiont struct {
    	sa_handler uintptr
    	sa_flags   uint64
    	sa_mask    uint64
    	// Linux on loong64 does not have the sa_restorer field, but the setsig
    	// function references it (for x86). Not much harm to include it at the end.
    	sa_restorer uintptr
    }
    
    type siginfoFields struct {
    	si_signo int32
    	si_errno int32
    	si_code  int32
    	__pad0   [1]int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. src/runtime/os_openbsd.go

    //go:nosplit
    //go:nowritebarrierrec
    func setsigstack(i uint32) {
    	throw("setsigstack")
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    func getsig(i uint32) uintptr {
    	var sa sigactiont
    	sigaction(i, nil, &sa)
    	return sa.sa_sigaction
    }
    
    // setSignalstackSP sets the ss_sp field of a stackt.
    //
    //go:nosplit
    func setSignalstackSP(s *stackt, sp uintptr) {
    	s.ss_sp = sp
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. src/runtime/os_dragonfly.go

    //go:nosplit
    //go:nowritebarrierrec
    func setsigstack(i uint32) {
    	throw("setsigstack")
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    func getsig(i uint32) uintptr {
    	var sa sigactiont
    	sigaction(i, nil, &sa)
    	return sa.sa_sigaction
    }
    
    // setSignalstackSP sets the ss_sp field of a stackt.
    //
    //go:nosplit
    func setSignalstackSP(s *stackt, sp uintptr) {
    	s.ss_sp = sp
    }
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  10. src/runtime/os_aix.go

    		return
    	}
    	sa.sa_flags |= _SA_ONSTACK
    	sigaction(uintptr(i), &sa, nil)
    }
    
    //go:nosplit
    //go:nowritebarrierrec
    func getsig(i uint32) uintptr {
    	var sa sigactiont
    	sigaction(uintptr(i), nil, &sa)
    	return sa.sa_handler
    }
    
    // setSignalstackSP sets the ss_sp field of a stackt.
    //
    //go:nosplit
    func setSignalstackSP(s *stackt, sp uintptr) {
    	*(*uintptr)(unsafe.Pointer(&s.ss_sp)) = sp
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
Back to top