source: trunk/athena/bin/delete/pattern.h @ 23667

Revision 23667, 1.2 KB checked in by broder, 15 years ago (diff)
In delete: * Apply patches from jik: - When adding to an array, leave some extra space at the end so that we don't have to keep growing it every time.
Line 
1/*
2 * $Id: pattern.h,v 1.7 1999-01-22 23:09:03 ghudson Exp $
3 *
4 * This program is part of a package including delete, undelete,
5 * lsdel, expunge and purge.  The software suite is meant as a
6 * replacement for rm which allows for file recovery.
7 *
8 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
9 * For copying and distribution information, see the file "mit-copying.h."
10 */
11#include "mit-copying.h"
12
13int add_str(char ***array, int array_count, int *array_size, char *string);
14int add_arrays(char ***array1, int *num1, int *size1, char ***array2,
15               int *num2);
16int find_contents();
17int find_deleted_contents();
18int find_deleted_contents_recurs();
19int find_matches();
20int find_deleted_matches();
21int find_recurses();
22int find_deleted_recurses();
23
24#define FIND_DELETED            (1<<0)
25#define FIND_UNDELETED          (1<<1)
26#define RECURS_FIND_DELETED     (1<<2)
27#define RECURS_FIND_UNDELETED   (1<<3)
28#define RECURS_DELETED          (1<<4)
29#define FOLLW_LINKS             (1<<5)
30#define FOLLW_MOUNTPOINTS       (1<<6)
31#define FIND_DOTFILES           (1<<7)
32#define FIND_CONTENTS           (1<<8)
33#define SUPPRESS_WARNINGS       (1<<9)
34#define RECURS                  (RECURS_FIND_DELETED | RECURS_FIND_UNDELETED |\
35                                 RECURS_DELETED | FIND_CONTENTS)
Note: See TracBrowser for help on using the repository browser.