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

Revision 1811, 1.5 KB checked in by jik, 35 years ago (diff)
added mit-copyright stuff
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.6 1989-03-27 12:06:24 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     
26typedef struct filrec {
27     char name[MAXNAMLEN];
28     struct filrec *previous;
29     struct filrec *parent;
30     struct filrec *dirs;
31     struct filrec *files;
32     struct filrec *next;
33     Boolean specified;
34     Boolean freed;
35     struct stat specs;
36} filerec;
37
38
39
40filerec *add_directory_to_parent();
41filerec *add_file_to_parent();
42filerec *add_path_to_tree();
43filerec *find_child();
44filerec *first_in_directory();
45filerec *first_specified_in_directory();
46filerec *get_cwd_tree();
47filerec *get_root_tree();
48filerec *next_directory();
49filerec *next_in_directory();
50filerec *next_leaf();
51filerec *next_specified_directory();
52filerec *next_specified_in_directory();
53filerec *next_specified_leaf();
54
55char *get_leaf_path();
56char **accumulate_names();
Note: See TracBrowser for help on using the repository browser.