home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / E-zine / Magazines / crh / freebsd / rootkit / rootkitutil.h < prev   
Encoding:
C/C++ Source or Header  |  2002-05-27  |  263 b   |  24 lines

  1. #define ERR(a) {\
  2. fprintf(stderr,"%s: ",pg);\
  3. perror(a);\
  4. exit(1);\
  5. }
  6.  
  7. #define BASENAME(a) {\
  8. if((pg=(char *)strrchr(a,'/'))) {\
  9. pg++;\
  10. }\
  11. else {\
  12. pg=a;\
  13. }\
  14. }
  15.  
  16. #define USAGE(a) {\
  17. fprintf(stderr,"Usage: %s %s\n",pg,a);\
  18. exit(1);\
  19. }
  20.  
  21. char *pg;
  22.  
  23. #define RK_PROG    pg
  24.