Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for Shere (0.02 sec)

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

    		die("sigemptyset");
    	}
    	sa.sa_flags = SA_SIGINFO | SA_ONSTACK;
    	if (sigaction(SIGIO, &sa, NULL) < 0) {
    		die("sigaction");
    	}
    }
    
    // Test raising SIGIO on a C thread with an alternate signal stack
    // when there is a Go signal handler for SIGIO.
    static void* thread1(void* arg __attribute__ ((unused))) {
    	stack_t ss;
    	int i;
    	stack_t nss;
    	struct timespec ts;
    
    	// Set up an alternate signal stack for this thread.
    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/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)));
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/testcshared/testdata/main5.c

    		fprintf(stderr, "calling dlopen\n");
    	}
    
    	handle = dlopen(argv[1], RTLD_NOW | RTLD_GLOBAL);
    	if (handle == NULL) {
    		fprintf(stderr, "%s\n", dlerror());
    		exit(EXIT_FAILURE);
    	}
    
    	// At this point there should not be a Go signal handler
    	// installed for SIGIO.
    
    	if (verbose) {
    		fprintf(stderr, "raising SIGIO\n");
    	}
    
    	if (raise(SIGIO) < 0) {
    		die("raise");
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testcarchive/testdata/main3.c

    	sa.sa_sigaction = ioHandler;
    	if (sigemptyset(&sa.sa_mask) < 0) {
    		die("sigemptyset");
    	}
    	sa.sa_flags = SA_SIGINFO;
    	if (sigaction(SIGIO, &sa, NULL) < 0) {
    		die("sigaction");
    	}
    
    	// At this point there should not be a Go signal handler
    	// installed for SIGIO.
    
    	if (verbose) {
    		printf("raising SIGIO\n");
    	}
    
    	if (raise(SIGIO) < 0) {
    		die("raise");
    	}
    
    	if (verbose) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testcshared/testdata/main4.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();
    }
    
    int main(int argc, char** argv) {
    	int verbose;
    	struct sigaction sa;
    	void* handle;
    	void (*fn)(void);
    	sigset_t mask;
    	int i;
    	struct timespec ts;
    
    	verbose = argc > 2;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top