home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Source: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v $
- * $Author: jik $
- * $Header: /afs/athena.mit.edu/astaff/project/delete/src/RCS/util.h,v 1.11 91/02/20 17:28:33 jik Exp $
- *
- * This file is part of a package including delete, undelete,
- * lsdel, expunge and purge. The software suite is meant as a
- * replacement for rm which allows for file recovery.
- *
- * Copyright (c) 1989 by the Massachusetts Institute of Technology.
- * For copying and distribution information, see the file "mit-copyright.h."
- */
- #include "mit-copyright.h"
-
- #include <sys/stat.h>
- #ifndef S_IFLNK
- #define lstat stat
- #endif
-
- char *append();
- char *convert_to_user_name();
- char *firstpart();
- char *lastpart();
- char *strindex();
- char *strrindex();
- #ifdef MALLOC_DEBUG
- char *Malloc();
- #else
- #define Malloc(a) malloc(a)
- extern char *malloc();
- #endif
-
- int is_mountpoint(), is_link();
-
- #define is_dotfile(A) ((*A == '.') && \
- ((*(A + 1) == '\0') || \
- ((*(A + 1) == '.') && \
- (*(A + 2) == '\0'))))
-
- #define is_deleted(A) ((*A == '.') && (*(A + 1) == '#'))
-
- /* It would be BAD to pass something with a ++ anywhere near it into */
- /* this macro! */
- #define Opendir(dir) opendir(*(dir) ? (dir) : ".")
-