Paul Eggert [Mon, 17 Apr 2006 23:23:43 +0000 (23:23 +0000)]
(human_access): Use (new) filemodestring rather than
(old) mode_string, so that we get more file types right, at least
in theory. Adjust to filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:23:11 +0000 (23:23 +0000)]
(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.
Paul Eggert [Mon, 17 Apr 2006 23:22:51 +0000 (23:22 +0000)]
(describe_change): Adjust to filemode changes.
Paul Eggert [Mon, 17 Apr 2006 23:22:16 +0000 (23:22 +0000)]
(gl_FILEMODE): Check for strmode declaration.
Paul Eggert [Mon, 17 Apr 2006 23:22:01 +0000 (23:22 +0000)]
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.
Paul Eggert [Mon, 17 Apr 2006 23:21:30 +0000 (23:21 +0000)]
(HAVE_DECL_STRMODE): Include <string.h> for strmode.
(strmode): Renamed from mode_string.
(filemodestring): New decl.
Paul Eggert [Mon, 17 Apr 2006 23:21:14 +0000 (23:21 +0000)]
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.
Paul Eggert [Mon, 17 Apr 2006 23:20:53 +0000 (23:20 +0000)]
(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.
Jim Meyering [Mon, 17 Apr 2006 23:17:16 +0000 (23:17 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Apr 2006 23:17:11 +0000 (23:17 +0000)]
(main) [DEFAULT_IGNORE_FILE]: Remove code to use a default
ignore file. This has never been enabled. Reported by Eric Blake.
Jim Meyering [Mon, 17 Apr 2006 23:14:57 +0000 (23:14 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Apr 2006 23:14:45 +0000 (23:14 +0000)]
(Input processing in ptx): Remove mention of the
default --ignore file, /usr/local/lib/eign. That file has never been used.
Reported by Eric Blake.
Jim Meyering [Mon, 17 Apr 2006 21:07:53 +0000 (21:07 +0000)]
*** empty log message ***
Jim Meyering [Mon, 17 Apr 2006 20:53:20 +0000 (20:53 +0000)]
*** empty log message ***
Paul Eggert [Mon, 17 Apr 2006 20:48:23 +0000 (20:48 +0000)]
(openat_needs_fchdir) [defined __OPENAT_PREFIX]:
Turn this into a macro that always returns true.
Paul Eggert [Sat, 15 Apr 2006 07:39:46 +0000 (07:39 +0000)]
(futimens): glibc futimesat messes up if /proc isn't mounted.
Jim Meyering [Fri, 14 Apr 2006 20:33:42 +0000 (20:33 +0000)]
*** empty log message ***
Jim Meyering [Fri, 14 Apr 2006 16:36:34 +0000 (16:36 +0000)]
remove SPACEs before TAB
Jim Meyering [Fri, 14 Apr 2006 16:35:44 +0000 (16:35 +0000)]
*** empty log message ***
Jim Meyering [Fri, 14 Apr 2006 16:35:41 +0000 (16:35 +0000)]
(fts_open): Don't allocate parent if *argv==NULL. Patch from glibc.
Jim Meyering [Fri, 14 Apr 2006 16:26:15 +0000 (16:26 +0000)]
(fts_build): Free `head' before returning NULL, in two places,
to avoid leaks. Patch from glibc.
Jim Meyering [Fri, 14 Apr 2006 16:21:21 +0000 (16:21 +0000)]
(fts_build): Remove just-#if-0'd code and the code that
declares and sets cderrno.
Jim Meyering [Fri, 14 Apr 2006 16:11:01 +0000 (16:11 +0000)]
(fts_build): #if-0-out a block of unused code. Patch via glibc.
Paul Eggert [Thu, 13 Apr 2006 22:17:17 +0000 (22:17 +0000)]
Don't use wchar_t or wctype_t; update comment.
Paul Eggert [Thu, 13 Apr 2006 22:16:58 +0000 (22:16 +0000)]
(RE_DUP_MAX): Update comment to match current implementation.
Paul Eggert [Thu, 13 Apr 2006 22:16:43 +0000 (22:16 +0000)]
(init_dfa): Don't use wchar_t or wctype_t if RE_ENABLE_I18N
is not defined. Problem reported by Mark D. Baushke via Derek R. Price.
Paul Eggert [Thu, 13 Apr 2006 04:01:47 +0000 (04:01 +0000)]
(What information is listed): Document 'ls' type letters.
Paul Eggert [Wed, 12 Apr 2006 20:15:30 +0000 (20:15 +0000)]
Port to Interix.
Paul Eggert [Wed, 12 Apr 2006 20:15:08 +0000 (20:15 +0000)]
(sync) [!HAVE_SYNC]: New macro.
Paul Eggert [Wed, 12 Apr 2006 20:14:42 +0000 (20:14 +0000)]
(USE_STATVFS): New macro.
Include <sys/statvfs.h> and use statvfs only if USE_STATVFS.
(NAMEMAX_FORMAT): define a bit more clearly, now that the
statvfs-using code is a bit more regular.
Paul Eggert [Wed, 12 Apr 2006 20:14:19 +0000 (20:14 +0000)]
(main) [! HAVE_SETGROUPS]: Don't call setgroups.
Paul Eggert [Wed, 12 Apr 2006 20:14:01 +0000 (20:14 +0000)]
(linkfunc): Remove. This method ran into a compiler/linker
bug in Interix. Just call symlink or link directly. All uses changed.
Paul Eggert [Wed, 12 Apr 2006 20:13:34 +0000 (20:13 +0000)]
(gl_MACROS): Check for setgroups and sync, since they
are not in Interix.
Paul Eggert [Wed, 12 Apr 2006 20:13:13 +0000 (20:13 +0000)]
Include <inttypes.h> and <stdint.h> if they exist.
Paul Eggert [Wed, 12 Apr 2006 20:13:00 +0000 (20:13 +0000)]
Don't include <inttypes.h> or <stdint.h>, since
fsusage.h now does that. Include fsusage.h first, to test interface.
Prefer statvfs if it works, since it's blessed by POSIX. Attempt
at most one method (the old code could have generated decls that
didn't conform to C89, not that this was ever exercised).
Paul Eggert [Wed, 12 Apr 2006 07:49:34 +0000 (07:49 +0000)]
csplit, nl, expr now conform to POSIX better, and are
more-compatible with traditional Unix, with respect to regular
expressions.
Paul Eggert [Wed, 12 Apr 2006 07:47:11 +0000 (07:47 +0000)]
(expr invocation): expr exit status is 3 only for
internal errors now; 2 is also for invalid values in expressions.
Paul Eggert [Wed, 12 Apr 2006 07:37:11 +0000 (07:37 +0000)]
Clear the RE_NO_EMPTY_RANGES re syntax option, as this is a less intrusive
change from the old (Emacs) behavior, and POSIX allows us to treat [z-a]
as an empty range.
Paul Eggert [Wed, 12 Apr 2006 07:18:11 +0000 (07:18 +0000)]
expr, csplit, nl patches to conform better to POSIX and/or traditional
behavior. Port tests to Solaris 8.
Paul Eggert [Wed, 12 Apr 2006 07:17:26 +0000 (07:17 +0000)]
Use \{...\} in test RE, to test that we're conforming to POSIX.
Paul Eggert [Wed, 12 Apr 2006 07:17:02 +0000 (07:17 +0000)]
(fail-a): Adjust exit status to match new expr behavior, for status 2 versus 3.
(anchor): New test.
(bre1, bre2, bre3, bre4, bre5, bre6, bre7, bre8, bre9, bre10):
(bre11, bre12, bre13, bre14, bre15, bre16, bre17, bre18, bre19, bre20):
(bre21, bre22, bre23, bre24, bre25, bre26, bre27, bre28, bre29, bre30):
(bre31, bre32, bre33, bre34, bre35, bre36, bre37, bre38, bre39, bre40):
(bre41, bre42, bre43, bre44, bre45, bre46, bre47, bre48, bre49, bre50):
(bre51, bre52, bre53, bre54, bre55, bre56, bre57, bre58, bre59, bre60):
(bre61, bre62): New tests.
Paul Eggert [Wed, 12 Apr 2006 07:16:20 +0000 (07:16 +0000)]
(docolon): Set re_syntax_options to a value that is compatible with
what POSIX requires. Also, don't let anchors match
newline; this fixes an incompatibility with tradition and with POSIX.
Don't warn about leading ^. POSIX says it is unspecified whether
^ is a special character, which means that implementations can
either treat it as special or not, but either way a warning is not
allowed (unless the regexp is otherwise invalid). Instead, anchor
the expression but treat ^ as an anchor; this is the traditional
behavior (e.g., Solaris 10).
(eval4, eval3, eval2): Treat non-numeric args, division by zero,
and the like as invalid expressions (exit status 2), not as
failure of 'expr' (exit status 3). This is more consistent with
how Solaris behaves.
Paul Eggert [Wed, 12 Apr 2006 07:15:21 +0000 (07:15 +0000)]
(build_type_arg): Set re_syntax_options to a value that is compatible
with what POSIX requires.
Paul Eggert [Wed, 12 Apr 2006 07:14:53 +0000 (07:14 +0000)]
(extract_regexp): Set re_syntax_options to a
value that is compatible with what POSIX requires.
Paul Eggert [Wed, 12 Apr 2006 07:11:52 +0000 (07:11 +0000)]
(gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
Paul Eggert [Wed, 12 Apr 2006 07:07:55 +0000 (07:07 +0000)]
Do not assume that 'sed' can handle long, newline-free input.
Evaluate expr once, not $n times.
Paul Eggert [Wed, 12 Apr 2006 07:07:32 +0000 (07:07 +0000)]
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
handle long, newline-free input.
Paul Eggert [Tue, 11 Apr 2006 00:52:16 +0000 (00:52 +0000)]
Adjust to new regex.h API (with new fastmap type), and clean
up the regex storage allocation a bit.
Paul Eggert [Tue, 11 Apr 2006 00:52:01 +0000 (00:52 +0000)]
(compiled_separator_fastmap): New ver.
(main): Use it. Don't bother allocating a buffer.
Paul Eggert [Tue, 11 Apr 2006 00:51:42 +0000 (00:51 +0000)]
(context_regex_string, word_regex_string): Remove.
(context_regex, word_regex): New vars, replacing the above.
All uses changed.
(struct regex_data): New type.
(compile_regex): Renamed from alloc_and_compile_regex, since
we no longer allocate storage. Arg is now a struct regex_data *,
not a const char *. All uses changed. Don't allocate the fastmap;
instead, take it from the caller. Don't convert size_t to int,
to avoid arithmetic overflow problems. Don't bother freeing
storage afterwards; it's not worth the aggravation.
Paul Eggert [Tue, 11 Apr 2006 00:51:23 +0000 (00:51 +0000)]
(body_fastmap, header_fastmap, footer_fastmap):
New vars.
(build_type_arg): New fastmap arg. All uses changed.
Don't bother allocating a buffer, but set a fastmap.
Paul Eggert [Tue, 11 Apr 2006 00:50:56 +0000 (00:50 +0000)]
(docolon): Allocate and use a fastmap.
Don't bother allocating a buffer.
Paul Eggert [Tue, 11 Apr 2006 00:50:33 +0000 (00:50 +0000)]
Update copyright year.
Paul Eggert [Tue, 11 Apr 2006 00:49:59 +0000 (00:49 +0000)]
(struct control): Put re_compiled member at the
end, since it's large. Change regexpr member from char * to bool;
all uses changed. Add new member fastmap.
(extract_regexp): regexp arg is now char const *, not char *.
Don't bother duplicating the regular expression; it's not needed.
Set fastmap from new fastmap member. Don't bother allocating
a buffer, as the regexp code does a better job than we do.
Jim Meyering [Mon, 10 Apr 2006 19:15:08 +0000 (19:15 +0000)]
remove useless spaces before TABs
Paul Eggert [Mon, 10 Apr 2006 06:46:07 +0000 (06:46 +0000)]
Import latest regex module from gnulib.
Paul Eggert [Sun, 9 Apr 2006 07:55:05 +0000 (07:55 +0000)]
Add 'hostid' to System context menu line.
Paul Eggert [Sun, 9 Apr 2006 07:52:33 +0000 (07:52 +0000)]
(Top): Fix typo in System context menu entry: hostid wasn't mentioned.
Jim Meyering [Thu, 30 Mar 2006 13:47:57 +0000 (13:47 +0000)]
(iwrite): Remove assignment without effect.
Reported by Felix Rauch Valenti.
Jim Meyering [Thu, 30 Mar 2006 13:26:59 +0000 (13:26 +0000)]
*** empty log message ***
Jim Meyering [Tue, 28 Mar 2006 09:48:26 +0000 (09:48 +0000)]
*** empty log message ***
Jim Meyering [Tue, 28 Mar 2006 09:48:15 +0000 (09:48 +0000)]
(General options in ptx): Undocument --copyright.
Jim Meyering [Tue, 28 Mar 2006 09:47:56 +0000 (09:47 +0000)]
*** empty log message ***
Jim Meyering [Tue, 28 Mar 2006 09:47:28 +0000 (09:47 +0000)]
(usage): Remove mention of --copyright/-C.
(main): Alias --copyright to --version plus a deprecation warning.
Jim Meyering [Tue, 28 Mar 2006 09:46:38 +0000 (09:46 +0000)]
deprecate ptx's --copyright (-C) option
Jim Meyering [Mon, 27 Mar 2006 14:08:04 +0000 (14:08 +0000)]
*** empty log message ***
Jim Meyering [Mon, 27 Mar 2006 14:08:00 +0000 (14:08 +0000)]
(dirname invocation): Macro in previous patch was too broad.
Jim Meyering [Mon, 27 Mar 2006 10:30:34 +0000 (10:30 +0000)]
version: 5.94
Jim Meyering [Mon, 27 Mar 2006 07:35:23 +0000 (07:35 +0000)]
.
Jim Meyering [Mon, 27 Mar 2006 07:34:48 +0000 (07:34 +0000)]
(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.
Tiny patch from Nickolai Zeldovich.
Jim Meyering [Mon, 27 Mar 2006 07:32:44 +0000 (07:32 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Mar 2006 12:33:28 +0000 (12:33 +0000)]
.
Jim Meyering [Sun, 26 Mar 2006 12:30:45 +0000 (12:30 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Mar 2006 12:30:37 +0000 (12:30 +0000)]
(gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
Jim Meyering [Sun, 26 Mar 2006 12:30:07 +0000 (12:30 +0000)]
(FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
(FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
Jim Meyering [Sun, 26 Mar 2006 12:22:44 +0000 (12:22 +0000)]
new file from Eric Blake
Jim Meyering [Sun, 26 Mar 2006 12:20:59 +0000 (12:20 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Mar 2006 12:20:46 +0000 (12:20 +0000)]
(base_name): New semantics - malloc the result.
Preserve // when it is special.
Preserve relative files that look like drive letters.
(base_len): Preserve // when it is special.
(last_component): New method, similar to old base_name semantics.
Jim Meyering [Sun, 26 Mar 2006 12:20:24 +0000 (12:20 +0000)]
(dir_len): Determine when drive letters need a subsequent slash.
Preserve // when it is special.
(dir_name): Don't append dot when drive letter is absolute.
[TEST_DIRNAME]: Move into a full-blown gnulib test.
Jim Meyering [Sun, 26 Mar 2006 12:20:06 +0000 (12:20 +0000)]
(FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
[FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a drive prefix.
(IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
(last_component): New method.
Jim Meyering [Sun, 26 Mar 2006 12:18:51 +0000 (12:18 +0000)]
(strip_trailing_slashes): Use last_component, not base_name.
Strip redundant slashes from ///.
Jim Meyering [Sun, 26 Mar 2006 12:16:11 +0000 (12:16 +0000)]
(file_name_concat): s/base_name/last_component/
Jim Meyering [Sun, 26 Mar 2006 12:15:59 +0000 (12:15 +0000)]
(check_extension, numbered_backup): s/base_name/last_component/
Jim Meyering [Sun, 26 Mar 2006 12:14:16 +0000 (12:14 +0000)]
(same_name): s/base_name/last_component/
Jim Meyering [Sun, 26 Mar 2006 12:11:40 +0000 (12:11 +0000)]
(basename invocation, dirname invocation):
Improve documentation to match recent // patches.
Jim Meyering [Sun, 26 Mar 2006 12:09:09 +0000 (12:09 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Mar 2006 12:08:27 +0000 (12:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 26 Mar 2006 12:08:20 +0000 (12:08 +0000)]
(log_su, run_shell): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:08:10 +0000 (12:08 +0000)]
(next_file_name): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:07:59 +0000 (12:07 +0000)]
(wipename): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:07:47 +0000 (12:07 +0000)]
(rm_1): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:07:34 +0000 (12:07 +0000)]
(target_directory_operand, movefile): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:07:20 +0000 (12:07 +0000)]
(basename_is_dot_or_dotdot): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:07:04 +0000 (12:07 +0000)]
(target_directory_operand, main): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:06:45 +0000 (12:06 +0000)]
(target_directory_operand, install_file_in_dir): Use new last_component, in place of base_name.
Jim Meyering [Sun, 26 Mar 2006 12:06:05 +0000 (12:06 +0000)]
(guess_shell_syntax): Use new last_component.
Jim Meyering [Sun, 26 Mar 2006 12:05:51 +0000 (12:05 +0000)]
(target_directory_operand): Use new last_component.
(ASSIGN_BASENAME_STRDUPA): Likewise. Reduce time spent
traversing the string.
Jim Meyering [Sun, 26 Mar 2006 11:59:58 +0000 (11:59 +0000)]
(main): Don't strip suffix from file system roots.
Jim Meyering [Sun, 26 Mar 2006 11:59:31 +0000 (11:59 +0000)]
Improvements to dirname/basename handling on platforms like
cygwin with distinct // and with drive letters.
Jim Meyering [Sun, 26 Mar 2006 11:58:57 +0000 (11:58 +0000)]
(AC_CONFIG_FILES): Remove tests/basename.