]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Reflect renaming: mreadlink-with-size -> areadlink-with-size.
authorJim Meyering <meyering@rho.meyering.net>
Tue, 28 Aug 2007 07:11:36 +0000 (09:11 +0200)
committerJim Meyering <jim@meyering.net>
Tue, 28 Aug 2007 09:23:27 +0000 (11:23 +0200)
* bootstrap.conf: Update module name.
* src/copy.c (copy_internal): Update header and function names.
* src/ls.c (get_link_name): Likewise.
* src/readlink.c (main): Likewise.
* src/stat.c (print_stat): Likewise.

ChangeLog
bootstrap.conf
src/copy.c
src/ls.c
src/readlink.c
src/stat.c

index 79c7808c9c2ec3e33c077c0cf6a67757cbbc1982..62bcc74a2f48d6c8bb71c3257ea4085912ad8d79 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2007-08-28  Jim Meyering  <jim@meyering.net>
 
+       Reflect renaming: mreadlink-with-size -> areadlink-with-size.
+       * bootstrap.conf: Update module name.
+       * src/copy.c (copy_internal): Update header and function names.
+       * src/ls.c (get_link_name): Likewise.
+       * src/readlink.c (main): Likewise.
+       * src/stat.c (print_stat): Likewise.
+
        Add file system type names and magic numbers from "man 2 statfs".
        * src/stat.c (human_fstype): Also handle BEFS, BFS, BINFMT_MISC,
        FUSECTL, HUGETLBFS, NFSD and OPENPROM.
index 3fe04972cafbbabc670ca602ecd7e7c48a219419..93bada9d417a3dcd48ecd6bc48f4f62de9dfc7bd 100644 (file)
@@ -62,7 +62,7 @@ gnulib_modules="
        memrchr mgetgroups
        mkancesdirs mkdir mkdir-p mkstemp mktime modechange
        mountlist mpsort obstack pathmax perl physmem posixtm posixver putenv
-       quote quotearg raise readlink mreadlink-with-size readtokens
+       quote quotearg raise readlink areadlink-with-size readtokens
        readtokens0 readutmp
        realloc regex rename-dest-slash rmdir rmdir-errno
        root-dev-ino
index c1d8519d585386476e24f707f2475b70872d9373..92588bf14683ff5bfad27feb1061ad5966c2070e 100644 (file)
@@ -53,7 +53,7 @@
 #include "utimecmp.h"
 #include "utimens.h"
 #include "write-any-file.h"
-#include "mreadlink.h"
+#include "areadlink.h"
 #include "yesno.h"
 
 #ifndef HAVE_FCHOWN
@@ -1815,7 +1815,7 @@ copy_internal (char const *src_name, char const *dst_name,
     }
   else if (S_ISLNK (src_mode))
     {
-      char *src_link_val = mreadlink_with_size (src_name, src_sb.st_size);
+      char *src_link_val = areadlink_with_size (src_name, src_sb.st_size);
       if (src_link_val == NULL)
        {
          error (0, errno, _("cannot read symbolic link %s"), quote (src_name));
@@ -1836,7 +1836,7 @@ copy_internal (char const *src_name, char const *dst_name,
                 in some cases, e.g., if the destination symlink has the
                 wrong ownership, permissions, or time stamps.  */
              char *dest_link_val =
-               mreadlink_with_size (dst_name, dst_sb.st_size);
+               areadlink_with_size (dst_name, dst_sb.st_size);
              if (dest_link_val && STREQ (dest_link_val, src_link_val))
                same_link = true;
              free (dest_link_val);
index 84090618de0c983935087aa0ed98f325958879bc..5eacbad0d43bea77476bfa44508ab479f8a919b7 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
 #include "strftime.h"
 #include "strverscmp.h"
 #include "xstrtol.h"
-#include "mreadlink.h"
+#include "areadlink.h"
 
 #define PROGRAM_NAME (ls_mode == LS_LS ? "ls" \
                      : (ls_mode == LS_MULTI_COL \
@@ -2840,7 +2840,7 @@ is_directory (const struct fileinfo *f)
 static void
 get_link_name (char const *filename, struct fileinfo *f, bool command_line_arg)
 {
-  f->linkname = mreadlink_with_size (filename, f->stat.st_size);
+  f->linkname = areadlink_with_size (filename, f->stat.st_size);
   if (f->linkname == NULL)
     file_failure (command_line_arg, _("cannot read symbolic link %s"),
                  filename);
index e7d05124e62e8c4fdf3389826402435bc20f5010..859e2a30cedafde04e4b4205a8dd9ea438b5a7ba 100644 (file)
@@ -24,7 +24,7 @@
 #include "system.h"
 #include "canonicalize.h"
 #include "error.h"
-#include "mreadlink.h"
+#include "areadlink.h"
 #include "quote.h"
 
 /* The official name of this program (e.g., no `g' prefix).  */
@@ -158,7 +158,7 @@ main (int argc, char **argv)
 
   value = (can_mode != -1
           ? canonicalize_filename_mode (fname, can_mode)
-          : mreadlink_with_size (fname, 63));
+          : areadlink_with_size (fname, 63));
   if (value)
     {
       printf ("%s%s", value, (no_newline ? "" : "\n"));
index 183f794ea2d77d50a99947f580109011e8a03443..912ef87c57d647ccccb4e2b45dea8b41c8f2d6b9 100644 (file)
@@ -67,7 +67,7 @@
 #include "quotearg.h"
 #include "stat-time.h"
 #include "strftime.h"
-#include "mreadlink.h"
+#include "areadlink.h"
 
 #define alignof(type) offsetof (struct { char c; type x; }, x)
 
@@ -579,7 +579,7 @@ print_stat (char *pformat, size_t prefix_len, char m,
       out_string (pformat, prefix_len, quote (filename));
       if (S_ISLNK (statbuf->st_mode))
        {
-         char *linkname = mreadlink_with_size (filename, statbuf->st_size);
+         char *linkname = areadlink_with_size (filename, statbuf->st_size);
          if (linkname == NULL)
            {
              error (0, errno, _("cannot read symbolic link %s"),