]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[enum Dereference_symlink]: Remove declaration.
authorJim Meyering <jim@meyering.net>
Wed, 15 Oct 2003 13:57:21 +0000 (13:57 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 15 Oct 2003 13:57:21 +0000 (13:57 +0000)
[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.

src/chown-core.h

index 0e2a17e9b4ab95a2732da3e436c36cd3e887a202..0761b383bd3884a30368db4e1e6a44941173f248 100644 (file)
@@ -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 */