Paul Eggert
eda15d7cca
(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.
2006-04-12 20:14:42 +00:00
Paul Eggert
2e16cd4302
(main) [! HAVE_SETGROUPS]: Don't call setgroups.
2006-04-12 20:14:19 +00:00
Paul Eggert
e26a29be00
(linkfunc): Remove. This method ran into a compiler/linker
...
bug in Interix. Just call symlink or link directly. All uses changed.
2006-04-12 20:14:01 +00:00
Paul Eggert
cec6e43aae
(gl_MACROS): Check for setgroups and sync, since they
...
are not in Interix.
2006-04-12 20:13:34 +00:00
Paul Eggert
2fc455e2d5
Include <inttypes.h> and <stdint.h> if they exist.
2006-04-12 20:13:13 +00:00
Paul Eggert
368bc94656
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).
2006-04-12 20:13:00 +00:00
Paul Eggert
dfe1ede00d
csplit, nl, expr now conform to POSIX better, and are
...
more-compatible with traditional Unix, with respect to regular
expressions.
2006-04-12 07:49:34 +00:00
Paul Eggert
ce1f8e6ecd
(expr invocation): expr exit status is 3 only for
...
internal errors now; 2 is also for invalid values in expressions.
2006-04-12 07:47:11 +00:00
Paul Eggert
7e17831f0a
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.
2006-04-12 07:37:11 +00:00
Paul Eggert
79b051c610
expr, csplit, nl patches to conform better to POSIX and/or traditional
...
behavior. Port tests to Solaris 8.
2006-04-12 07:18:11 +00:00
Paul Eggert
93305ed5f9
Use \{...\} in test RE, to test that we're conforming to POSIX.
2006-04-12 07:17:26 +00:00
Paul Eggert
661b506c3d
(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.
2006-04-12 07:17:02 +00:00
Paul Eggert
110970f622
(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.
2006-04-12 07:16:20 +00:00
Paul Eggert
6fd9c6f98e
(build_type_arg): Set re_syntax_options to a value that is compatible
...
with what POSIX requires.
2006-04-12 07:15:21 +00:00
Paul Eggert
2a75bb4ae0
(extract_regexp): Set re_syntax_options to a
...
value that is compatible with what POSIX requires.
2006-04-12 07:14:53 +00:00
Paul Eggert
f666da6f32
(gl_TIME_R): Add AC_LIBSOURCES for time_r.c and time_r.h.
2006-04-12 07:11:52 +00:00
Paul Eggert
1ff52c6a54
Do not assume that 'sed' can handle long, newline-free input.
...
Evaluate expr once, not $n times.
2006-04-12 07:07:55 +00:00
Paul Eggert
0dfc08bf3a
Solaris 8 sh doesn't understand "if !". Do not assume that 'sed' can
...
handle long, newline-free input.
2006-04-12 07:07:32 +00:00
Paul Eggert
9066275509
Adjust to new regex.h API (with new fastmap type), and clean
...
up the regex storage allocation a bit.
2006-04-11 00:52:16 +00:00
Paul Eggert
1f1ff10b0c
(compiled_separator_fastmap): New ver.
...
(main): Use it. Don't bother allocating a buffer.
2006-04-11 00:52:01 +00:00
Paul Eggert
8745735aaf
(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.
2006-04-11 00:51:42 +00:00
Paul Eggert
fad52643e0
(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.
2006-04-11 00:51:23 +00:00
Paul Eggert
2a124564c7
(docolon): Allocate and use a fastmap.
...
Don't bother allocating a buffer.
2006-04-11 00:50:56 +00:00
Paul Eggert
87bd526828
Update copyright year.
2006-04-11 00:50:33 +00:00
Paul Eggert
ff652937b0
(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.
2006-04-11 00:49:59 +00:00
Jim Meyering
ba75c95164
remove useless spaces before TABs
2006-04-10 19:15:08 +00:00
Paul Eggert
72021730a8
Import latest regex module from gnulib.
2006-04-10 06:46:07 +00:00
Paul Eggert
1fe38016fa
Add 'hostid' to System context menu line.
2006-04-09 07:55:05 +00:00
Paul Eggert
dd175a9f41
(Top): Fix typo in System context menu entry: hostid wasn't mentioned.
2006-04-09 07:52:33 +00:00
Jim Meyering
38433b219d
(iwrite): Remove assignment without effect.
...
Reported by Felix Rauch Valenti.
2006-03-30 13:47:57 +00:00
Jim Meyering
568eec4a9d
*** empty log message ***
2006-03-30 13:26:59 +00:00
Jim Meyering
6809ff6910
*** empty log message ***
2006-03-28 09:48:26 +00:00
Jim Meyering
b1aecc319f
(General options in ptx): Undocument --copyright.
2006-03-28 09:48:15 +00:00
Jim Meyering
2fdcdc90f0
*** empty log message ***
2006-03-28 09:47:56 +00:00
Jim Meyering
1ae249fba2
(usage): Remove mention of --copyright/-C.
...
(main): Alias --copyright to --version plus a deprecation warning.
2006-03-28 09:47:28 +00:00
Jim Meyering
5378e090da
deprecate ptx's --copyright (-C) option
2006-03-28 09:46:38 +00:00
Jim Meyering
4e5755ff74
*** empty log message ***
2006-03-27 14:08:04 +00:00
Jim Meyering
ce88154fd8
(dirname invocation): Macro in previous patch was too broad.
2006-03-27 14:08:00 +00:00
Jim Meyering
120d34efe1
version: 5.94
2006-03-27 10:30:34 +00:00
Jim Meyering
c5e8364536
.
2006-03-27 07:35:23 +00:00
Jim Meyering
20e2d352c0
(uptime_LDADD): Add $(POW_LIB), for uptime's use of strtod.
...
Tiny patch from Nickolai Zeldovich.
2006-03-27 07:34:48 +00:00
Jim Meyering
1c952c4d7d
*** empty log message ***
2006-03-27 07:32:44 +00:00
Jim Meyering
a35fc49153
.
2006-03-26 12:33:28 +00:00
Jim Meyering
fa9be79b41
*** empty log message ***
2006-03-26 12:30:45 +00:00
Jim Meyering
3c7ab9f144
(gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
2006-03-26 12:30:37 +00:00
Jim Meyering
d5a462a196
(FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
...
(FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
2006-03-26 12:30:07 +00:00
Jim Meyering
665ede556d
new file from Eric Blake
2006-03-26 12:22:44 +00:00
Jim Meyering
864c4c28af
*** empty log message ***
2006-03-26 12:20:59 +00:00
Jim Meyering
8773d59d55
(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.
2006-03-26 12:20:46 +00:00
Jim Meyering
8132c6e76e
(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.
2006-03-26 12:20:24 +00:00