Age | Commit message (Collapse) | Author |
|
|
|
(old) mode_string, so that we get more file types right, at least
in theory. Adjust to filemode changes.
|
|
(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.
|
|
|
|
|
|
(S_ISDOOR): Don't bother with S_IFDOOR, since that code is never needed.
(S_ISPORT, S_ISWHT): New macros, if not already defined.
|
|
(strmode): Renamed from mode_string.
(filemodestring): New decl.
|
|
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.
|
|
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.
|