- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for segvHandler (0.11 sec)
-
src/runtime/testdata/testprogcgo/sigfwd.go
sig_atomic_t expectCSigsegv; int *sigfwdP; static void sigsegv() { expectCSigsegv = 1; *sigfwdP = 1; fprintf(stderr, "ERROR: C SIGSEGV not thrown on caught?.\n"); exit(2); } static void segvhandler(int signum) { if (signum == SIGSEGV) { if (expectCSigsegv == 0) { fprintf(stderr, "SIGSEGV caught in C unexpectedly\n"); exit(1); } fprintf(stdout, "OK\n"); exit(0); // success } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 01 17:06:49 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
// http://golang.org/issue/17641. static void callWithVarargs(void* dummy, ...) { va_list args; va_start(args, dummy); va_end(args); } // Signal handler for SIGSEGV on a C thread. static void segvHandler(int signo, siginfo_t* info, void* ctxt) { sigset_t mask; int i; // Call an arbitrary function that requires the stack to be properly aligned. callWithVarargs("dummy arg", 3.1415);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 4.7K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main4.c
char a[1024]; recur(4, a); sigioSeen = 1; } static jmp_buf jmp; static char* nullPointer; // Signal handler for SIGSEGV on a C thread. static void segvHandler(int signo, siginfo_t* info, void* ctxt) { sigset_t mask; int i; if (sigemptyset(&mask) < 0) { die("sigemptyset"); } if (sigaddset(&mask, SIGSEGV) < 0) { die("sigaddset"); }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 4.2K bytes - Viewed (0)