# define D_INO(dp) 1
#endif
+/* An element in a stack of pointers into `pathname'.
+ `pathp' points to where in `pathname' the terminating '\0' goes
+ for this level's directory name. */
+struct pathstack
+{
+ struct pathstack *next;
+ char *pathp;
+ ino_t inum;
+};
+
char *basename (char *);
char *stpcpy ();
char *xmalloc ();
/* Name this program was run with. */
char *program_name;
+/* Linked list of pathnames of directories in progress in recursive rm.
+ The entries actually contain pointers into `pathname'.
+ `pathstack' is the current deepest level. */
+static struct pathstack *pathstack = NULL;
+
/* Path of file now being processed; extended as necessary. */
static char *pathname;
return 0;
}
-/* An element in a stack of pointers into `pathname'.
- `pathp' points to where in `pathname' the terminating '\0' goes
- for this level's directory name. */
-struct pathstack
-{
- struct pathstack *next;
- char *pathp;
- ino_t inum;
-};
-
-/* Linked list of pathnames of directories in progress in recursive rm.
- The entries actually contain pointers into `pathname'.
- `pathstack' is the current deepest level. */
-static struct pathstack *pathstack = NULL;
-
/* Read directory `pathname' and remove all of its entries,
avoiding use of chdir.
On entry, STATP points to the results of stat on `pathname'.