Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for sigemptyset (0.37 sec)

  1. src/cmd/cgo/internal/testsanitizers/testdata/tsan_shared.go

    // that it is installed before the Go code starts.
    
    static void register_handler(void) __attribute__ ((constructor (200)));
    
    static void register_handler() {
    	struct sigaction sa;
    	memset(&sa, 0, sizeof(sa));
    	sigemptyset(&sa.sa_mask);
    	sa.sa_flags = SA_SIGINFO;
    	sa.sa_sigaction = check_params;
    
    	if (sigaction(SIGUSR1, &sa, NULL) != 0) {
    		perror("failed to register SIGUSR1 handler");
    		exit(EXIT_FAILURE);
    	}
    }
    */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  2. src/runtime/cgo/gcc_sigaction.c

    	if (goact) {
    		if (goact->flags & SA_SIGINFO) {
    			act.sa_sigaction = (void(*)(int, siginfo_t*, void*))(goact->handler);
    		} else {
    			act.sa_handler = (void(*)(int))(goact->handler);
    		}
    		sigemptyset(&act.sa_mask);
    		for (i = 0; i < 8 * sizeof(goact->mask); i++) {
    			if (goact->mask & ((uint64_t)(1)<<i)) {
    				sigaddset(&act.sa_mask, (int)(i+1));
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 24 22:38:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprogcgo/exec.go

    // Save the signal mask at startup so that we see what it is before
    // the Go runtime starts setting up signals.
    
    static sigset_t mask;
    
    static void init(void) __attribute__ ((constructor));
    
    static void init() {
    	sigemptyset(&mask);
    	pthread_sigmask(SIG_SETMASK, NULL, &mask);
    }
    
    int SIGINTBlocked() {
    	return sigismember(&mask, SIGINT);
    }
    */
    import "C"
    
    import (
    	"fmt"
    	"io/fs"
    	"os"
    	"os/exec"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testsanitizers/testdata/msan8.go

    // be invoked with all registers msan-undefined.
    __attribute__((noinline))
    void msanGoWait(unsigned long a1, unsigned long a2, unsigned long a3, unsigned long a4, unsigned long a5, unsigned long a6) {
    	sigset_t mask;
    
    	sigemptyset(&mask);
            sigsuspend(&mask);
    }
    
    // msanGoSignalThread is the thread ID of the msanGoLoop thread.
    static pthread_t msanGoSignalThread;
    
    // msanGoSignalThreadSet is used to record that msanGoSignalThread
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:30:58 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. src/regexp/testdata/testregex.c

    			matchprint(match, nmatch + 1, nsub, NiL, test);
    		}
    		return 0;
    	}
    	return 1;
    }
    
    static void
    sigunblock(int s)
    {
    #ifdef SIG_SETMASK
    	int		op;
    	sigset_t	mask;
    
    	sigemptyset(&mask);
    	if (s)
    	{
    		sigaddset(&mask, s);
    		op = SIG_UNBLOCK;
    	}
    	else op = SIG_SETMASK;
    	sigprocmask(op, &mask, NiL);
    #else
    #ifdef sigmask
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
Back to top