Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ioHandler (0.13 sec)

  1. src/cmd/cgo/internal/testcshared/testdata/main5.c

    #include <string.h>
    #include <time.h>
    #include <sched.h>
    #include <dlfcn.h>
    
    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;
    }
    
    int main(int argc, char** argv) {
    	int verbose;
    	struct sigaction sa;
    	void* handle;
    	void (*catchSIGIO)(void);
    	void (*resetSIGIO)(void);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testcshared/testdata/main4.c

    static void recur(int i, char *p) {
    	char a[1024];
    
    	*p = '\0';
    	if (i > 0) {
    		recur(i - 1, a);
    	}
    }
    
    // Signal handler that uses up more stack space than a goroutine will have.
    static void ioHandler(int signo, siginfo_t* info, void* ctxt) {
    	char a[1024];
    
    	recur(4, a);
    	sigioSeen = 1;
    }
    
    static jmp_buf jmp;
    static char* nullPointer;
    
    // Signal handler for SIGSEGV on a C thread.
    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