source: trunk/athena/bin/delete/directories.h @ 2180

Revision 2180, 1.5 KB checked in by jik, 35 years ago (diff)
changed declarations to go along with new error-handling
Line 
1/*
2 * $Source: /afs/dev.mit.edu/source/repository/athena/bin/delete/directories.h,v $
3 * $Author: jik $
4 * $Header: /afs/dev.mit.edu/source/repository/athena/bin/delete/directories.h,v 1.7 1989-10-23 13:39:54 jik Exp $
5 *
6 * This file is part of a package including delete, undelete,
7 * lsdel, expunge and purge.  The software suite is meant as a
8 * replacement for rm which allows for file recovery.
9 *
10 * Copyright (c) 1989 by the Massachusetts Institute of Technology.
11 * For copying and distribution information, see the file "mit-copyright.h."
12 */
13
14#include "mit-copyright.h"
15
16typedef short Boolean;
17#define True                    (Boolean) 1
18#define False                   (Boolean) 0
19
20
21#define blk_to_k(x)             (x * DEV_BSIZE / 1024)
22
23#define FOLLOW_LINKS            1
24#define DONT_FOLLOW_LINKS       0
25
26#define DIR_MATCH               1
27#define DIR_NO_MATCH            0
28     
29typedef struct filrec {
30     char name[MAXNAMLEN];
31     struct filrec *previous;
32     struct filrec *parent;
33     struct filrec *dirs;
34     struct filrec *files;
35     struct filrec *next;
36     Boolean specified;
37     Boolean freed;
38     struct stat specs;
39} filerec;
40
41
42
43int add_directory_to_parent();
44int add_file_to_parent();
45int add_path_to_tree();
46int find_child();
47filerec *first_in_directory();
48filerec *first_specified_in_directory();
49filerec *get_cwd_tree();
50filerec *get_root_tree();
51filerec *next_directory();
52filerec *next_in_directory();
53filerec *next_leaf();
54filerec *next_specified_directory();
55filerec *next_specified_in_directory();
56filerec *next_specified_leaf();
57
58int get_leaf_path();
59int accumulate_names();
Note: See TracBrowser for help on using the repository browser.