Age | Commit message (Collapse) | Author |
|
consistency with the other enum values.
|
|
(long_options): Use it instead of 'H' for --si.
(decode_switches): Warn that -H will change soon.
(usage): Likewise.
|
|
|
|
Now it prints a trailing `@'.
(gobble_file): Don't clobber lstat stats of command line
arguments when using -d and -F (--directory and --classify) options.
|
|
Remove workaround macros for hosts that have mbrtowc but not
mbstate_t, as we now insist on proper declarations for both
before using mbrtowc.
|
|
|
|
(long_options): Use it.
(decode_switches): Make --full-time imply -l.
|
|
|
|
|
|
|
|
|
|
|
|
a file is in the future, by looking at high-resolution time
stamps if available.
(TIMESPEC_NS): New macro.
(current_time): Initialize to the minimum value.
(current_time_ns): New var.
(main): Do not bother to initialize current_time;
it's no longer needed.
(get_current_time): New function.
(print_long_format): Use it when a file appears to be in the future.
Get the nanoseconds of the file's time stamp, if available,
and use that to decide whether the file appears to be in the future.
|
|
bug: the initial byte passed to strftime wasn't initialized to
a nonzero value after the buffer was reallocated.
|
|
not plain gettext, to get the translations of time formats.
|
|
(print_long_format): Use it, so that we don't assume a
particular width for time stamps in an internationalized
environment.
|
|
|
|
Report the year for files even slightly in the future.
Avoid overflow problems near Y2038 on 32-bit hosts.
To calculate "six months", take half the average Gregorian
year, not 180 days.
|
|
instead of once for each file.
(long_time_format): New var.
(decode_switches): Initialize it, if format == long_format.
(print_long_format): Use it.
|
|
|
|
|
|
(gobble_file): Move decl of local, val, into the scope where it's used.
|
|
to avoid uninitialized memory reference via FILE_HAS_ACL.
|
|
|
|
fails; POSIX.2 does not allow this. Invoke acl only on
non-symlinks, and only if lstat or stat succeeds.
|
|
INDICATOR_STYLE_OPTION, QUOTING_STYLE_OPTION,
SHOW_CONTROL_CHARS_OPTION, SORT_OPTION, TIME_OPTION): New enum
values, to ensure that option values can't collide with chars.
(long_options, decode_switches): Use them.
|
|
the output format of `ls -l --full-time'.
|
|
From Paul Eggert.
|
|
(DATE_FMT_LANGINFO): New macro, taken from sh-utils/src/date.c.
(print_long_format): Use it to determine "date" format.
Do not wrap "%b %e %Y" and "%b %e %H:%M" in _(), as it results in
incorrect behavior when LC_ALL is unset, LC_TIME is "C", and
LC_MESSAGES or LANG is set to something disagreeing with the POSIX
locale.
|
|
string in _(...), so it too may be internationalized.
Suggestion from Jungshik Shin.
|
|
[enum filetype]: Remove the #ifdef, and use DT_INIT on the
initializers instead.
|
|
a number that should never conflict with another DT_* value.
From Ulrich Drepper.
|
|
as the type, not `unknown'. From Ulrich Drepper.
|
|
that save file type information in directory entries.
[enum filetype] (unknown):
Add members (as yet unused):
(HAVE_STRUCT_DIRENT_D_TYPE): Define.
(format_needs_type): New global.
(main): Set it.
(print_dir): Set `type' from directory entry, if possible.
(gobble_file): Add a parameter, TYPE.
Stat the file only if its type is unknown and we need the type.
Patch from Ulrich Drepper.
|
|
so they may be internationalized. Suggestion from Christian Rose.
|
|
|
|
(quote_name): Use mbrtowc to step through the filename string while
replacing nonprintables with question marks. Return the screen width,
not the strlen length. Do no output if the out stream is NULL.
(length_of_file_name_and_frills): Use the quote_name return value.
|
|
(struct bin_str): Declare `string' member to be `const'.
(put_indicator): Declare local `p' to be `const'.
|
|
Round disk usage up.
|
|
|
|
to colorize links as for the file/directory pointed to.
|
|
option characters. Reported by John Summerfield.
|
|
[Notice the new test in m4/lstat-slash.m4. ]
(main): Back out change from 1999-02-19 that made ls remove
trailing slashes from command line arguments to accommodate early
versions of Linux. Now, `ls symlink-to-dir/' acts like
`ls symlink-to-dir/.' thus following the symbolic link, as POSIX says
it should. Suggestion from Bruno Haible and Andreas Schwab.
|
|
option that implies -l), and no sort-type was specified,
then sort by the ctime (-c) or atime (-u). Part of this change reverts
the 1998-01-10 delta.
(usage): Update to reflect this change.
Reported by Paul Slootman via Michael Stone.
|
|
(main): Set it if we need to check for dangling symlinks when
displaying colors.
(gobble_file): Check check_symlink_color instead of print_with_color.
|
|
|
|
works as the short form of --file-type, per the documentation.
From Michael Stone.
|
|
|
|
|
|
--show-control-chars. Reported by Germano Leichsenring.
|