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 | |
---|
16 | typedef 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 | typedef 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 | |
---|
40 | filerec *add_directory_to_parent(); |
---|
41 | filerec *add_file_to_parent(); |
---|
42 | filerec *add_path_to_tree(); |
---|
43 | filerec *find_child(); |
---|
44 | filerec *first_in_directory(); |
---|
45 | filerec *first_specified_in_directory(); |
---|
46 | filerec *get_cwd_tree(); |
---|
47 | filerec *get_root_tree(); |
---|
48 | filerec *next_directory(); |
---|
49 | filerec *next_in_directory(); |
---|
50 | filerec *next_leaf(); |
---|
51 | filerec *next_specified_directory(); |
---|
52 | filerec *next_specified_in_directory(); |
---|
53 | filerec *next_specified_leaf(); |
---|
54 | |
---|
55 | char *get_leaf_path(); |
---|
56 | char **accumulate_names(); |
---|
Note: See
TracBrowser
for help on using the repository browser.