Document filemode changes.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:24:49 +0000 (23:24 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 17 Apr 2006 23:24:49 +0000 (23:24 +0000)
ChangeLog
doc/ChangeLog
lib/ChangeLog
m4/ChangeLog

index f97ba3e..5a07c55 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,16 @@
-2006-04-18  Jim Meyering  <jim@meyering.net>
+2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
 
        * Version 6.0-cvs.
 
+       * src/chmod.c (describe_change): Adjust to filemode changes.
+       * src/ls.c (HAVE_ST_DM_MODE): Remove; moved to ../lib/filemode.c.
+       (print_long_format): Use (new) filemodestring rather than
+       (old) mode_string, so that we get more file types right, at least
+       in theory.  Adjust to filemode changes.
+       * src/stat.c (human_access): Likewise.
+
+2006-04-18  Jim Meyering  <jim@meyering.net>
+
        * src/ptx.c (main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
        ignore file.  This has never been enabled.  Reported by Eric Blake.
 
index d598abe..69d9bc6 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * coreutils.texi (What information is listed): Add P for Solaris
+       10 ports.  Add commented-out entries for other types that POSIX
+       says are possible, or that I observed in FreeBSD documentation.
+
 2006-04-18  Jim Meyering  <jim@meyering.net>
 
        * coreutils.texi (Input processing in ptx): Remove mention of the
index 76d4694..b5ebafd 100644 (file)
@@ -1,5 +1,23 @@
 2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * filemode.c: Include "filemode.h" first, to test the interface.
+       Assume that filemode.h includes sys/types.h and sys/stat.h.
+       (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
+       (ftypelet): Reorder to put common cases first, for efficiency.
+       Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
+       to do 'M'.
+       (strmode): Renamed from mode_string, and now stores 12 bytes instead
+       of 10, for compatibility with FreeBSD.  All callers changed.
+       (filemodestring): Now stores 12 bytes instead of 10, and sets file types
+       that can't be deduced solely from st_mode.  First arg is now a const
+       pointer.
+       * filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
+       (strmode): Renamed from mode_string.
+       (filemodestring): New decl.
+       * stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
+       (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never needed.
+       (S_ISPORT, S_ISWHT): New macros, if not already defined.
+
        * openat.h (openat_needs_fchdir) [ ! defined __OPENAT_PREFIX]:
        Turn this into a macro that always returns false.
 
index 0cf7432..48fe348 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * filemode.m4 (gl_FILEMODE): Check for strmode declaration.
+
 2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
 
        * jm-macros.m4 (gl_MACROS): Check for setgroups and sync, since they