source: trunk/athena/bin/delete/stack.h @ 24908

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.
Line 
1/*
2 * $Id: stack.h,v 1.4 1999-01-22 23:09:06 ghudson Exp $
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.
9 * For copying and distribution information, see the file "mit-copying.h."
10 */
11#include "mit-copying.h"
12
13#define STACK_PUSH      0
14#define STACK_POP       1
15#define EMPTY_STACK     2
16
17int dostack(caddr_t data, int op, int bytes);
18
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.