Jim Meyering [Thu, 26 Oct 2000 08:08:06 +0000 (08:08 +0000)]
Update from libc.
Jim Meyering [Wed, 25 Oct 2000 08:39:48 +0000 (08:39 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:39:29 +0000 (08:39 +0000)]
Include dirname.h.
(main): Use dir_name_r rather than open-coding it.
Jim Meyering [Wed, 25 Oct 2000 08:36:13 +0000 (08:36 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 08:36:08 +0000 (08:36 +0000)]
(dir_name_r): Declare it.
Jim Meyering [Wed, 25 Oct 2000 08:34:36 +0000 (08:34 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 06:01:31 +0000 (06:01 +0000)]
*** empty log message ***
Jim Meyering [Wed, 25 Oct 2000 06:01:24 +0000 (06:01 +0000)]
cppi, on one line
Jim Meyering [Wed, 25 Oct 2000 06:00:26 +0000 (06:00 +0000)]
Update from libc.
Jim Meyering [Tue, 24 Oct 2000 08:20:17 +0000 (08:20 +0000)]
*** empty log message ***
Jim Meyering [Tue, 24 Oct 2000 08:20:13 +0000 (08:20 +0000)]
(hard_locale): Revert last change -- it was simply
wrong. That set_locale call must not have any side effects.
From Paul Eggert.
Jim Meyering [Mon, 23 Oct 2000 06:38:10 +0000 (06:38 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:31:28 +0000 (06:31 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:29:30 +0000 (06:29 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:28:01 +0000 (06:28 +0000)]
*** empty log message ***
Jim Meyering [Mon, 23 Oct 2000 06:27:50 +0000 (06:27 +0000)]
Clean up version-related variables.
Jim Meyering [Sun, 22 Oct 2000 22:40:13 +0000 (22:40 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 21:24:40 +0000 (21:24 +0000)]
remove remnants of lang-default change
Jim Meyering [Sun, 22 Oct 2000 21:23:18 +0000 (21:23 +0000)]
source lang-default *before* the `cd'
Jim Meyering [Sun, 22 Oct 2000 21:13:53 +0000 (21:13 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 21:12:59 +0000 (21:12 +0000)]
.
Jim Meyering [Sun, 22 Oct 2000 21:11:53 +0000 (21:11 +0000)]
include stdio.h
Jim Meyering [Sun, 22 Oct 2000 21:09:53 +0000 (21:09 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 21:09:43 +0000 (21:09 +0000)]
(md5_process_block) [OP]: Use `rol', not CYCLIC.
[CYCLIC]: Remove now-unused definition.
Jim Meyering [Sun, 22 Oct 2000 14:40:44 +0000 (14:40 +0000)]
s/shasum/sha1sum/
Jim Meyering [Sun, 22 Oct 2000 14:25:12 +0000 (14:25 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 14:21:47 +0000 (14:21 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 14:19:52 +0000 (14:19 +0000)]
renamed from shasum.c
Jim Meyering [Sun, 22 Oct 2000 14:18:02 +0000 (14:18 +0000)]
renamed from shasum.x
Jim Meyering [Sun, 22 Oct 2000 14:03:33 +0000 (14:03 +0000)]
fix typo
Jim Meyering [Sun, 22 Oct 2000 13:17:10 +0000 (13:17 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 13:15:22 +0000 (13:15 +0000)]
(print_long_format): Wrap date format strings in _(...)
so they may be internationalized. Suggestion from Christian Rose.
Jim Meyering [Sun, 22 Oct 2000 13:10:20 +0000 (13:10 +0000)]
(make_path_private): Add a FIXME comment.
Jim Meyering [Sun, 22 Oct 2000 13:09:28 +0000 (13:09 +0000)]
Source lang-default rather than open-coding
the setting/exporting of LANG, LC_ALL, and LANGUAGE.
Jim Meyering [Sun, 22 Oct 2000 13:08:50 +0000 (13:08 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 13:08:43 +0000 (13:08 +0000)]
Source lang-default rather than open-coding
the setting/exporting of LANG, LC_ALL, and LANGUAGE.
Jim Meyering [Sun, 22 Oct 2000 13:03:06 +0000 (13:03 +0000)]
.
Jim Meyering [Sun, 22 Oct 2000 13:02:40 +0000 (13:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 13:02:00 +0000 (13:02 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 12:57:48 +0000 (12:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 12:51:38 +0000 (12:51 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 12:00:22 +0000 (12:00 +0000)]
.
Jim Meyering [Sun, 22 Oct 2000 11:56:18 +0000 (11:56 +0000)]
.
Jim Meyering [Sun, 22 Oct 2000 11:51:50 +0000 (11:51 +0000)]
.
Jim Meyering [Sun, 22 Oct 2000 11:50:16 +0000 (11:50 +0000)]
Factor out the differences between MD5 and SHA1,
and parameterize so this code may be used by both md5sum and the new
program, shasum. Loosely based on a patch from Scott Miller.
Jim Meyering [Sun, 22 Oct 2000 07:33:21 +0000 (07:33 +0000)]
Support 8-byte integers, assuming they're printable with e.g., %lld.
Add support for printing data as unsigned
long long integers.
Jim Meyering [Sun, 22 Oct 2000 07:20:24 +0000 (07:20 +0000)]
add missing backslash
Jim Meyering [Sun, 22 Oct 2000 06:57:54 +0000 (06:57 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 06:57:42 +0000 (06:57 +0000)]
(O_DIRECTORY): Define, if needed.
(save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
Suggestion from Ulrich Drepper.
Jim Meyering [Sun, 22 Oct 2000 06:50:02 +0000 (06:50 +0000)]
*** empty log message ***
Jim Meyering [Sun, 22 Oct 2000 06:43:52 +0000 (06:43 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 20:07:49 +0000 (20:07 +0000)]
Jim Meyering [Sat, 21 Oct 2000 20:07:03 +0000 (20:07 +0000)]
.
Jim Meyering [Sat, 21 Oct 2000 20:01:28 +0000 (20:01 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 20:00:37 +0000 (20:00 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 19:57:41 +0000 (19:57 +0000)]
The command, `yes ''|./cat -n' would stop printing after INT_MAX lines.
(cat): Never let `newlines' exceed 3.
Jim Meyering [Sat, 21 Oct 2000 19:16:37 +0000 (19:16 +0000)]
Prevent a counter buffer overrun when numbering lines and when
processing 100 billion lines (or more) of input.
(LINE_COUNTER_BUF_LEN): Define to allow numbering as
many as 10^18 - 1 lines (the old limit was 10^11 - 1, and could
be exceeded without too much trouble). Use this symbol rather
than hard-coding the constant everywhere. Rather than overruning
for input with more lines, mark the line number by putting a
`>' in the leftmost slot.
(next_line_num): Fixed (now academic) possible line buffer overrun.
Patch by Jan Nieuwenhuizen.
Jim Meyering [Sat, 21 Oct 2000 13:22:39 +0000 (13:22 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 13:09:31 +0000 (13:09 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 13:05:55 +0000 (13:05 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 13:05:40 +0000 (13:05 +0000)]
(SORT_OUT_OF_ORDER): Define.
(main): Use it instead of hard-coding the `1'.
Jim Meyering [Sat, 21 Oct 2000 13:03:40 +0000 (13:03 +0000)]
(main): Use EXIT_SUCCESS rather than 0.
Fail when checking (-c) with more than one file argument,
rather than simply ignoring the extra arguments.
Jim Meyering [Sat, 21 Oct 2000 12:46:58 +0000 (12:46 +0000)]
tweak comment
Jim Meyering [Sat, 21 Oct 2000 11:44:43 +0000 (11:44 +0000)]
(dir_name_r): New function, factored out of dir_name.
(dir_name): Use dir_name_r.
Jim Meyering [Sat, 21 Oct 2000 11:29:01 +0000 (11:29 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 11:28:42 +0000 (11:28 +0000)]
(memrchr): Declare if necessary.
(dir_name): Remove the restriction that there be no
trailing slashes. Now, this code skips past them, effectively
ignoring them.
[TEST_DIRNAME] (main): New unit tests.
Jim Meyering [Sat, 21 Oct 2000 10:37:14 +0000 (10:37 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 10:37:10 +0000 (10:37 +0000)]
(jm_PREREQ_DIRNAME): New macro.
Jim Meyering [Sat, 21 Oct 2000 10:36:49 +0000 (10:36 +0000)]
(AC_REPLACE_FUNCS): Add memrchr.
Jim Meyering [Sat, 21 Oct 2000 10:36:32 +0000 (10:36 +0000)]
(jm_CHECK_DECLS): Also check for memrchr.
Jim Meyering [Sat, 21 Oct 2000 10:33:25 +0000 (10:33 +0000)]
*** empty log message ***
Jim Meyering [Sat, 21 Oct 2000 10:27:59 +0000 (10:27 +0000)]
New file, derived from the one in GNU libc.
Jim Meyering [Thu, 19 Oct 2000 11:43:34 +0000 (11:43 +0000)]
.
Jim Meyering [Thu, 19 Oct 2000 11:43:28 +0000 (11:43 +0000)]
Update from master repository.
Jim Meyering [Wed, 18 Oct 2000 20:48:04 +0000 (20:48 +0000)]
*** empty log message ***
Jim Meyering [Wed, 18 Oct 2000 20:47:25 +0000 (20:47 +0000)]
(universal_time): Remove; it's just a temptation to do the wrong thing.
(main): The -u option now just sets TZ; it doesn't do anything else.
(show_date): Do not do anything special if -u is set.
This affects the behavior of the -I and -R options.
Jim Meyering [Wed, 18 Oct 2000 20:45:20 +0000 (20:45 +0000)]
* src/date.c (universal_time): Remove; it's just a temptation to
do the wrong thing.
(main): The -u option now just sets TZ; it doesn't do anything else.
(show_date): Do not do anything special if -u is set.
This affects the behavior of the -I and -R options.
* doc/sh-utils.texi: Document the above.
Jim Meyering [Wed, 18 Oct 2000 19:03:30 +0000 (19:03 +0000)]
Undo the effect of the 1997-07-12 change to date.c; it
broke "date -u MMDDhhmm" and it wasn't documented.
This reverts to the behavior of the 1996-01-03 patch.
(utc-0, utc-1, relative-2): Adjust to above change.
Jim Meyering [Wed, 18 Oct 2000 19:02:56 +0000 (19:02 +0000)]
Undo the effect of the 1997-07-12 change to date.c; it
broke "date -u MMDDhhmm" and it wasn't documented.
This reverts to the behavior of the 1996-01-03 patch.
(TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
(batch_convert): Don't futz with TZ.
(main): -u now parses all dates as UTC, not just some.
Jim Meyering [Wed, 18 Oct 2000 19:02:34 +0000 (19:02 +0000)]
space to tab
Jim Meyering [Wed, 18 Oct 2000 09:51:00 +0000 (09:51 +0000)]
*** empty log message ***
Jim Meyering [Wed, 18 Oct 2000 09:50:56 +0000 (09:50 +0000)]
(Examples of date): Fix a typo.
Jim Meyering [Wed, 18 Oct 2000 07:42:08 +0000 (07:42 +0000)]
*** empty log message ***
Jim Meyering [Wed, 18 Oct 2000 07:41:59 +0000 (07:41 +0000)]
Make sure the programs use C-locale formats
and translations. Bruno Haible reported that this test would fail
when using other locales, because ls printed a translation of `total'.
Jim Meyering [Tue, 17 Oct 2000 08:45:42 +0000 (08:45 +0000)]
*** empty log message ***
Jim Meyering [Tue, 17 Oct 2000 08:45:32 +0000 (08:45 +0000)]
*** empty log message ***
Jim Meyering [Tue, 17 Oct 2000 08:45:11 +0000 (08:45 +0000)]
*** empty log message ***
Jim Meyering [Tue, 17 Oct 2000 08:45:07 +0000 (08:45 +0000)]
[PARAMS]: Define and use.
Jim Meyering [Tue, 17 Oct 2000 06:45:57 +0000 (06:45 +0000)]
*** empty log message ***
Jim Meyering [Tue, 17 Oct 2000 06:45:49 +0000 (06:45 +0000)]
Update from libc.
Jim Meyering [Mon, 16 Oct 2000 22:05:20 +0000 (22:05 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 22:01:11 +0000 (22:01 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 14:31:38 +0000 (14:31 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 14:30:39 +0000 (14:30 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 08:10:58 +0000 (08:10 +0000)]
fix spell-o in comment
Jim Meyering [Mon, 16 Oct 2000 08:09:57 +0000 (08:09 +0000)]
(rm_option_init): Remove FIXME-maybe comment.
Jim Meyering [Mon, 16 Oct 2000 08:09:42 +0000 (08:09 +0000)]
.
Jim Meyering [Mon, 16 Oct 2000 06:25:55 +0000 (06:25 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 06:25:29 +0000 (06:25 +0000)]
*** empty log message ***
Jim Meyering [Mon, 16 Oct 2000 06:24:33 +0000 (06:24 +0000)]
(hard_locale): Use "", not 0 as 2nd arg to setlocale.
From Jan Fedak.