Jim Meyering [Wed, 22 Jan 1997 04:56:25 +0000 (04:56 +0000)]
.
Jim Meyering [Wed, 22 Jan 1997 04:55:59 +0000 (04:55 +0000)]
.
Jim Meyering [Wed, 22 Jan 1997 04:53:59 +0000 (04:53 +0000)]
.
Jim Meyering [Wed, 22 Jan 1997 04:53:52 +0000 (04:53 +0000)]
(main): Properly handle what the POSIX spec calls
the `obsolescent' usage (e.g., tail +2c). It didn't work.
Reported by Karl Heuer.
Jim Meyering [Wed, 22 Jan 1997 04:48:32 +0000 (04:48 +0000)]
.
Jim Meyering [Tue, 21 Jan 1997 04:21:48 +0000 (04:21 +0000)]
.
Jim Meyering [Sun, 19 Jan 1997 15:24:40 +0000 (15:24 +0000)]
.
Jim Meyering [Sun, 19 Jan 1997 13:18:30 +0000 (13:18 +0000)]
.
Jim Meyering [Sun, 19 Jan 1997 13:11:40 +0000 (13:11 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 20:17:39 +0000 (20:17 +0000)]
Indent with GNU indent.
Jim Meyering [Sat, 18 Jan 1997 20:12:10 +0000 (20:12 +0000)]
Indent 2 more cpp-directives to reflect nesting.
Jim Meyering [Sat, 18 Jan 1997 20:11:05 +0000 (20:11 +0000)]
(get_date): Change prototype to reflect const'ness of parameters.
Indent cpp-directives to reflect nesting.
Jim Meyering [Sat, 18 Jan 1997 20:08:05 +0000 (20:08 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 20:06:50 +0000 (20:06 +0000)]
Include getdate.h.
(<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
Jim Meyering [Sat, 18 Jan 1997 16:58:30 +0000 (16:58 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 16:57:45 +0000 (16:57 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 15:46:09 +0000 (15:46 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 15:32:52 +0000 (15:32 +0000)]
.
Jim Meyering [Sat, 18 Jan 1997 15:32:16 +0000 (15:32 +0000)]
1997-01-06 Paul Eggert <eggert@twinsun.com>
* getdate.y: Rewrite to use mktime.
<sys/timeb.h>: Don't include.
(mktime): Declare.
(struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
(ToHour): New function (part of the old ToSeconds fn).
(ToYear): New function (part of the old Convert fn).
(TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
Number): Now int instead of time_t.
(HOUR): Don't cast to time_t.
(tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
(UnitsTable): Use new units that are closer to the keywords.
(yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
(rel, relunit, get_date): Add support for them.
(time): Fix timezone calculations for negative half-hour offsets
when integer division truncates towards minus infinity.
(zone): Incorporiate DST calculation directly.
(get_date): 2nd arg is now time_t *, not struct timeb *.
Use mktime to do most of the work, instead of computing it ourselves.
Guard against falsely reporting errors near the time_t boundaries
when parsing times in other time zones.
Jim Meyering [Sat, 18 Jan 1997 15:07:16 +0000 (15:07 +0000)]
Add comment re HAVE_PSTAT_GETDYNAMIC.
Jim Meyering [Sat, 18 Jan 1997 13:44:49 +0000 (13:44 +0000)]
reindent
Jim Meyering [Fri, 17 Jan 1997 03:01:15 +0000 (03:01 +0000)]
.
Jim Meyering [Fri, 17 Jan 1997 03:00:45 +0000 (03:00 +0000)]
(AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
Jim Meyering [Wed, 15 Jan 1997 04:59:07 +0000 (04:59 +0000)]
Fix up indentation a little.
Jim Meyering [Wed, 15 Jan 1997 04:55:39 +0000 (04:55 +0000)]
Indent cpp-directives to reflect nesting.
Jim Meyering [Wed, 15 Jan 1997 04:42:05 +0000 (04:42 +0000)]
[!STDC_HEADERS]: Remove unnecessary declaration of free.
Jim Meyering [Wed, 15 Jan 1997 04:41:12 +0000 (04:41 +0000)]
[!STDC_HEADERS]: Remove unnecessary declaration of free.
Jim Meyering [Wed, 15 Jan 1997 04:35:01 +0000 (04:35 +0000)]
Add struct dir_list and is_ancestor.
Jim Meyering [Mon, 13 Jan 1997 04:23:05 +0000 (04:23 +0000)]
.
Jim Meyering [Mon, 13 Jan 1997 04:21:30 +0000 (04:21 +0000)]
Regenerated to reflect renamed tests.
Jim Meyering [Mon, 13 Jan 1997 04:20:54 +0000 (04:20 +0000)]
Rename tests so that the associated files
have names that are distinct even on filesystems on which file
names are case insensitive.
Jim Meyering [Mon, 13 Jan 1997 04:17:16 +0000 (04:17 +0000)]
.
Jim Meyering [Mon, 13 Jan 1997 04:16:57 +0000 (04:16 +0000)]
Regenerated to reflect renamed tests.
Jim Meyering [Mon, 13 Jan 1997 04:16:16 +0000 (04:16 +0000)]
Rename tests so that the associated files
have names that are distinct even on filesystems on which file
names are case insensitive.
Jim Meyering [Sat, 11 Jan 1997 22:35:42 +0000 (22:35 +0000)]
.
Jim Meyering [Sat, 11 Jan 1997 04:23:46 +0000 (04:23 +0000)]
.
Jim Meyering [Sat, 11 Jan 1997 04:21:29 +0000 (04:21 +0000)]
.
Jim Meyering [Thu, 9 Jan 1997 12:38:53 +0000 (12:38 +0000)]
.
Jim Meyering [Thu, 9 Jan 1997 12:24:51 +0000 (12:24 +0000)]
Remove AC_ISC_POSIX.
Jim Meyering [Thu, 9 Jan 1997 02:35:52 +0000 (02:35 +0000)]
.
Jim Meyering [Thu, 9 Jan 1997 02:35:30 +0000 (02:35 +0000)]
.
Jim Meyering [Thu, 9 Jan 1997 02:34:14 +0000 (02:34 +0000)]
.
Jim Meyering [Thu, 9 Jan 1997 02:33:44 +0000 (02:33 +0000)]
(print_long_format): Cast alloca return value to char*.
Jim Meyering [Thu, 9 Jan 1997 00:09:17 +0000 (00:09 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 22:40:47 +0000 (22:40 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 22:40:00 +0000 (22:40 +0000)]
(_getopt_internal): Use `_', rather than the (sometimes-)expansion `gettext'.
Jim Meyering [Wed, 8 Jan 1997 12:29:57 +0000 (12:29 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:59:01 +0000 (04:59 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:57:06 +0000 (04:57 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:56:45 +0000 (04:56 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:52:41 +0000 (04:52 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:52:00 +0000 (04:52 +0000)]
[_]: Define to gettext also if ENABLE_NLS is defined.
Jim Meyering [Wed, 8 Jan 1997 04:50:29 +0000 (04:50 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:49:33 +0000 (04:49 +0000)]
.
Jim Meyering [Wed, 8 Jan 1997 04:47:56 +0000 (04:47 +0000)]
(main): Work around failures induced by new version of
getopt.c by not modifying optind before the first getopt_long call
in main. With suggestions from Ulrich Drepper.
Jim Meyering [Wed, 8 Jan 1997 04:11:29 +0000 (04:11 +0000)]
New (more POSIX compliant) version from GNU libc.
Jim Meyering [Mon, 6 Jan 1997 04:24:52 +0000 (04:24 +0000)]
.
Jim Meyering [Mon, 6 Jan 1997 04:19:50 +0000 (04:19 +0000)]
.
Jim Meyering [Mon, 6 Jan 1997 03:31:03 +0000 (03:31 +0000)]
.
Jim Meyering [Mon, 6 Jan 1997 03:23:19 +0000 (03:23 +0000)]
.
Jim Meyering [Mon, 6 Jan 1997 03:21:55 +0000 (03:21 +0000)]
.
Jim Meyering [Sun, 5 Jan 1997 20:32:57 +0000 (20:32 +0000)]
.
Jim Meyering [Sun, 5 Jan 1997 20:32:49 +0000 (20:32 +0000)]
(print_long_format): Detect and handle strftime failure
due to pathologically long strings in locale tables. Patch from Paul Eggert.
(print_long_format): Change references to BIGBUF in use of FPUT macro
to references to BUF.
Use 11 (not 20) bytes for mode string buffer.
Jim Meyering [Sun, 5 Jan 1997 15:39:27 +0000 (15:39 +0000)]
(print_long_format): NUL-terminate line of output.
Jim Meyering [Sun, 5 Jan 1997 15:33:44 +0000 (15:33 +0000)]
(print_long_format): First patch from Paul Eggert.
Jim Meyering [Sun, 5 Jan 1997 03:32:28 +0000 (03:32 +0000)]
.
Jim Meyering [Sun, 5 Jan 1997 03:24:32 +0000 (03:24 +0000)]
.
Jim Meyering [Sun, 5 Jan 1997 03:19:46 +0000 (03:19 +0000)]
.
Jim Meyering [Sun, 5 Jan 1997 03:18:49 +0000 (03:18 +0000)]
(print_long_format): Clean up vestiges of legacy
ctime-oriented code. With internationalization and strftime,
you can't presume that %a expands to a 3-byte string.
Reported by Ross Ridge.
Jim Meyering [Sat, 4 Jan 1997 03:09:44 +0000 (03:09 +0000)]
.
Jim Meyering [Fri, 3 Jan 1997 05:10:19 +0000 (05:10 +0000)]
Fix typo.
Jim Meyering [Fri, 3 Jan 1997 05:05:45 +0000 (05:05 +0000)]
.
Jim Meyering [Fri, 3 Jan 1997 03:24:22 +0000 (03:24 +0000)]
.
Jim Meyering [Fri, 3 Jan 1997 03:20:24 +0000 (03:20 +0000)]
.
Jim Meyering [Fri, 3 Jan 1997 03:20:14 +0000 (03:20 +0000)]
(init_fps): Initialize lines_stored field in three places.
This avoids uninitialized memory reads in close_file.
Jim Meyering [Fri, 3 Jan 1997 03:16:59 +0000 (03:16 +0000)]
.
Jim Meyering [Fri, 3 Jan 1997 03:16:29 +0000 (03:16 +0000)]
(EXTRA_DIST): Add getgroups.c.
Jim Meyering [Thu, 2 Jan 1997 03:13:49 +0000 (03:13 +0000)]
.
Jim Meyering [Thu, 2 Jan 1997 02:21:58 +0000 (02:21 +0000)]
.
Jim Meyering [Wed, 1 Jan 1997 23:35:31 +0000 (23:35 +0000)]
.
Jim Meyering [Tue, 31 Dec 1996 16:18:06 +0000 (16:18 +0000)]
.
Jim Meyering [Mon, 30 Dec 1996 05:45:23 +0000 (05:45 +0000)]
.
Jim Meyering [Mon, 30 Dec 1996 05:43:58 +0000 (05:43 +0000)]
(init_header): Plug a small memory leak by using stack
rather than heap for a 15-byte temporary buffer.
Jim Meyering [Mon, 30 Dec 1996 04:11:13 +0000 (04:11 +0000)]
.
Jim Meyering [Sun, 29 Dec 1996 20:34:21 +0000 (20:34 +0000)]
.
Jim Meyering [Sun, 29 Dec 1996 03:47:51 +0000 (03:47 +0000)]
.
Jim Meyering [Sun, 29 Dec 1996 03:47:34 +0000 (03:47 +0000)]
Two problems fixed by these changes from Joakim Rosqvist.
Quoting Joakim:
1) The "total" number and the size of the first file as
output from 'ls --color -s' did not get colorized according
to the "no"-argument in LS_COLORS. Fixed by adding a function
prep_non_filename_text which prints the C_LEFT C_NORM C_RIGHT
strings (or C_END). It is called from main before any text is
output, and from print_name_with_quoting after having output a
colorized filename.
2) If the "no"-argument of LS_COLORS is set, the terminal will be
set to print in that color after ls exits. The man-pages suggests
setting "no" and "fi" to the terminals default colors to avoid
the problem, but that would mean I can't use anything but the
default color for regular files and non-filename text. Fixed by
outputting C_LEFT immediately followed by C_RIGHT right before
exit, which restores the default color.
Jim Meyering [Sun, 29 Dec 1996 01:48:20 +0000 (01:48 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 20:32:39 +0000 (20:32 +0000)]
Correct obsolete comment referring to macro that is now ls_mode.
Jim Meyering [Sat, 28 Dec 1996 16:04:01 +0000 (16:04 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 13:30:51 +0000 (13:30 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 06:27:35 +0000 (06:27 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 06:07:39 +0000 (06:07 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 06:06:51 +0000 (06:06 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 06:05:51 +0000 (06:05 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 06:04:36 +0000 (06:04 +0000)]
(TAB_WIDTH): Cleaned up definition and renamed from tab_width.
(POS_AFTER_TAB): Cleaned up definition and renamed from pos_after_tab.
Jim Meyering [Sat, 28 Dec 1996 05:34:01 +0000 (05:34 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 05:30:46 +0000 (05:30 +0000)]
Fix a couple of thinkos and typos.
Now it works with pr's tests, too.
Jim Meyering [Sat, 28 Dec 1996 05:27:53 +0000 (05:27 +0000)]
.
Jim Meyering [Sat, 28 Dec 1996 05:27:25 +0000 (05:27 +0000)]
Regenerate list of explicit files, this time with duplicates removed.