"Fossies" - the Fresh Open Source Software Archive

Member "bonnie++-2.00a/getc_putc.h" (9 Dec 2001, 612 Bytes) of package /linux/privat/bonnie++-2.00a.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "getc_putc.h" see the Fossies "Dox" file reference documentation.

    1 #ifndef GETC_PUTC_H
    2 #define GETC_PUTC_H
    3 
    4 #define FILE_FD 253
    5 
    6 #define TEST_FUNC(XACTION, XNAME, XCODE, XRES) \
    7   if(!quiet) fprintf(stderr, "done\n%s with %s...", XACTION, XNAME); \
    8   fflush(NULL); \
    9   dur.reset(); \
   10   dur.start(); \
   11   for(i = 0; i < size; i++) \
   12   { \
   13     XCODE \
   14     { \
   15       fprintf(stderr, "Can't %s!\n", XNAME); \
   16       return 1; \
   17     } \
   18     c++; \
   19   } \
   20   XRES = dur.stop();
   21 
   22 #define TEST_FUNC_WRITE(XNAME, XCODE, XRES) \
   23   TEST_FUNC("Writing", XNAME, c = 0x20 + (i & 0x3f); XCODE, XRES)
   24 
   25 #define TEST_FUNC_READ(XNAME, XCODE, XRES) \
   26   TEST_FUNC("Reading", XNAME, XCODE, XRES)
   27 
   28 
   29 #endif