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

Revision 24908, 1.2 KB checked in by ghudson, 13 years ago (diff)
In delete: * Patches from Jonathan Kamens: - The "-f" flag to delete should suppress nonexistent file errors but not other errors. - When the "-v" flag is specified to expunge, the correct totals should be reported. Previously, the totals were incorrect. - Code cleanup.
RevLine 
[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]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);
[2173]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();
[24908]23void free_list(char **list, int num);
24int no_wildcards (char *name);
[2221]25
26#define FIND_DELETED            (1<<0)
27#define FIND_UNDELETED          (1<<1)
28#define RECURS_FIND_DELETED     (1<<2)
29#define RECURS_FIND_UNDELETED   (1<<3)
30#define RECURS_DELETED          (1<<4)
31#define FOLLW_LINKS             (1<<5)
32#define FOLLW_MOUNTPOINTS       (1<<6)
33#define FIND_DOTFILES           (1<<7)
34#define FIND_CONTENTS           (1<<8)
35#define SUPPRESS_WARNINGS       (1<<9)
36#define RECURS                  (RECURS_FIND_DELETED | RECURS_FIND_UNDELETED |\
37                                 RECURS_DELETED | FIND_CONTENTS)
Note: See TracBrowser for help on using the repository browser.