Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for set (0.08 sec)

  1. src/cmd/cgo/internal/testcarchive/testdata/main4.c

    #define CSIGSTKSZ SIGSTKSZ
    #endif
    
    static void die(const char* msg) {
    	perror(msg);
    	exit(EXIT_FAILURE);
    }
    
    static int ok = 1;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    }
    
    // Set up the SIGIO signal handler in a high priority constructor, so
    // that it is installed before the Go code starts.
    
    static void init(void) __attribute__ ((constructor (200)));
    
    static void init() {
    	struct sigaction sa;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcarchive/testdata/main_unix.c

    	if (sigaction(SIGSEGV, &sa, &osa) < 0) {
    		perror("sigaction");
    		return 2;
    	}
    	if (osa.sa_handler == SIG_DFL) {
    		fprintf(stderr, "Go runtime did not install signal handler\n");
    		return 2;
    	}
    	// gccgo does not set SA_ONSTACK for SIGSEGV.
    	if (getenv("GCCGO") == NULL && (osa.sa_flags&SA_ONSTACK) == 0) {
    		fprintf(stderr, "Go runtime did not install signal handler\n");
    		return 2;
    	}
    	oldHandler = osa.sa_sigaction;
    
    	return 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcarchive/testdata/main2.c

    	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();
    }
    
    // Set up the signal handlers in a high priority constructor,
    // so that they are installed before the Go code starts.
    
    static void init(void) __attribute__ ((constructor (200)));
    
    static void init() {
    	struct sigaction sa;
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main3.c

    static void die(const char* msg) {
    	perror(msg);
    	exit(EXIT_FAILURE);
    }
    
    static volatile sig_atomic_t sigioSeen;
    
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	sigioSeen = 1;
    }
    
    // Set up the SIGPIPE signal handler in a high priority constructor, so
    // that it is installed before the Go code starts.
    
    static void pipeHandler(int signo, siginfo_t* info, void* ctxt) {
    	const char *s = "unexpected SIGPIPE\n";
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top