1 /* chown-core.h -- types and prototypes shared by chown and chgrp.
2 Copyright (C) 2000, 2003 Free Software Foundation.
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
28 CH_NO_CHANGE_REQUESTED
33 /* Print a message for each file that is processed. */
36 /* Print a message for each file whose attributes we change. */
39 /* Do not be verbose. This is the default. */
45 /* Level of verbosity. */
46 enum Verbosity verbosity
;
48 /* If nonzero, change the ownership of directories recursively. */
51 /* Pointer to the device and inode numbers of `/', when --recursive.
52 Need not be freed. Otherwise NULL. */
53 struct dev_ino
*root_dev_ino
;
55 /* This corresponds to the --dereference (opposite of -h) option. */
56 bool affect_symlink_referent
;
58 /* If nonzero, force silence (no error messages). */
61 /* The name of the user to which ownership of the files is being given. */
64 /* The name of the group to which ownership of the files is being given. */
69 chopt_init (struct Chown_option
*);
72 chopt_free (struct Chown_option
*);
81 chown_files (char **files
, int bit_flags
,
83 uid_t required_uid
, gid_t required_gid
,
84 struct Chown_option
const *chopt
);
86 #endif /* CHOWN_CORE_H */