Revision 24908,
728 bytes
checked in by ghudson, 14 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.
|
Rev | Line | |
---|
[2223] | 1 | /* |
---|
[12350] | 2 | * $Id: stack.h,v 1.4 1999-01-22 23:09:06 ghudson Exp $ |
---|
[2223] | 3 | * |
---|
| 4 | * This file 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." |
---|
[2223] | 10 | */ |
---|
[4505] | 11 | #include "mit-copying.h" |
---|
[2223] | 12 | |
---|
[2220] | 13 | #define STACK_PUSH 0 |
---|
| 14 | #define STACK_POP 1 |
---|
| 15 | #define EMPTY_STACK 2 |
---|
| 16 | |
---|
[24908] | 17 | int dostack(caddr_t data, int op, int bytes); |
---|
| 18 | |
---|
[2220] | 19 | #define push(data, size) dostack((caddr_t) data, STACK_PUSH, size) |
---|
| 20 | #define pop(data, size) dostack((caddr_t) data, STACK_POP, size) |
---|
| 21 | #define popall() dostack((caddr_t) NULL, EMPTY_STACK, 0) |
---|
| 22 | |
---|
Note: See
TracBrowser
for help on using the repository browser.