home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************
- *
- * CAN.H
- *
- *
- *
- ******************************************************************/
-
- #include <stdio.h>
- #include <pwd.h>
- #include <string.h>
- #include <errno.h>
- #include <fcntl.h>
- #include <sys/types.h>
- #include <sys/timeb.h>
- #include <sys/file.h>
- #include <sys/stat.h>
-
- #ifdef SYSV
- #include <ndir.h>
- #endif
-
- #ifdef SUN
- #include <sys/dir.h>
- #endif
-
- #ifdef BSD
- #include <sys/dir.h>
- #endif
-
- #define USAGE "usage: can [ivlrR] file ..."
- #define MAXPATHLEN 80 /* Longest possible path name */
-
- extern char CAN[]; /* String containing .trashcan directory*/
- extern char ANSWER[]; /* String used for finding interactive response */
- extern int VERBOSE; /* Set if Verbose is wanted */
- extern int INTERACTIVE; /* Set if Interactive is wanted */
- extern long TIME; /* Used to get the current time */
- extern int errno; /* Used to return the error value */
- typedef struct utimbuf
- {
- time_t actime; /* access time */
- time_t modtime; /* modification time */
- } UTIMBUF; /* Structure used to change the access time */
- extern UTIMBUF TIMES;
-