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

Revision 1706, 1.4 KB checked in by jik, 35 years ago (diff)
added headers at the top of the file
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.4 1989-01-27 03:13:29 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
14typedef short Boolean;
15#define True                    (Boolean) 1
16#define False                   (Boolean) 0
17
18typedef enum {
19     FtFile,
20     FtDirectory,
21     FtUnknown,
22} filetype;
23         
24typedef struct filrec {
25     char name[MAXNAMLEN];
26     filetype ftype;
27     struct filrec *previous;
28     struct filrec *parent;
29     struct filrec *dirs;
30     struct filrec *files;
31     struct filrec *next;
32     Boolean specified;
33     Boolean freed;
34} filerec;
35
36
37
38filerec *add_directory_to_parent();
39filerec *add_file_to_parent();
40filerec *add_path_to_tree();
41filerec *find_child();
42filerec *first_in_directory();
43filerec *first_specified_in_directory();
44filerec *get_cwd_tree();
45filerec *get_root_tree();
46filerec *next_directory();
47filerec *next_in_directory();
48filerec *next_leaf();
49filerec *next_specified_directory();
50filerec *next_specified_in_directory();
51filerec *next_specified_leaf();
52
53filetype find_file_type();
54
55char *get_leaf_path();
Note: See TracBrowser for help on using the repository browser.