diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 20:05:42 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-08-03 20:05:42 +0000 |
commit | 005ffa4fb1b287aca729658c2e4cadcad9f21f73 (patch) | |
tree | 98c5f6e8dcd6b730f353011661af3f5a785633eb /src | |
parent | 216feb30f72f8d8792f9ce30a28af9926a693b14 (diff) | |
download | coreutils-005ffa4fb1b287aca729658c2e4cadcad9f21f73.tar.xz |
Add copyright notice.
(struct rm_options): Use bool for booleans.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.h | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/src/remove.h b/src/remove.h index f067fd9d3..7ea2a9569 100644 --- a/src/remove.h +++ b/src/remove.h @@ -1,3 +1,22 @@ +/* Remove directory entries. + + Copyright (C) 1998, 2000, 2002, 2003, 2004 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + #ifndef REMOVE_H # define REMOVE_H @@ -5,29 +24,29 @@ struct rm_options { - /* If nonzero, ignore nonexistent files. */ - int ignore_missing_files; + /* If true, ignore nonexistent files. */ + bool ignore_missing_files; - /* If nonzero, query the user about whether to remove each file. */ - int interactive; + /* If true, query the user about whether to remove each file. */ + bool interactive; - /* If nonzero, recursively remove directories. */ - int recursive; + /* If true, recursively remove directories. */ + bool recursive; /* Pointer to the device and inode numbers of `/', when --recursive. Otherwise NULL. */ struct dev_ino *root_dev_ino; /* If nonzero, stdin is a tty. */ - int stdin_tty; + bool stdin_tty; - /* If nonzero, remove directories with unlink instead of rmdir, and don't + /* If true, remove directories with unlink instead of rmdir, and don't require a directory to be empty before trying to unlink it. Only works for the super-user. */ - int unlink_dirs; + bool unlink_dirs; - /* If nonzero, display the name of each file removed. */ - int verbose; + /* If true, display the name of each file removed. */ + bool verbose; /* If true, treat the failure by the rm function to restore the current working directory as a fatal error. I.e., if this field |