[1705] | 1 | /* |
---|
[12350] | 2 | * $Id: pattern.h,v 1.7 1999-01-22 23:09:03 ghudson Exp $ |
---|
[1705] | 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. |
---|
[4505] | 9 | * For copying and distribution information, see the file "mit-copying.h." |
---|
[1705] | 10 | */ |
---|
[4505] | 11 | #include "mit-copying.h" |
---|
[1705] | 12 | |
---|
[23667] | 13 | int add_str(char ***array, int array_count, int *array_size, char *string); |
---|
| 14 | int add_arrays(char ***array1, int *num1, int *size1, char ***array2, |
---|
| 15 | int *num2); |
---|
[2173] | 16 | int find_contents(); |
---|
| 17 | int find_deleted_contents(); |
---|
| 18 | int find_deleted_contents_recurs(); |
---|
| 19 | int find_matches(); |
---|
| 20 | int find_deleted_matches(); |
---|
| 21 | int find_recurses(); |
---|
| 22 | int find_deleted_recurses(); |
---|
[2221] | 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) |
---|