Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for sigprocmask (0.16 sec)

  1. src/runtime/os_aix.go

    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	var ret int32
    	for tries := 0; tries < 20; tries++ {
    		// pthread_create can fail with EAGAIN for no reasons
    		// but it will be ok if it retries.
    		ret = pthread_create(&tid, &attr, fn, nil)
    		if ret != _EAGAIN {
    			break
    		}
    		usleep(uint32(tries+1) * 1000) // Milliseconds.
    	}
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if ret != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. src/runtime/os_dragonfly.go

    //go:noescape
    func lwp_create(param *lwpparams) int32
    
    //go:noescape
    func sigaltstack(new, old *stackt)
    
    //go:noescape
    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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/runtime/os_freebsd.go

    		tls_base:   unsafe.Pointer(&mp.tls[0]),
    		tls_size:   unsafe.Sizeof(mp.tls),
    	}
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	ret := retryOnEAGAIN(func() int32 {
    		errno := thr_new(&param, int32(unsafe.Sizeof(param)))
    		// thr_new returns negative errno
    		return -errno
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if ret != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcshared/testdata/main4.c

    	sigset_t mask;
    	int i;
    
    	if (sigemptyset(&mask) < 0) {
    		die("sigemptyset");
    	}
    	if (sigaddset(&mask, SIGSEGV) < 0) {
    		die("sigaddset");
    	}
    	i = sigprocmask(SIG_UNBLOCK, &mask, NULL);
    	if (i != 0) {
    		fprintf(stderr, "sigprocmask: %s\n", strerror(i));
    		exit(EXIT_FAILURE);
    	}
    
    	// Don't try this at home.
    	longjmp(jmp, signo);
    
    	// We should never get here.
    	abort();
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. src/runtime/os_darwin.go

    	// Finally, create the thread. It starts at mstart_stub, which does some low-level
    	// setup and then calls mstart.
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	err = retryOnEAGAIN(func() int32 {
    		return pthread_create(&attr, abi.FuncPCABI0(mstart_stub), unsafe.Pointer(mp))
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if err != 0 {
    		writeErrStr(failthreadcreate)
    		exit(1)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  6. src/runtime/os_netbsd.go

    	uc.uc_sigmask = sigset_all
    
    	var oset sigset
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    
    	lwp_mcontext_init(&uc.uc_mcontext, stk, mp, mp.g0, abi.FuncPCABI0(netbsdMstart))
    
    	ret := retryOnEAGAIN(func() int32 {
    		errno := lwp_create(unsafe.Pointer(&uc), _LWP_DETACHED, unsafe.Pointer(&mp.procid))
    		// lwp_create returns negative errno
    		return -errno
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if ret != 0 {
    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/os3_solaris.go

    	// Disable signals during create, so that the new thread starts
    	// with signals disabled. It will enable them in minit.
    	sigprocmask(_SIG_SETMASK, &sigset_all, &oset)
    	ret = retryOnEAGAIN(func() int32 {
    		return pthread_create(&tid, &attr, abi.FuncPCABI0(tstart_sysvicall), unsafe.Pointer(mp))
    	})
    	sigprocmask(_SIG_SETMASK, &oset, nil)
    	if ret != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/runtime/os_openbsd_syscall2.go

    // the stack is safe to reclaim.
    //
    //go:noescape
    func exitThread(wait *atomic.Uint32)
    
    //go:noescape
    func obsdsigprocmask(how int32, new sigset) sigset
    
    //go:nosplit
    //go:nowritebarrierrec
    func sigprocmask(how int32, new, old *sigset) {
    	n := sigset(0)
    	if new != nil {
    		n = *new
    	}
    	r := obsdsigprocmask(how, n)
    	if old != nil {
    		*old = r
    	}
    }
    
    func pipe2(flags int32) (r, w int32, errno int32)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/runtime/sys_openbsd2.go

    	KeepAlive(new)
    	KeepAlive(old)
    }
    func sigaction_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func sigprocmask(how uint32, new *sigset, old *sigset) {
    	// sigprocmask is called from sigsave, which is called from needm.
    	// As such, we have to be able to run with no g here.
    	asmcgocall_no_g(unsafe.Pointer(abi.FuncPCABI0(sigprocmask_trampoline)), unsafe.Pointer(&how))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. src/runtime/signal_unix.go

    				sigdelset(&sigBlocked, i)
    			}
    		}
    		sigprocmask(_SIG_SETMASK, &sigBlocked, nil)
    		for {
    			select {
    			case sig := <-enableSigChan:
    				if sig > 0 {
    					sigdelset(&sigBlocked, int(sig))
    				}
    			case sig := <-disableSigChan:
    				if sig > 0 && blockableSig(sig) {
    					sigaddset(&sigBlocked, int(sig))
    				}
    			}
    			sigprocmask(_SIG_SETMASK, &sigBlocked, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 16:04:54 UTC 2024
    - 45K bytes
    - Viewed (0)
Back to top