6 /* If nonzero, ignore nonexistent files. */
7 int ignore_missing_files
;
9 /* If nonzero, query the user about whether to remove each file. */
12 /* If nonzero, recursively remove directories. */
15 /* If nonzero, stdin is a tty. */
18 /* If nonzero, remove directories with unlink instead of rmdir, and don't
19 require a directory to be empty before trying to unlink it.
20 Only works for the super-user. */
23 /* If nonzero, display the name of each file removed. */
29 /* These must be listed in order of increasing seriousness. */
36 # define VALID_STATUS(S) \
37 ((S) == RM_OK || (S) == RM_USER_DECLINED || (S) == RM_ERROR)
39 # define UPDATE_STATUS(S, New_value) \
42 if ((New_value) == RM_ERROR \
43 || ((New_value) == RM_USER_DECLINED && (S) == RM_OK)) \
48 enum RM_status
rm (size_t n_files
, char const *const *file
,
49 struct rm_options
const *x
);