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.
Jim Meyering [Sun, 26 Mar 2006 11:56:09 +0000 (11:56 +0000)]
.
Jim Meyering [Sun, 26 Mar 2006 11:55:38 +0000 (11:55 +0000)]
remove this entire directory
Jim Meyering [Sun, 26 Mar 2006 11:54:50 +0000 (11:54 +0000)]
remove this entire directory
Jim Meyering [Sun, 26 Mar 2006 11:52:47 +0000 (11:52 +0000)]
(SUBDIRS): Remove basename.
Jim Meyering [Sun, 26 Mar 2006 11:48:19 +0000 (11:48 +0000)]
(TESTS): Sort. Add basename, dirname.
Jim Meyering [Sun, 26 Mar 2006 11:47:51 +0000 (11:47 +0000)]
new file -- from Eric Blake
Jim Meyering [Sun, 26 Mar 2006 11:47:24 +0000 (11:47 +0000)]
Move to ../misc/basename
Jim Meyering [Sun, 26 Mar 2006 11:46:46 +0000 (11:46 +0000)]
Moved from ../basename/basic.
Add some tests, including fixed behavior for //.
Paul Eggert [Sat, 25 Mar 2006 09:49:24 +0000 (09:49 +0000)]
(gl_REGEX): Fix a longstanding typo in the
implementation of Spencer ERE test #75 from grep 2.3. Problem
reported by Emanuele Giaquinta. Also, change sense of cached
variable, so that the message makes sense.
Paul Eggert [Sat, 25 Mar 2006 09:10:28 +0000 (09:10 +0000)]
(gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
glibc names.
Jim Meyering [Sat, 25 Mar 2006 08:43:48 +0000 (08:43 +0000)]
version: 5.94
Paul Eggert [Thu, 23 Mar 2006 23:56:34 +0000 (23:56 +0000)]
(main): Ignore fd_reopen return value when ignoring input, since
we've closed input at that point so we are ignoring input.
Paul Eggert [Thu, 23 Mar 2006 23:47:37 +0000 (23:47 +0000)]
nohup diagnostics are now more precise, and nohup now
redirects stderr to nohup.out if stdout is closed and stderr is a tty.
Paul Eggert [Thu, 23 Mar 2006 23:35:32 +0000 (23:35 +0000)]
Test the new nohup behavior.
Paul Eggert [Thu, 23 Mar 2006 23:35:13 +0000 (23:35 +0000)]
(main): nohup diagnostics are now more precise, and nohup now
redirects stderr to nohup.out if stdout is closed and stderr
is a tty.
Paul Eggert [Thu, 23 Mar 2006 23:34:42 +0000 (23:34 +0000)]
(nohup invocation): nohup now redirects stderr to
nohup.out if stdout is closed and stderr is a tty.
Paul Eggert [Thu, 23 Mar 2006 23:34:22 +0000 (23:34 +0000)]
nohup diagnostics are now more precise, and nohup now
redirects stderr to nohup.out if stdout is closed and stderr is a tty.
Jim Meyering [Wed, 22 Mar 2006 15:59:58 +0000 (15:59 +0000)]
update from gnulib
Jim Meyering [Sun, 19 Mar 2006 18:27:55 +0000 (18:27 +0000)]
*** empty log message ***
Jim Meyering [Sun, 19 Mar 2006 18:27:51 +0000 (18:27 +0000)]
Work even in a chroot where d_ino values for entries in "/"
don't match the stat.st_ino values for the same names.
(__getcwd): When no d_ino value matches the target inode
number, iterate through all entries again, using lstat instead.
Reported by Kenshi Muto in http://bugs.debian.org/355810.
Jim Meyering [Sun, 19 Mar 2006 17:18:32 +0000 (17:18 +0000)]
(__getcwd): Clarify a comment.
Use memcpy in place of a call to strcpy.
Jim Meyering [Fri, 17 Mar 2006 16:41:30 +0000 (16:41 +0000)]
.
Jim Meyering [Fri, 17 Mar 2006 10:12:37 +0000 (10:12 +0000)]
*** empty log message ***
Jim Meyering [Fri, 17 Mar 2006 10:07:28 +0000 (10:07 +0000)]
(gl_REGEX): Fix typo in last change:
s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
Jim Meyering [Fri, 17 Mar 2006 08:35:50 +0000 (08:35 +0000)]
remove trailing space
Paul Eggert [Fri, 17 Mar 2006 07:35:25 +0000 (07:35 +0000)]
regex fixes for future POSIX and --without-included-regex.
Paul Eggert [Fri, 17 Mar 2006 07:33:40 +0000 (07:33 +0000)]
(regoff_t) [defined _REGEX_LARGE_OFFSETS]:
Typedef to long int, not to off_t, as POSIX will likely change
in that direction.
Paul Eggert [Fri, 17 Mar 2006 07:33:06 +0000 (07:33 +0000)]
(gl_REGEX): Don't check for off_t, since the code
no longer needs it. Instead, check that regoff_t is as least
as wide as ptrdiff_t.
Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
so that our regex.h stays compatible with the installed regex.
This is helpful for installers who configure --without-included-regex.
Problem reported by Emanuele Giaquinta.
Jim Meyering [Thu, 16 Mar 2006 10:33:28 +0000 (10:33 +0000)]
version: 5.94
Jim Meyering [Wed, 15 Mar 2006 06:53:11 +0000 (06:53 +0000)]
update from gnulib