diff options
author | Jim Meyering <jim@meyering.net> | 2003-10-15 13:57:21 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-10-15 13:57:21 +0000 |
commit | dcac334f28b329b6a7a100af33276a125defd9a7 (patch) | |
tree | 9cf3e0152cf1992df90bc8c2fe71ea4f4f50d994 /src/chown-core.h | |
parent | 9c81925d00e1ec140ad8c040c904160bb2ea69b2 (diff) | |
download | coreutils-dcac334f28b329b6a7a100af33276a125defd9a7.tar.xz |
[enum Dereference_symlink]: Remove declaration.
[struct Chown_option] (recurse, force_silent): Change type to `bool'.
[struct Chown_option] (dereference): Remove member with ambiguous name.
[struct Chown_option] (affect_symlink_referent): New member.
(chown_files): New prototype.
Diffstat (limited to 'src/chown-core.h')
-rw-r--r-- | src/chown-core.h | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/src/chown-core.h b/src/chown-core.h index 0e2a17e9b..0761b383b 100644 --- a/src/chown-core.h +++ b/src/chown-core.h @@ -38,28 +38,19 @@ enum Verbosity V_off }; -enum Dereference_symlink -{ - DEREF_UNDEFINED = 1, - DEREF_NEVER, /* -P */ - DEREF_COMMAND_LINE_ARGUMENTS, /* -H */ - DEREF_ALWAYS /* -L */ -}; - struct Chown_option { /* Level of verbosity. */ enum Verbosity verbosity; /* If nonzero, change the ownership of directories recursively. */ - int recurse; + bool recurse; - /* This is useful only on systems with support for changing the - ownership of symbolic links. */ - enum Dereference_symlink dereference; + /* This corresponds to the --dereference (opposite of -h) option. */ + bool affect_symlink_referent; /* If nonzero, force silence (no error messages). */ - int force_silent; + bool force_silent; /* The name of the user to which ownership of the files is being given. */ char *user_name; @@ -81,9 +72,9 @@ char * uid_to_name (uid_t); int -change_file_owner (int, const char *, - uid_t, gid_t, - uid_t, gid_t, - struct Chown_option const *); +chown_files (char **files, int bit_flags, + uid_t uid, gid_t gid, + uid_t required_uid, gid_t required_gid, + struct Chown_option const *chopt); #endif /* CHOWN_CORE_H */ |