4 /* If nonzero, ignore nonexistent files. */
5 int ignore_missing_files
;
7 /* If nonzero, query the user about whether to remove each file. */
10 /* If nonzero, recursively remove directories. */
13 /* If nonzero, stdin is a tty. */
16 /* If nonzero, remove directories with unlink instead of rmdir, and don't
17 require a directory to be empty before trying to unlink it.
18 Only works for the super-user. */
21 /* If nonzero, display the name of each file removed. */
27 /* These must be listed in order of increasing seriousness. */
33 #define VALID_STATUS(S) \
34 ((S) == RM_OK || (S) == RM_USER_DECLINED || (S) == RM_ERROR)
39 unsigned int have_filetype_mode
:1;
40 unsigned int have_full_mode
:1;
41 unsigned int have_device
:1;
47 enum RM_status rm
PARAMS ((struct File_spec
*fs
, int user_specified_name
,
48 const struct rm_options
*x
));
49 void fspec_init_file
PARAMS ((struct File_spec
*fs
, const char *filename
));
50 void remove_init
PARAMS ((void));
51 void remove_fini
PARAMS ((void));