1 /*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
2 /*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
3 /*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
4 /*%% (c) Copyright 1993, 1994 Novell, Inc. */
5 /*%% $XConsortium: remover.h /main/3 1995/10/20 16:36:57 rswiston $ */
7 * remover.h - Interface to remover, an LS/TT-aware rm(1) and rmdir(1).
9 * Copyright (c) 1990 by Sun Microsystems, Inc.
16 #include <api/c/tt_c.h>
17 #include <util/tt_string.h>
19 class remover : public _Tt_object {
21 remover( char *arg0 );
26 bool_t can_rm( _Tt_string path );
29 void parse_args( int argc, char **argv );
30 void usage( FILE *fs = stderr ) const;
31 bool_t should_rm() { return _should_rm; }
32 bool_t force() { return _force; }
33 bool_t tt_opened() { return _tt_opened; }
36 Tt_status _ttrm_paths( _Tt_string_list_ptr paths );
37 void _parse_arg( char *arg );
39 _Tt_string _process_name;
40 _Tt_string _prog_name;
41 _Tt_string _process_id;
42 _Tt_string_list_ptr _args;
48 _Tt_string_list_ptr _paths;
51 #endif /* _REMOVER_H */