Age | Commit message (Collapse) | Author |
|
10 ports. Add commented-out entries for other types that POSIX
says are possible, or that I observed in FreeBSD documentation.
|
|
|
|
ignore file. This has never been enabled. Reported by Eric Blake.
|
|
|
|
default --ignore file, /usr/local/lib/eign. That file has never been used.
Reported by Eric Blake.
|
|
|
|
|
|
Turn this into a macro that always returns true.
|
|
|
|
|
|
|
|
|
|
|
|
to avoid leaks. Patch from glibc.
|
|
declares and sets cderrno.
|
|
|
|
|
|
|
|
is not defined. Problem reported by Mark D. Baushke via Derek R. Price.
|
|
|
|
|
|
|
|
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.
|
|
|
|
bug in Interix. Just call symlink or link directly. All uses changed.
|
|
are not in Interix.
|
|
|
|
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).
|
|
more-compatible with traditional Unix, with respect to regular
expressions.
|
|
internal errors now; 2 is also for invalid values in expressions.
|
|
change from the old (Emacs) behavior, and POSIX allows us to treat [z-a]
as an empty range.
|
|
behavior. Port tests to Solaris 8.
|
|
|
|
(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.
|
|
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.
|
|
with what POSIX requires.
|
|
value that is compatible with what POSIX requires.
|
|
|
|
Evaluate expr once, not $n times.
|
|
handle long, newline-free input.
|
|
up the regex storage allocation a bit.
|
|
(main): Use it. Don't bother allocating a buffer.
|
|
(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.
|
|
New vars.
(build_type_arg): New fastmap arg. All uses changed.
Don't bother allocating a buffer, but set a fastmap.
|
|
Don't bother allocating a buffer.
|
|
|
|
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.
|
|
|
|
|
|
|