home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume3 / can2 / can.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-03  |  1.1 KB  |  46 lines

  1. /******************************************************************
  2. *
  3. *    CAN.H
  4. *
  5. *
  6. *
  7. ******************************************************************/
  8.  
  9. #include <stdio.h>
  10. #include <pwd.h>
  11. #include <string.h>
  12. #include <errno.h>
  13. #include <fcntl.h>
  14. #include <sys/types.h>
  15. #include <sys/timeb.h>
  16. #include <sys/file.h>
  17. #include <sys/stat.h>
  18.  
  19. #ifdef SYSV
  20. #include <ndir.h>
  21. #endif
  22.  
  23. #ifdef SUN
  24. #include <sys/dir.h>
  25. #endif
  26.  
  27. #ifdef BSD
  28. #include <sys/dir.h>
  29. #endif
  30.  
  31. #define USAGE "usage: can [ivlrR] file ..."
  32. #define MAXPATHLEN 80    /* Longest possible path name */
  33.  
  34. extern char CAN[];    /* String containing .trashcan directory*/    
  35. extern char ANSWER[];        /* String used for finding interactive response */
  36. extern int VERBOSE;            /* Set if Verbose is wanted */
  37. extern int INTERACTIVE;            /* Set if Interactive is wanted */
  38. extern long TIME;        /* Used to get the current time */
  39. extern int errno;    /* Used to return the error value */
  40. typedef struct utimbuf
  41. {
  42.     time_t actime;    /* access time */
  43.     time_t modtime;    /* modification time */
  44. } UTIMBUF;    /* Structure used to change the access time */
  45. extern UTIMBUF TIMES;
  46.