libdm.h 482 B

1234567891011121314151617
  1. #ifndef DM_COMMON_LIB
  2. #define DM_COMMON_LIB
  3. #include <stdio.h>
  4. extern int verbose;
  5. #define PRINTF(...) {do{flockfile(stdout);fprintf(stdout,__VA_ARGS__);funlockfile(stdout);}while(0);}
  6. #define EPRINTF(...) {do{flockfile(stderr);fprintf(stderr,__VA_ARGS__);funlockfile(stderr);}while(0);}
  7. #define VPRINTF(...) {if (verbose){flockfile(stdout);fprintf(stdout,__VA_ARGS__);funlockfile(stdout);}}
  8. extern void printdate(FILE *fd);
  9. /*
  10. * export LD_LIBRARY_PATH="this dir"
  11. */
  12. #endif