- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Dave (0.24 sec)
-
src/cmd/cgo/internal/testcarchive/testdata/main6.c
#include <sys/time.h> #include "libgo6.h" int main(int argc, char **argv) { struct timeval tvstart, tvnow; int diff; gettimeofday(&tvstart, NULL); go_start_profile(); // Busy wait so we have something to profile. // If we just sleep the profiling signal will never fire. while (1) { gettimeofday(&tvnow, NULL); diff = (tvnow.tv_sec - tvstart.tv_sec) * 1000 * 1000 + (tvnow.tv_usec - tvstart.tv_usec);
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 830 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main8.c
// license that can be found in the LICENSE file. // Test preemption. #include <stdlib.h> #include "libgo8.h" int main() { GoFunction8(); // That should have exited the program. abort();
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 306 bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main2.c
*p = '\0'; if (i > 0) { recur(i - 1, a); } } static void pipeHandler(int signo, siginfo_t* info, void* ctxt) { sigpipeSeen = 1; } // 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;
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/main2.c
// Read a string from the file descriptor and print it. int main(void) { int i; ssize_t n; char buf[20]; struct timespec ts; // The descriptor will be initialized in a thread, so we have to // give a chance to get opened. for (i = 0; i < 200; i++) { n = read(fd, buf, sizeof buf); if (n >= 0) break; if (errno != EBADF && errno != EINVAL) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/main5.c
exit(EXIT_FAILURE); } if (verbose) { fprintf(stderr, "calling AwaitSIGIO\n"); } awaitSIGIO(); if (sigioSeen != 0) { fprintf(stderr, "C handler saw SIGIO when only Go handler should have\n"); exit(EXIT_FAILURE); } // Tell the Go code to stop catching SIGIO. if (verbose) { fprintf(stderr, "calling dlsym\n"); } resetSIGIO = (void (*)(void))dlsym(handle, "ResetSIGIO");
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/cgo/internal/testcarchive/testdata/main3.c
} if (!SawSIGIO()) { fprintf(stderr, "Go handler did not see SIGIO\n"); exit(EXIT_FAILURE); } if (sigioSeen != 0) { fprintf(stderr, "C handler saw SIGIO when only Go handler should have\n"); exit(EXIT_FAILURE); } // Tell the Go code to stop catching SIGIO. if (verbose) { printf("calling ResetSIGIO\n"); } ResetSIGIO(); 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) -
src/cmd/cgo/internal/testcshared/testdata/main4.c
// Use up some stack space. 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;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 13:19:50 UTC 2023 - 4.2K bytes - Viewed (0)