Searched defs:fprintf (Results 1 - 4 of 4) sorted by relevance

/external/libxml2/
H A Dtrio.h164 # define fprintf trio_fprintf macro
/external/libxslt/libxslt/
H A Dtrio.h164 # define fprintf trio_fprintf macro
/external/e2fsprogs/intl/
H A Dlibgnuintl.h295 #undef fprintf macro
296 #define fprintf libintl_fprintf macro
297 extern int fprintf (FILE *, const char *, ...);
/external/valgrind/unittest/
H A Dracecheck_unittest.cc3296 // Check that fprintf doesn't introduce h-b with the start of the
3303 fprintf(stdout, "Hello, world!\n");
5465 fprintf(stderr, "%s\n", descr);
7661 fprintf(stderr, "Hello from a thread: %d\n", 2);
7663 fprintf(stderr, "Hello from a thread\n");
7664 fprintf(stdout, "Hello from a thread: %d\n", 2);
7665 fprintf(stdout, "Hello from a thread\n");
7723 fprintf(stdout, "printing a string: %s\n", s);
7724 fprintf(stderr, "printing a string: %s\n", s2);
7749 fprintf(stdou
5427 CHECK(off < 2); ((uint32_t*)MEM)[off] = 1; break; case 2: CHECK(off < 4); ((uint16_t*)MEM)[off] = 1; break; case 1: CHECK(off < 8); ((uint8_t*)MEM)[off] = 1; break; default: CHECK(0); break; } } void Thread1() { GenericWrite(size[0], offset[0]); } void Thread2() { GenericWrite(size[1], offset[1]); } bool TwoRangesIntersect(size_t beg1, size_t end1, size_t beg2, size_t end2) { if (beg1 <= beg2 && end1 > beg2) return true; if (beg2 <= beg1 && end2 > beg1) return true; return false; } void RunTwoThreads(size_t size1, size_t offset1, size_t size2, size_t offset2) { size[0] = size1; size[1] = size2; offset[0] = offset1; offset[1] = offset2; long beg1 = offset1 * size1; long end1 = beg1 + size1; long beg2 = offset2 * size2; long end2 = beg2 + size2; bool have_intersection = TwoRangesIntersect(beg1, end1, beg2, end2); char descr[1024]; MEM = &arr[arr_index++]; sprintf(descr, Ó, beg1, end1, beg2, end2, have_intersection ? Ó : Ó, MEM); fprintf(stderr, Ó, descr); char *racey_addr_beg = (char*)MEM + max(beg1, beg2); char *racey_addr_end = (char*)MEM + min(end1, end2); if (have_intersection) { ANNOTATE_EXPECT_RACE(racey_addr_beg, descr); if (racey_addr_end - racey_addr_beg >= 2) { ANNOTATE_BENIGN_RACE_SIZED(racey_addr_beg+1, racey_addr_end - racey_addr_beg - 1, Ó); } } MyThreadArray t1(Thread1, Thread2); t1.Start(); t1.Join(); } void TestTwoSizes(size_t size1, size_t offset1, size_t size2, size_t offset2) { RunTwoThreads(size1, offset1, size2, offset2); RunTwoThreads(size2, offset2, size1, offset1); } TEST(PositiveTests, DifferentSizeAccessTest) { for(int size1_log = 3; size1_log >= 0; size1_log--) { for (int size2_log = size1_log; size2_log >= 0; size2_log--) argument
[all...]

Completed in 189 milliseconds