| 1234567891011121314151617 |
- #ifndef DM_COMMON_LIB
- #define DM_COMMON_LIB
- #include <stdio.h>
- extern int verbose;
- #define PRINTF(...) {do{flockfile(stdout);fprintf(stdout,__VA_ARGS__);funlockfile(stdout);}while(0);}
- #define EPRINTF(...) {do{flockfile(stderr);fprintf(stderr,__VA_ARGS__);funlockfile(stderr);}while(0);}
- #define VPRINTF(...) {if (verbose){flockfile(stdout);fprintf(stdout,__VA_ARGS__);funlockfile(stdout);}}
- extern void printdate(FILE *fd);
- /*
- * export LD_LIBRARY_PATH="this dir"
- */
- #endif
|