*** empty log message ***
[coreutils.git] / old / sh-utils / ChangeLog
blobb0ae65b1a0cbd3c23c8b1120b3d76be09282b43d
1 2001-02-24  Paul Eggert  <eggert@twinsun.com>
3         * doc/sh-utils.texi: Fix typo: '-d=1may' -> '-d 1may'.
4         Fix and clarify time zone usage in 'date' examples.
6 2001-02-04  Jim Meyering  <meyering@lucent.com>
8         * src/factor.c (usage): Tweak --help output: it prints the _prime_
9         factors, not just any factors.
11 2001-02-03  Jim Meyering  <meyering@lucent.com>
13         Improve the performance of `factor' (more than 2x speed-up for large N).
14         * src/factor.c (wheel_tab): New global table.
15         (WHEEL_START, WHEEL_END): Define.
16         (factor): Remove the loop that special-cased `2'.
17         Instead of incrementing by `2', use the offsets from the wheel table.
18         From Michael Steffens.
20 2000-11-27  Prashant TR  <rprash@wilco-int.com>
22         * src/test.c (eaccess) [__MSDOS__]: Just use access.
24 2001-01-26  Jim Meyering  <meyering@lucent.com>
26         * src/dirname.c (main): Declare local result as non-const, now
27         that it's freed.
29 2001-01-20  Jim Meyering  <meyering@lucent.com>
31         * configure.in: Remove jm_CHECK_ALL_TYPES.
32         Now it's invoked by jm_MACROS.
34 2001-01-04  Jim Meyering  <meyering@lucent.com>
36         * src/date.c (main): Fail when --rfc-822 (-R) is specified along
37         with a format string.  Reported by Jochen Hein.
39 2000-12-17  Jim Meyering  <meyering@lucent.com>
41         * doc/texinfo.tex: Update from master repository.
42         * config.sub: Likewise.
43         * config.guess: Likewise.
45         * djgpp: New directory.
46         * djgpp/*: New files.
47         * Makefile.am (SUBDIRS): Add djgpp.
48         * configure.in (AC_OUTPUT): Add djgpp/Makefile.
49         From Prashant TR.
51 2000-12-08  Jim Meyering  <meyering@lucent.com>
53         * src/dirname.c: Include xalloc.h.
54         (main): Use dir_name rather than the underlying dir_name_r.
55         The former now handles cwd-relative names with drive-letter prefixes.
57 2000-12-02  Jim Meyering  <meyering@lucent.com>
59         * src/seq.c (valid_format): Move pre-increment to a separate statement
60         to avoid a warning.
62         * src/id.c: Move dcls of globals used only in main...
63         (main): ...to here.
64         (usage): Clarify option descriptions.
66 2000-11-18  Jim Meyering  <meyering@lucent.com>
68         * po/Makefile.in.in: Sync with the one from fileutils.
70         * configure, config.h.in, Makefile.in, etc.: Regenerate using the
71         very latest version (in CVS) of autoconf.
73 2000-11-17  Jim Meyering  <meyering@lucent.com>
75         * GNUmakefile (.NOTPARALLEL): New target.  Prevent unwanted parallelism.
76         Suggestion from Ulrich Drepper.
78         * src/pinky.c: Explicitly include sys/types.h before including system.h.
79         * src/uptime.c: Likewise.
80         * src/users.c: Likewise.
81         * src/who.c: Likewise.
83 2000-11-13  Paul Eggert  <eggert@twinsun.com>
85         * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
86         be tested with #ifdef, not with #if.
88 2000-11-12  Jim Meyering  <meyering@lucent.com>
90         * src/date.c (show_date): Add a comment explaining why the
91         format string must not be translatable via _().  From Paul Eggert.
93 2000-10-31  Jim Meyering  <meyering@lucent.com>
95         * doc/sh-utils.texi: Clean up indentation and punctuation.
96         Fix a couple typos.  From Brian Youmans.
98 2000-10-30  Jim Meyering  <meyering@lucent.com>
100         * configure, config.h.in, Makefile.in, etc.: Regenerate using the
101         very latest version (in CVS) of autoconf.
103 2000-10-29  Jim Meyering  <meyering@lucent.com>
105         * Version 2.0.11.
107 2000-10-27  Jim Meyering  <meyering@lucent.com>
109         * src/date.c (usage): Mention the time zone, UTC, and write the date
110         in ISO format in the description of %s.  Suggestion from Karl Berry.
112 2000-10-25  Jim Meyering  <meyering@lucent.com>
114         * src/dirname.c: Include dirname.h.
115         (main): Use dir_name_r rather than open-coding it.
117 2000-10-23  Jim Meyering  <meyering@lucent.com>
119         * Makefile.am (EXTRA_DIST): Add .prev-version.
121 2000-10-18  Paul Eggert  <eggert@twinsun.com>
123         * src/date.c (universal_time): Remove; it's just a temptation to
124         do the wrong thing.
125         (main): The -u option now just sets TZ; it doesn't do anything else.
126         (show_date): Do not do anything special if -u is set.
127         This affects the behavior of the -I and -R options.
128         * doc/sh-utils.texi: Document the above.
130 2000-10-18  Jim Meyering  <meyering@lucent.com>
132         * doc/sh-utils.texi (Examples of date): Fix a typo.
134 2000-10-11  Jim Meyering  <meyering@lucent.com>
136         * doc/sh-utils.texi (Time directives) [%S]: Range is 0..60, not 0..61.
138 2000-10-06  Paul Eggert  <eggert@twinsun.com>
140         Undo the effect of the 1997-07-12 change to date.c; it
141         broke "date -u MMDDhhmm" and it wasn't documented.
142         This reverts to the behavior of the 1996-01-03 patch.
144         * src/date.c (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
145         (batch_convert): Don't futz with TZ.
146         (main): -u now parses all dates as UTC, not just some.
147         Reported by Karl-Michael Schneider.
148         * tests/date/Test.pm (utc-0, utc-1, relative-2): Adjust to
149         above change.
151 2000-09-29  Jim Meyering  <meyering@lucent.com>
153         * src/yes.c (usage): Add a separate usage line, just for `OPTION'.
154         Suggestion from M. P. Suzuki.
156 2000-09-09  Jim Meyering  <meyering@lucent.com>
158         * src/date.c (usage): Make the second `Usage' line more precise
159         (also making it match the texinfo documentation).
160         From Karl Eichwalder.
162         * doc/sh-utils.texi (Setting the time): Correct the capitalization of
163         `HHMM' in the info-rendering of the texinfo documentation.
164         Reported by Karl Eichwalder.
166 2000-08-14  Jim Meyering  <meyering@lucent.com>
168         * src/tee.c (main): Remove incorrect `FIXME' comment.
170 2000-08-07  Paul Eggert  <eggert@twinsun.com>
172         * src/su.c (xputenv): Invoke xalloc_die instead of printing
173         our own message.
175 2000-07-30  Jim Meyering  <meyering@lucent.com>
177         * src/tee.c (tee): Use SET_BINARY and SET_BINARY2.
178         From Prashant TR.
180         * src/help-version: Remove file.  Move it to ...
181         * tests/help-version: ...here
182         * tests/Makefile.am (TESTS): Add help-version.
183         (TESTS_ENVIRONMENT): Define.
184         * src/Makefile.am (EXTRA_DIST): Remove help-version.
185         (TESTS): Remove definition.
186         (TESTS_ENVIRONMENT): Remove definition.
188 2000-07-23  Jim Meyering  <meyering@lucent.com>
190         * src/help-version (su_args): Punt, so we don't try to start a shell.
192         * src/su.c: Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
193         rather than if _POSIX_VERSION is defined.  Remove declarations of
194         getpwuid, getgrgid, and getuid, now that they're in sys2.h.
195         Prompted by a report from John David Anglin.
197         * src/sys2.h [!HAVE_DECL_GETPWUID]: Declare getpwuid.
198         [!HAVE_DECL_GETGRGID]: Declare getgrgid.
199         [!HAVE_DECL_GETUID]: Declare getuid.
201 2000-07-19  Jim Meyering  <meyering@lucent.com>
203         * src/date.c (batch_convert): Free `initial_TZ' only if it was set.
204         Reported by Michael Hohn.
206 2000-07-17  Jim Meyering  <meyering@lucent.com>
208         * src/stty.c (visible): Don't mark `<undef>' for translation.
209         The standard requires that exact string.
211 2000-07-09  Jim Meyering  <meyering@lucent.com>
213         * config.guess: Update from FSF.
214         * config.sub: Likewise.
216         * src/Makefile.am (seq_LDADD): Don't hard-code `-lm' -- some systems
217         don't have/need it.  From Bruno Haible.
219 2000-07-06  Jim Meyering  <meyering@lucent.com>
221         * src/help-version: Punt on `groups' test, since all it does
222         is run `id -Gn', and groups fails if GNU id is not installed.
223         Reported by Christian Krackowizer.
225 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
227         * tests/nice: Avoid syntax error in "test" when `nice` generates
228         no output.
230 2000-07-04  Jim Meyering  <meyering@lucent.com>
232         * Version 2.0j.
234         * tests/date/Test.pm (test_vector): Disable test #2 for all systems,
235         even though it fails only on SunOS4.
237 2000-07-01  Jim Meyering  <meyering@lucent.com>
239         * configure.in (jm_DUMMY_1): Wrap a snippet in a macro definition
240         so we can use AC_REQUIRE.
241         (jm_BOOT_TIME): Likewise.
243 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
245         * configure.in: Add pinky, users, who to OPTIONAL_BIN_PROGS if either
246         <utmp.h> or <utmpx.h> exists. Add uptime only if either <utmp.h> or
247         <utmpx.h> exists.
248         * src/Makefile.am (bin_PROGRAMS): Remove pinky, users, who from here...
249         (EXTRA_PROGRAMS): ... and add them here.
251 2000-06-26  Jim Meyering  <meyering@lucent.com>
253         `id -Gn' (invoked by groups) would fail without giving a diagnostic
254         on malconfigured systems.
255         * src/id.c (print_user): Give a diagnostic if number->name lookup fails.
256         (print_group): Likewise.
258 2000-06-25  Jim Meyering  <meyering@lucent.com>
260         * configure.in (ALL_LINGUAS): Add Danish (da).
262 2000-06-21  Jim Meyering  <meyering@lucent.com>
264         * tests/stty/basic-1: New test for that.
265         * src/stty.c (valid_options): Don't segfault on `stty erase -'.
266         Patch from Harry Liu.
268 2000-06-15  Jim Meyering  <meyering@lucent.com>
270         * tests/date/Test.pm: Add tests for getdate.y fix.
272 2000-06-14  Jim Meyering  <meyering@lucent.com>
274         * src/help-version: Punt on nohup; give it --version.
276 2000-06-10  Jim Meyering  <meyering@lucent.com>
278         * doc/sh-utils.texi: Typo-fixes and some clean-up from Brian Youmans.
280 2000-05-29  Jim Meyering  <meyering@lucent.com>
282         * tests/nice: Remove now-unused reference to srcdir.
284         * src/help-version: Use `WARNING', not just `Warning' in the
285         broken-/bin/sh diagnostic, to be consistent with other such warnings.
287 2000-05-21  Jim Meyering  <meyering@lucent.com>
289         * tests/nice: Disable test on djgpp.
291 2000-05-15  Jim Meyering  <meyering@lucent.com>
293         * tests/date/Test.pm (test_vector): Skip the %c test on SunOS4 systems.
294         Suggested by Paul Eggert.  Reported by Volker Borchert.
296 2000-05-13  Jim Meyering  <meyering@lucent.com>
298         * src/groups.sh: Detect and report write failure of --help/--version.
299         * src/nohup.sh: Likewise.
301 2000-05-11  Jim Meyering  <meyering@lucent.com>
303         * src/date.c (usage): Don't call close_stdout_status directly,
304         since that didn't cover --version output.
305         (main): Instead, call close_stdout_set_status and arrange to
306         call close_stdout via atexit.
307         * src/printenv.c: Likewise.
308         * src/tty.c: Likewise.
310         * src/true.c (usage): Don't call close_stdout directly, since that
311         didn't cover --version output.
312         (main):  Arrange to call close_stdout via atexit, instead.
313         * src/yes.c: Likewise.
314         * src/sleep.c: Likewise.
316 2000-05-09  Jim Meyering  <meyering@lucent.com>
318         * src/sys2.h (case_GETOPT_VERSION_CHAR): Don't call close_stdout.
319         * src/help-version: New test.
320         * src/Makefile.am (TESTS): Define.
321         (TESTS_ENVIRONMENT): Likewise.
322         (EXTRA_DIST): Add help-version.
324 2000-05-08  Jim Meyering  <meyering@lucent.com>
326         * Version 2.0i.
328 2000-05-07  Jim Meyering  <meyering@lucent.com>
330         * Version 2.0h.
332         * src/basename.c: Include "closeout.h".
333         (main): Call atexit with close_stdout.
334         * src/chroot.c: Likewise.
335         * src/dirname.c: Likewise.
336         * src/echo.c: Likewise.
337         * src/env.c: Likewise.
338         * src/expr.c: Likewise.
339         * src/factor.c: Likewise.
340         * src/hostid.c: Likewise.
341         * src/hostname.c: Likewise.
342         * src/id.c: Likewise.
343         * src/logname.c: Likewise.
344         * src/nice.c: Likewise.
345         * src/pathchk.c: Likewise.
346         * src/pinky.c: Likewise.
347         * src/printf.c: Likewise.
348         * src/pwd.c: Likewise.
349         * src/seq.c: Likewise.
350         * src/stty.c: Likewise.
351         * src/su.c: Likewise.
352         * src/test.c: Likewise.
353         * src/uname.c: Likewise.
354         * src/uptime.c: Likewise.
355         * src/users.c: Likewise.
356         * src/who.c: Likewise.
357         * src/whoami.c: Likewise.
358         * src/tee.c: Likewise.  Remove explicit close_stdout.
360         * src/yes.c Include "closeout.h".
361         (usage): Call close_stdout just before exit.
362         * src/sleep.c: Likewise.
363         * src/true.c: Likewise.
364         * src/date.c (usage): Call close_stdout_status.
365         * src/printenv.c (usage): Likewise.
367         * tests/date/Test.pm ($Test::env{'rfc822-1'}): Add TZ=UTC0.
369 2000-05-06  Jim Meyering  <meyering@lucent.com>
371         * src/Makefile.am (sleep_LDADD): Add @LIB_CLOCK_GETTIME@ and
372         @LIB_NANOSLEEP@.
374         * src/tty.c (main): Warn about arguments, don't fail.
375         (usage): Call close_stdout_status from here as well as from main.
377 2000-05-05  Jim Meyering  <meyering@lucent.com>
379         Exit nonzero upon write failure.
380         * src/printf.c: Include "closeout.h".
381         (main): Call close_stdout.
382         Reported by Ian Jackson via Michael Stone.
384 2000-05-04  Jim Meyering  <meyering@lucent.com>
386         * Makefile.maint (my-distcheck): Remove spurious blank line.
387         Remove $(DEPDIR) *after* making distclean, not before.
389 2000-04-30  Jim Meyering  <meyering@lucent.com>
391         * src/yes.c: Detect and terminate upon write failure.
393 2000-04-14  Jim Meyering  <meyering@lucent.com>
395         * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and
396         remove unnecessary uses of `defined' (aesthetics).
398 2000-04-12  Jim Meyering  <meyering@lucent.com>
400         Move some code into m4/.
401         * configure.in (_GNU_SOURCE): Don't define here.
402         (AC_SYS_LARGEFILE): Don't use here.
403         (AM_C_PROTOTYPES): Don't use here.
404         (AC_DEFINE): Use 3-arg form.
405         * acconfig.h: Remove now-unused file.
407 2000-04-09  Jim Meyering  <meyering@lucent.com>
409         * configure.in (ALL_LINGUAS): Add Estonian (et).
411 2000-04-01  Jochen Hein  <jochen@jochen.org>
413         * src/date.c: Use the "C" locale when using --rfc-822 (-R), as
414         required by rfc822.  Before, in the de_DE locale, date would
415         print the German weekday and month abbreviations.
417         * tests/date/Test.pm: Add test for rfc822 format and foreign
418         locale settings.
420 2000-04-04  Jim Meyering  <meyering@lucent.com>
422         * man/Makefile.am (man_MANS): Add uptime.1.
423         * man/uptime.x: New file.
425         * man/Makefile.am (man_MANS): Add factor.1.
426         * man/factor.x: New file.
428         * tests/seq/basic: Split a long line and tweak for font-lock mode.
429         * tests/factor/basic: Likewise.
430         * tests/basename/basic: Likewise.
432 2000-03-29  Paul Eggert  <eggert@twinsun.com>
434         * src/date.c: Include <langinfo.h> if it exists.
435         (DATE_FMT_LANGINFO): New macro.
436         (show_date): Use it to get the locale-specific default format for
437         "date" if it exists.
439 2000-03-19  Jim Meyering  <meyering@lucent.com>
441         * Version 2.0g.
443         * doc/sh-utils.texi (chroot invocation): Include a couple tips and
444         a simple example.
446         * doc/getdate.texi (Calendar date item): Fix typos.
447         From Per Cederqvist.
449 2000-03-18  Jim Meyering  <meyering@lucent.com>
451         * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds.
453 2000-03-12  Jim Meyering  <meyering@lucent.com>
455         Merge from textutils.
456         * src/system.h: (O_BINARY, O_TEXT): Define if necessary.
457         (SET_BINARY, SET_BINARY2): Define.
458         (DEV_BSIZE): Define to BBSIZE if appropriate.
460 2000-03-11  Jim Meyering  <meyering@lucent.com>
462         * tests/date/Test.pm: Set the default TZ value to UTC0, not UTC.
463         The latter didn't have any effect on alphaev56-dec-osf4.0f.
465         Final merge with fileutils.
466         * src/system.h: Use standard `#if TIME_WITH_SYS_TIME...' block
467         rather than `#if TM_IN_SYS_TIME' one.
469 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
471         * printf.c: Include "unicodeio.h".
472         (usage): Mention \u and \U directives. \x outputs a byte, not a
473         character.
474         (print_esc): Implement \u and \U.
475         * Makefile.am (printf_LDADD): Add @LIBICONV@.
477 2000-03-03  Jim Meyering  <meyering@lucent.com>
479         Make it so stty's rprnt attribute works on HPUX 10.20.
480         * src/stty.c [CREPRINT && !CRPRNT] (CRPRNT): Define.
481         (control_info): Recognize HPUX's CREPRINT.
483 2000-03-02  Jim Meyering  <meyering@lucent.com>
485         * doc/sh-utils.texi (printf invocation): Describe new unicode syntax.
486         From Bruno Haible.
488         Unify with fileutils/src/system.h.
489         * src/system.h (ST_NBLOCKS): Sync with recent changes in fileutils.
490         [!_POSIX_VERSION]: Remove declarations of getlogin, ttyname, geteuid.
491         * src/sys2.h: Declare them here, if needed.
493 2000-03-01  Jim Meyering  <meyering@lucent.com>
495         * Makefile.am (EXTRA_DIST): Include GNUmakefile.
497         * src/seq.c (get_width_format): Fix portability problem with
498         `-0' vs. `0'.
500 2000-02-22  Jim Meyering  <meyering@lucent.com>
502         * tests/date/Test.pm (datevtime-1): New test.
503         From John Kendall.
505 2000-02-15  Jim Meyering  <meyering@lucent.com>
507         * man/Makefile.maint ($(man_MANS)): Remove $@-t1.
509 2000-02-13  Jim Meyering  <meyering@lucent.com>
511         * tests/Fetish.pm (run_tests): Discard stderr.
512         Reverse diff args, so `expected' is last, as in mk-script.
514 2000-02-12  Jim Meyering  <meyering@lucent.com>
516         * tests/mk-script: Invoke `diff' when differences are found.
517         * tests/Fetish.pm (run_tests): Likewise.
519 2000-02-09  Jim Meyering  <meyering@lucent.com>
521         * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard
522         to go along with corrected autoconf test:  Reported by Gaël Quéri.
524 2000-02-05  Jim Meyering  <meyering@lucent.com>
526         * Version 2.0f.
528         * src/who.c: Use UT_USER in place of hard-coded `->ut_name' here, too.
529         * src/pinky.c: Likewise.
530         Reported by Tom Tromey and Andreas Schwab.
531         * src/uptime.c (print_uptime): Likewise.
532         * src/users.c (list_entries_users): Likewise.
534 2000-01-30  Jim Meyering  <meyering@lucent.com>
536         * Version 2.0e.
538         * src/su.c (correct_password): Guard with `HAVE_GETSPNAM &&
539         HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'.
541         * po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c,
542         and lib/same.c.
544 2000-01-29  Jim Meyering  <meyering@lucent.com>
546         * configure.in: Move library-related tests into m4/lib-check.m4.
547         Remove lib-check for cposix now that we use m4/isc-posix.m4.
549         * src/seq.c: Back out most of the 2000-01-21 and 01-22 changes.
550         [Instead, merely give examples showing how to accomplish the same
551         task with fewer limitations using existing tools. ]
552         Suggestion from Bruno Haible.
553         (valid_format): Rename from check_format.
554         * tests/seq/basic: Remove associated tests and add two equal-width ones.
556         * tests/stty/row-col-1: Set COLUMNS envvar, just to be safe.
558 2000-01-28  Jim Meyering  <meyering@lucent.com>
560         * src/stty.c (wrapf): Emit a newline only if 0 < current_col.
561         (screen_columns): Use xstrtol, not atoi.
562         If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.
564 2000-01-23  Jim Meyering  <meyering@lucent.com>
566         * configure.in (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
567         AC_SUBST these not here, but rather in m4/, so that the now-shared
568         lib/Makefile.am are all the same.
569         (AC_CHECK_FUNCS): Remove check for utmpname, since it's already
570         in m4/prereq.m4.
571         Remove many function checks (moved to m4/.)
573         * configure.in (AM_FUNC_STRTOD): Move to m4/.
574         (AC_SUBST(POW_LIBM)): Likewise.
576         * configure.in (SEQ_LIBM): Remove AC_SUBST of a constant.
577         * src/Makefile.am (seq_LDADD): Add -lm rather than constant $(SEQ_LIBM).
579 2000-01-22  Jim Meyering  <meyering@lucent.com>
581         * src/sys2.h [! HAVE_DECL_STRTOUL]: Declare strtoul.
582         [! HAVE_DECL_STRTOULL]: Declare strtoull.
583         Required for some AIX systems.  Reported by Christian Krackowizer.
585         * configure.in (ALL_LINGUAS): Add Slovenian (sl).
586         (AC_CHECK_HEADERS): Move these checks into m4/.
588         * src/seq.c (enum Format_type): Declare.
589         (format_type): New global to take place of intconv.
590         (format_str): Move global declaration...
591         (main): ... to here.
592         (check_format): Rename parameter to avoid shadowing global.
593         (DO_printf): New macro.
594         (main): Use it.
595         Topologically sort the functions and remove fwd declarations.
597 2000-01-21  Bruno Haible  <haible@linuix.math.u-bordeaux.fr>
599         Add support for octal and hexadecimal output.
600         * seq.c (intconv): New variable.
601         (usage): Update.
602         (main): Call scan_arg instead of scan_double_arg. Call check_format
603         before scan_arg.
604         (scan_int_arg, scan_arg): New functions.
605         (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
606         (print_numbers): If intconv is true, pass an int argument to printf.
608 2000-01-21  Jim Meyering  <meyering@lucent.com>
610         * configure.in (ALL_LINGUAS): Add Galician (gl).
612 2000-01-16  Jim Meyering  <meyering@lucent.com>
614         * lib/Makefile.am: Sync with fileutils/lib/Makefile.am.
616         * src/date.c (usage): Correct error in %V description.
617         From Wolfram Kleff.
619         * configure.in: Remove jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
620         AM_FUNC_GETLOADAVG, jm_SYS_PROC_UPTIME, AM_SYS_POSIX_TERMIOS,
621         jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.
623 2000-01-15  Jim Meyering  <meyering@lucent.com>
625         * configure.in (AC_REPLACE_FUNCS): Remove gethostname, getusershell,
626         memcpy, and memset.  Now that's done in m4/.
627         Remove these, too: stime strcspn stpcpy strstr strtol strtoul.
629 2000-01-12  Jim Meyering  <meyering@lucent.com>
631         * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST.
633 2000-01-11  Jim Meyering  <meyering@lucent.com>
635         Sync lib/ directories of sh-utils, and textutils.
637         * lib/Makefile.am (libfetish_a_SOURCES): Add diacrit.c, hard-locale.c,
638         linebuffer.c, md5.c, memcasecmp.c, memcoll.c, obstack.c, safe-read.c
639         (noinst_HEADERS): Add bumpalloc.h, diacrit.h, hard-locale.h,
640         linebuffer.h, md5.h, memcasecmp.h, memcoll.h, obstack.h, safe-read.h.
642         * lib/Makefile.am: s/su/fetish/
643         * src/Makefile.am: s/libsu/libfetish/
645 2000-01-10  Jim Meyering  <meyering@lucent.com>
647         * Version 2.0d.
649         * src/Makefile.am (sleep_LDADD): Add @POW_LIBM@, for systems that use
650         lib/strtod.c and need -lm to resolve its pow reference.
652 2000-01-07  Jim Meyering  <meyering@ascend.com>
654         * Version 2.0c.
656         * tests/basename/Makefile.am (TESTS_ENVIRONMENT): Add `pwd`/ prefix
657         to exported PATH value (though not strictly necessary, here).
658         * tests/factor/Makefile.am (TESTS_ENVIRONMENT): Likewise.
659         * tests/seq/Makefile.am (TESTS_ENVIRONMENT): Likewise.
660         * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Likewise.
662 2000-01-06  Paul Eggert  <eggert@set.twinsun.com>
664         * tar/lib/getdate.y: Sync tm_diff with the GNU C Library.
665         (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN.  All uses changed.
666         (tm_diff): Renamed from difftm.  All uses changed.
667         Replace body with that taken from GNU C Library 2.1.3pre1.
668         (get_date): Prefer tm_gmtoff to tm_diff if available.
670 2000-01-05  Paul Eggert  <eggert@twinsun.com>
672         Minor code cleanup.
673         * src/sleep.c (clock_get_realtime): Return argument, for convenience.
674         (main): Use this to simplify main sleep loop.
676 2000-01-05  Jim Meyering  <meyering@ascend.com>
678         Some systems lack a definition of struct timespec (AIX, Ultrix)
679         Reported by Christian Krackowizer.
680         * lib/Makefile.am (noinst_HEADERS): Add nanosleep.h.
681         * lib/nanosleep.h: New file.
682         * lib/nanosleep.c: Include it.
683         Don't include time.h or sys/time.h here.
684         * src/sleep.c: Include it.
685         (AUTHORS): Add Paul Eggert.
687 2000-01-04  Jim Meyering  <meyering@ascend.com>
689         * lib/nanosleep.c: Include both time.h and sys/time.h only
690         #if TIME_WITH_SYS_TIME.
692 2000-01-03  Paul Eggert  <eggert@twinsun.com>
694         Fix some porting and rounding problems with the new `sleep' code.
696         * configure.in (AC_CHECK_HEADERS): Add fenv.h.
697         (FESETROUND_LIBM): New macro.
699         * lib/xstrtod.c: Add #pragma STDC FENV_ACCESS ON if C99.
700         * src/sleep.c: Likewise.
702         * src/Makefile.am (sleep_LDADD, sleep_DEPENDENCIES): New macros.
704         * src/sleep.c (<fenv.h>): Include if available.
705         (main): Always round floating-point interval calculations upwards,
706         as we must sleep for at least the specified time.
707         Do the right thing with NaNs.
709         (main): Sleep forever if the time calculations overflow.
710         (apply_suffix): Don't assert that *s <= TIME_T_MAX.
712         (clock_get_realtime): Fix typo; address was improperly taken.
714 2000-01-02  Jim Meyering  <meyering@ascend.com>
716         * Version 2.0b.
718         * lib/Makefile.in: Regenerate.
720         * Version 2.0a.
722 1999-12-26  Jim Meyering  <meyering@ascend.com>
724         * lib/nanosleep.c (nanosleep): New file.
726 1999-12-23  Jim Meyering  <meyering@ascend.com>
728         * src/sleep.c (USE_CLOCK_GETTIME): Define.
729         [USE_CLOCK_GETTIME]: Include sys/time.h.
730         (timespec_subtract): New function.
731         (clock_get_realtime): New function.
732         (sighandler): Remove function.
733         (main): Reimplement again, using nanosleep and clock_gettime.
735         * configure.in: Remove check for gettimeofday.
736         Now it's in m4/jm-macros.m4
738         * man/Makefile.summ: Remove now-unused summaries.
740 1999-12-22  Jim Meyering  <meyering@ascend.com>
742         * lib/getdate.y (get_date): Fix typo in time_t overflow test.
743         From Michael Stone.
745         * tests/date/Test.pm (regress-1):  New test for the above.
747 1999-12-18  Jim Meyering  <meyering@ascend.com>
749         * src/who.c (print_entry): Correct do_lookup test so that who
750         prints whatever host information it has, even without --lookup.
751         Reported by Bill Peters.
753 1999-12-12  Jim Meyering  <meyering@ascend.com>
755         Move 120+ lines of stat.h-related macros from system.h (not shared)
756         to sys2.h, which is shared between fileutils, sh-utils, textutils.
757         * src/system.h: Move them from here...
758         * src/sys2.h: ... to here.
760 1999-11-27  Jim Meyering  <meyering@ascend.com>
762         Rewrite to allow fractional seconds and to handle SIGCONT.
763         * src/sleep.c (main): Rewrite.
764         (sighandler): New function.
765         (apply_suffix): New function.
766         (timeval_subtract): New function.
767         Reported by Raul Miller.
769         * src/sleep.c (argdecode): Move definition to precede use.
770         Remove prototype.
771         (usage): Add elipses to show that sleep allows more than one argument.
773 1999-11-22  Jim Meyering  <meyering@ascend.com>
775         * lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c.
777 1999-11-09  Jim Meyering  <meyering@ascend.com>
779         * src/expr.c (NEW): Undefine to avoid warning about redefinition.
780         (NEW): Redefine in terms of XMALLOC.
782         * lib/xalloc.h (XMALLOC): Correct misnamed macro parameter name:
783         s/N_bytes/N_items/.
784         (XCALLOC): Likewise.
785         (XREALLOC): Likewise.
787 1999-11-05  Jim Meyering  <meyering@ascend.com>
789         * src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated
790         HAVE_ST_BLOCKS.
792         * configure.in: Move some type/header/member tests into
793         m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of
794         fileutils, textutils, and sh-utils.
796 1999-11-01  Jim Meyering  <meyering@ascend.com>
798         * lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
800 1999-10-07  Jim Meyering  <meyering@ascend.com>
802         * configure.in (ALL_LINGUAS): Add Japanese (ja).
804 1999-10-04  Jim Meyering  <meyering@ascend.com>
806         * depcomp: New file, for automake's new dependency support.
807         * missing: New version, from automake's user-dep-gen-branch.
809 1999-09-28  Jim Meyering  <meyering@ascend.com>
811         * src/system.h: Update from the system.h from fileutils.
812         Now they're finally almost identical...
814 1999-09-09  Jim Meyering  <meyering@ascend.com>
816         * src/Makefile.am (EXTRAdir): Remove unused variable.
817         (installed_su): Use `$(DESTDIR)$(bindir)' in place of $(bindir).
818         (install-exec-local): Likewise.
819         (.sh): Substitute `$(bindir)' rather than @bindir@.
820         Based on a patch from Andreas Schwab.
822 1999-09-08  Andreas Schwab  <schwab@suse.de>
824         * tests/nice: Instead of failing, exit with 77 if running niced.
826 1999-09-08  Jim Meyering  <meyering@ascend.com>
828         * src/su.c: Remove declaration of xstrdup.
830 1999-09-02  Jim Meyering  <meyering@ascend.com>
832         * src/expr.c: Remove xstrdup declaration.
833         * src/date.c: Likewise.
834         * src/pathchk.c: Likewise.
835         * src/su.c: Likewise.
837 1999-08-29  Jim Meyering  <meyering@ascend.com>
839         * tests/nice: Use `nice' instead of $nice.
840         * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend ../src to PATH so
841         the above works.
843         * src/env.c (main): Call exit explicitly to avoid warning from gcc.
844         * src/nice.c (main): Likewise.
845         Include "xstrtol.h".
846         (isinteger): Remove function and prototype.
847         (main): Use xstrtol in place of atoi.  Remove associated FIXME comments.
849         * configure.in (AC_YACC): Remove use, now that we require bison.
851         * tests/date/Test.pm (test_vector): Add a test for the Risks-reported
852         problem with syntax like this: Nov 11 1996.
854         * lib/getdate.y (get_date): Rename outermost local `probe' to `quarter'.
855         (get_date): Rename latter local `tm' to probe_tm.
857         * lib/getdate.y (relative_time_table): Change `type' of `THIS' from
858         tMINUTE_UNIT to tUNUMBER.  From Urs Thuermann.
859         * tests/date/Test.pm (test_vector): Add tests for use of `this'.
861 1999-08-25  Jim Meyering  <meyering@ascend.com>
863         * man/Makefile.summ (seq-summary): Define.
864         * man/Makefile.am (man_MANS): Add seq.1.
865         Reported by Dirk-Jan Faber.
867 1999-08-23  Jim Meyering  <meyering@ascend.com>
869         * src/pathchk.c (longopts): Restore accidentally-removed entry for
870         `--portability' long option.
871         * src/chroot.c (usage): Correct --help message.
872         * src/hostid.c (usage): Likewise.
873         * src/hostname.c (usage): Likewise.
874         * src/logname.c (usage): Likewise.
875         * src/nice.c (usage): Likewise.
876         * src/printenv.c (usage): Likewise.
877         * src/sleep.c (usage): Likewise.
878         * src/stty.c (usage): Likewise.
879         Reported by Daniel Bergstrom.
881 1999-08-22  Jim Meyering  <meyering@ascend.com>
883         * src/sys2.h (ATTRIBUTE_NORETURN): Define.
884         * src/test.c: Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.
885         (NO_RETURN_ATTRIBUTE): Remove definition.
887         * src/su.c (run_shell): Declare with gcc's noreturn attribute.
888         Use an explicit exit(1) rather than doing that through error.
890         * src/sys2.h (IF_LINT): Define new macro.
891         * src/date.c (batch_convert): Use IF_LINT macro instead of #ifdef lint.
892         * src/pathchk.c (validate_path): Likewise.
894 1999-08-21  Jim Meyering  <meyering@ascend.com>
896         * src/hostid.c (usage): Remove the ` [-v]' from the Usage: line.
897         Reported by Daniel Bergstrom.
899 1999-08-17  Jim Meyering  <meyering@ascend.com>
901         * tests/stty/input-tty: New file, containing code factored out of
902         the two test scripts.  Mention `at' and `batch' in addition to `rsh'.
903         * tests/stty/basic-1: Source it.
904         * tests/stty/row-col-1: Source it.
905         * tests/stty/Makefile.am (EXTRA_DIST): Add input-tty.
907 1999-08-14  Jim Meyering  <meyering@ascend.com>
909         * Version 2.0.
911         * tests/stty/basic-1: Fail-77 if stdin is not a tty.
912         * tests/stty/row-col-1: Likewise.
913         Suggestion from Volker Borchert.
915 1999-08-07  Jim Meyering  <meyering@ascend.com>
917         * Version 1.16m.
919         * Makefile.maint (po-check): New rule.
920         (alpha): Make it.
922         * po/POTFILES.in: Add the following from lib/: argmatch.c, closeout.c,
923         error.c, getopt.c, human.c, long-options.c, version-etc.c, xmalloc.c.
924         Add these from src/: false.c, hostid.c, true.c.
926         * lib/getdate.y (OtherTable[]): Use tDAY_UNIT for `tomorrow,'
927         `yesterday,' `today,' and `now' rather than tMINUTE_UNIT.  Of course
928         with correspondingly smaller numbers for tomorrow and yesterday.
929         This change does not change the way the code works, since the
930         grammar rules for the two symbols are analogous.
931         From Tadayoshi Funaba.
933 1999-08-04  Jim Meyering  <meyering@ascend.com>
935         false and true once again generate --help and --version output
936         * src/true.c: Honor --help and --version once again, bug ignore
937         those options when POSIXLY_CORRECT is set.
938         * src/false.c: Fail even for --help and --version.
939         * src/Makefile.am (false.c): Generate automatically from true.c.
940         (BUILT_SOURCES): Add false.c.
941         * man/Makefile.am (EXTRA_DIST): Remove false.1in and true.1in.
942         * man/Makefile.summ: Remove the rules added on 1999-07-31.
943         * man/Makefile.maint: Likewise.
944         * man/true.1in: Removed.
945         * man/false.1in: Removed.
947         * configure.in: Remove getline-testing code.  Now it's in m4/.
949 1999-08-01  Jim Meyering  <meyering@ascend.com>
951         * src/date.c (usage): Correct description of %S; (00..60, not 00..61).
952         From Ken Pizzini.
954 1999-08-01  Paul Eggert  <eggert@twinsun.com>
956         * configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS.
958 1999-07-31  Jim Meyering  <meyering@ascend.com>
960         * Version 1.16l.
962         false and true are now C programs rather than shell scripts
963         * src/true.c: New file.
964         * src/false.c: New file.
965         * src/true.sh: Removed.
966         * src/false.sh: Removed.
967         * src/Makefile.am: (bin_PROGRAMS): Add true and false.
968         (bin_SCRIPTS): Remove true and false.
969         (EXTRA_DIST): Remove false.sh and true.sh.
970         * man/true.1in: New file.
971         * man/false.1in: New file.
972         * man/Makefile.am (EXTRA_DIST): Remove extra (shadowed) assignment.
973         (EXTRA_DIST): Add false.1in and true.1in.
974         * man/Makefile.maint (helpful-men): Define.
975         * man/Makefile.summ ($(helpless-men)): New manual-generating rules to
976         accommodate the fact that false and true no longer accept --help.
977         * doc/sh-utils.texi: Include a couple of sentences from the
978         truefalse package.
979         Prompted by Christi Alice Scarborough's truefalse package.
981 1999-07-30  Jim Meyering  <meyering@ascend.com>
983         * configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR).
985 1999-07-26  Jim Meyering  <meyering@ascend.com>
987         * src/tee.c (tee): Convert from open/fds to using fopen/streams for
988         output, in preparation for addition of new compression option.
990 1999-07-21  Jim Meyering  <meyering@ascend.com>
992         * tests/stty/basic-1 (options): Avoid Solaris' broken /usr/ucb/tr by
993         removing offending use of tr altogether and removing hyphens with sed.
994         Reported by Kaveh Ghazi.
996 1999-06-01  Volker Borchert  <bt@teknon.de>
998         * tests/Makefile.am: Make envvar-check depend on check-recursive rather
999         than on `check' so that its tests are performed before any real tests.
1001 1999-07-15  Jim Meyering  <meyering@ascend.com>
1003         * src/false.sh: Always exit unsuccessfully, even with
1004         --help and --version.  Suggested by Felix Lee.
1006 1999-07-12  Jim Meyering  <meyering@ascend.com>
1008         * src/sys2.h (mempcpy): Define only if not already defined.
1009         Reported by Collin Rogowski.
1011 1999-05-27  Volker Borchert  <bt@teknon.de>
1013         * tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix.
1015 1999-05-25  Jim Meyering  <meyering@ascend.com>
1017         * tests/stty/basic-1: Fix non-portable use of `tr' that caused
1018         this test to fail when run with a SysV-style tr.
1019         Based on a patch from Kaveh Ghazi.
1021 1999-05-21  Jim Meyering  <meyering@ascend.com>
1023         * Version 1.16k.
1024         * configuration fixes: see m4/ChangeLog.
1026 1999-05-16  Jim Meyering  <meyering@ascend.com>
1028         * Version 1.16j.
1030         * configure.in (AC_SEARCH_LIBS): Set LIB_CRYPT to $ac_cv_search_crypt,
1031         to go along with the new macro in m4/search-libs.m4.
1033 1999-05-14  Jim Meyering  <meyering@ascend.com>
1035         * lib/getugroups.c (getugroups): Don't dereference a null pointer when
1036         running `id USER' for some USER that is listed on the RHS in /etc/group.
1037         From Sander van Malssen.
1038         Add some curly braces, use STREQ, reverse the sense of a test
1039         and use `continue' to save a level of nesting.
1041         * tests/Makefile.am (envvar-check): Renamed from check-local.
1042         (check): Depend on envvar-check so the envvar check is performed
1043         before all other tests.  Reported by Volker Borchert.
1044         * tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects,
1045         so CDPATH is mentioned in the message.  Reported by Volker Borchert.
1047 1999-05-10  Jim Meyering  <meyering@ascend.com>
1049         * src/uptime.c (AUTHORS): add Kaveh.
1051         Expand each `&' character in the gecos field.
1052         * src/pinky.c (count_ampersands): New function.
1053         (create_fullname): New function.
1054         (print_entry): Use create_fullname here.
1055         (print_long_entry): Use it here, too.
1056         From Kaveh Ghazi.
1058 1999-05-09  Jim Meyering  <meyering@ascend.com>
1060         * lib/regex.c: Update from libc.
1062         * Version 1.16i.
1064         * configure.in: Clean up checks for libraries so that we don't add
1065         -lshadow unless necessary.  Reported by Joseph S. Myers.
1067 1999-05-05  Jim Meyering  <meyering@ascend.com>
1069         Add definitions to help read utmpx on systems with utmpname.
1070         * lib/readutmp.h (UTMP_NAME_FUNCTION): Define.
1071         (SET_UTMP_ENT): Likewise.
1072         (GET_UTMP_ENT): Likewise.
1073         (END_UTMP_ENT): Likewise.
1074         * lib/readutmp.c (read_utmp): Use the new definitions.
1075         From Kaveh Ghazi.
1077         * src/date.c (show_date): Change an automatic aggregate initializer
1078         to be a static one.  For SunOS4's cc.  From Kaveh Ghazi.
1080 1999-05-03  Jim Meyering  <meyering@ascend.com>
1082         * configure.in: Remove duplicate use of jm_FUNC_GNU_STRFTIME.
1083         Kaveh Ghazi reported that strftime.o was listed twice in the command
1084         to build libsu.a.
1086 1999-05-02  Jim Meyering  <meyering@ascend.com>
1088         * Version 1.16h.
1090         * src/hostname.c (main): Give a better diagnostic when we fail to
1091         set the hostname.
1093         * man/Makefile.summ (hostid-summary): Use correct description.
1094         Reported by Joseph S. Myers.
1096         * lib/readutmp.c (read_utmp): Ignore the return value from utmpname.
1098 1999-04-30  Jim Meyering  <meyering@ascend.com>
1100         * src/dirname.c (main): Manually handle `--', since we no longer
1101         call getopt.  Reported by Joseph S. Myers.
1102         * src/basename.c (main): Likewise.
1103         * src/factor.c (main): Likewise.
1105 1999-04-25  Jim Meyering  <meyering@ascend.com>
1107         * src/seq.c (main): Handle the case in which seq is given no args.
1108         Reported by John Gotts.
1109         (main): Revert last change.
1110         Instead, loop on `optind < argc' to protect use of argv[optind].
1112         * lib/human.c <inttypes.h>: Don't include it here.
1113         * lib/human.h <inttypes.h>: Include it here instead.
1114         <config.h>: Include it here too.
1115         Reported by Andreas Jaeger.
1117         * src/nice.c [NDEBUG]: Remove definition.
1118         Reported by Andreas Jaeger.
1120 1999-04-24  Jim Meyering  <meyering@ascend.com>
1122         * src/who.c (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
1124         * Version 1.16g.
1126         * configure.in: Use AC_CANONICAL_HOST.
1128 1999-04-20  Jim Meyering  <meyering@ascend.com>
1130         Update factor to use `uintmax_t'.
1131         * src/factor.c <xstrtol.h>: Include this, not xstrtoul.h.
1132         <human.h>: Include.
1133         Use uintmax_t in place of unsigned long.
1134         Use human_readable to convert to strings for printing.
1135         * lib/xstrtoumax.c: New file.
1136         * lib/human.c: New file.
1137         * lib/human.h: New file.
1138         * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c.
1139         (noinst_HEADERS): Add human.h.  Remove xstrtoul.h.
1141 1999-04-19  Jim Meyering  <meyering@ascend.com>
1143         * src/seq.c (main): Restore `+' in getopt_long string.  Otherwise,
1144         commands like `seq 10 -2 0' wouldn't work.  From Andreas Schwab.
1145         * tests/seq/basic: Add tests for that.
1147 1999-04-17  Jim Meyering  <meyering@ascend.com>
1149         * tests/seq: New directory and basic tests.
1150         * tests/Makefile.am (SUBDIRS): Add seq.
1151         * configure.in (AC_OUTPUT): Add tests/seq/Makefile.
1153 1999-04-17  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1155         * configure.in: Check for localeconv.
1157         * src/seq.c (decimal_point): New variable.
1158         (main): Set it to locale's decimal point.  Fix recognition of
1159         negative number as argument.
1160         (get_width_format): Correctly handle a negative min_val or step
1161         when computing fraction width.  Use decimal_point.
1163 1999-04-08  Jim Meyering  <meyering@ascend.com>
1165         1999-03-25  James R. Van Zandt  <jrv@vanzandt.mv.com>
1166         * doc/sh-utils.texi (Options for date): Document --iso-8601
1167         * src/date.c: Accept new option: --iso-8601.
1168         * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c.
1169         (noinst_HEADERS): Add argmatch.h and quotearg.h.
1170         * lib/argmatch.c: New file.
1171         * lib/argmatch.h: New file.
1172         * lib/quotearg.c: New file.
1173         * lib/quotearg.h: New file.
1175 1999-03-30  Jim Meyering  <meyering@ascend.com>
1177         * src/sys2.h: Include "closeout.h" and "version-etc.h"
1179         * src/*.c (PROGRAM_NAME, AUTHORS): Define and use.
1181         * src/date.c: No longer include long-options.h.
1182         [long_options]: Add entries for --help and --version.
1183         Remove parse_long_options call.
1184         (main) [getopt switch]: Add a case for each of --help and --version.
1185         * src/env.c: Likewise.
1186         * src/id.c: Likewise.
1187         * src/pinky.c: Likewise.
1188         * src/seq.c: Likewise.
1189         * src/su.c: Likewise.
1190         * src/sys2.h: Likewise.
1191         * src/tee.c: Likewise.
1192         * src/tty.c: Likewise.
1193         * src/uname.c: Likewise.
1194         * src/who.c: Likewise.
1196 1999-03-29  Jim Meyering  <meyering@ascend.com>
1198         * configure.in (GNU_PACKAGE): Remove related code -- now it's in
1199         the catch-all for shared autoconf code, m4/jm-macros.m4.
1200         (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
1201         this instead.
1203 1999-03-28  Jim Meyering  <meyering@ascend.com>
1205         * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME.
1207 1999-03-28  Paul Eggert  <eggert@twinsun.com>
1209         * lib/getdate.y (get_date): Reuse tm_isdst of first localtime
1210         call; this is an improvement on a bug fix suggested by
1211         martin@dresden.nacamar.de.  Do not assume that localtime and
1212         gmtime return non-null.
1214 1999-03-27  Jim Meyering  <meyering@ascend.com>
1216         * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show
1217         that only one of --help or --version is recognized at a time.
1218         Reported by Meelis Roos.
1219         * src/true.sh: Likewise.
1221         * src/id.c (print_user): Use uid_t instead of int.
1222         (print_group): Use gid_t instead of int.
1223         From John Bley.
1225 1999-03-26  Jim Meyering  <meyering@ascend.com>
1227         * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
1228         (noinst_HEADERS): Add version-etc.h.
1230 1999-03-20  Jim Meyering  <meyering@ascend.com>
1232         * src/nohup.sh: Don't modify PATH just to get GNU nice.  Instead,
1233         try to find an absolute path for GNU nice.  From Bruno Haible.
1235 1999-03-19  Jim Meyering  <meyering@ascend.com>
1237         * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of
1238         open-coding it.
1240 1999-03-17  Jim Meyering  <meyering@ascend.com>
1242         * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk).
1244 1999-03-13  Jim Meyering  <meyering@ascend.com>
1246         * lib/basename.c (base_name): If NAME is all slashes, return `/' (in
1247         conformance with the single unix spec).  Reported by Peter Moulder.
1249 1999-03-10  Jim Meyering  <meyering@ascend.com>
1251         * src/uptime.c: Declare getloadavg so I can build with -Werror.
1253         * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread.
1255         * lib/canon-host.c (canon_host): Don't use he->h_addr directly.
1256         Based on a patch from Savochkin Andrey Vladimirovich.
1258 1999-03-09  Jim Meyering  <meyering@ascend.com>
1260         Running `id USER' doesn't report any groups if there is no entry
1261         for USER in /etc/group.  Always include the one from /etc/passwd.
1262         * src/id.c: (xgetgroups): Take new parameter, gid, and pass
1263         it to getugroups.
1264         (print_group_list): Call getpwuid and adjust calls to xgetgroups
1265         to include new parameter.
1266         * lib/getugroups.c (getugroups): Take new parameter, gid.
1267         Add gid to the list of groups.
1268         From Ulrich Drepper.
1269         * lib/getgroups.c (getgroups): Protoize.
1271 1999-03-08  Jim Meyering  <meyering@ascend.com>
1273         * tests/basename: New directory and tests.
1274         * tests/Makefile.am (SUBDIRS): Add basename.
1275         * configure.in (AC_OUTPUT): Add tests/basename/Makefile.
1277 1999-03-06  Jim Meyering  <meyering@ascend.com>
1279         * src/date.c (batch_convert): Use a `%s' format in error call,
1280         in case the argument string contains a `%'.
1282         * man/Makefile.am (man_MANS): Add pinky.1.
1283         * man/Makefile.summ (pinky-summary): Define.
1285         * src/date.c: Include long-options.h.
1286         [long_options]: Remove the "help" and "version" entries.
1287         Remove declarations of show_help and show_version.
1288         (main): Use parse_long_options, including author name(s).
1289         Remove the show_version and show_help blocks.
1290         * src/env.c: Likewise.
1291         * src/id.c: Likewise.
1292         * src/logname.c: Likewise.
1293         * src/pathchk.c: Likewise.
1294         * src/pinky.c: Likewise.
1295         * src/printenv.c: Likewise.
1296         * src/seq.c: Likewise.
1297         * src/sleep.c: Likewise.
1298         * src/su.c: Likewise.
1299         * src/tee.c: Likewise.
1300         * src/tty.c: Likewise.
1301         * src/uname.c: Likewise.
1302         * src/uptime.c: Likewise.
1303         * src/users.c: Likewise.
1304         * src/who.c: Likewise.
1305         * src/whoami.c: Likewise.
1307 1999-03-04  Jim Meyering  <meyering@ascend.com>
1309         * src/basename.c (main): Include author name argument in call to
1310         parse_long_options.
1311         * src/chroot.c: Likewise.
1312         * src/dirname.c: Likewise.
1313         * src/echo.c: Likewise.
1314         * src/expr.c: Likewise.
1315         * src/factor.c: Likewise.
1316         * src/hostid.c: Likewise.
1317         * src/hostname.c: Likewise.
1318         * src/nice.c: Likewise.
1319         * src/printf.c: Likewise.
1320         * src/pwd.c: Likewise.
1321         * src/stty.c: Likewise.
1322         * src/test.c: Likewise.
1323         * src/yes.c: Likewise.
1325 1999-03-02  Jim Meyering  <meyering@ascend.com>
1327         * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite.
1329 1999-02-15  Jim Meyering  <meyering@ascend.com>
1331         * src/stty.c (main): #ifdef-out unreachable code.
1333         * src/pinky.c (usage): Add a one-line description.
1334         Suggestion from Karl Berry.
1336 1999-02-08  Jim Meyering  <meyering@ascend.com>
1338         * configure.in (ALL_LINGUAS): Add Czech (cs).
1340 1999-02-07  Jim Meyering  <meyering@ascend.com>
1342         * tests/stty/basic-1: Run all tests even if some fail.
1343         Don't use trap.
1345         * tests/stty/basic-1: Use `stty', not $STTY.
1346         Fix typo in VERBOSE code: s/\$RM/stty/.
1347         * tests/stty/row-col-1: Likewise.
1349         * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY.
1351         Include stdio.h before defining `_unlocked' macros.
1352         * src/pinky.c: Include stdio.h.
1353         * src/uptime.c: Likewise.
1354         * src/users.c: Likewise.
1355         * src/who.c: Likewise.
1356         * lib/readutmp.c: Include stdio.h here...
1357         * lib/readutmp.h: ...not here.
1358         From Ulrich Drepper.
1360         * Version 1.16f.
1362         * Makefile.maint (my-distcheck): Don't depend on dist, now that this
1363         is hooked up to the distcheck rule.
1364         * Makefile.am (distcheck-hook): New target and rule -- link to shared
1365         rule, my-distcheck, in Makefile.maint.
1367         * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
1368         group-member.m4, and just use this new macro.
1370 1999-01-31  Jim Meyering  <meyering@ascend.com>
1372         * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of
1373         @ifinfo so `makeinfo --html ...' works.  From Karl Berry.
1375         * src/chroot.c (main): Call chdir ("/") after chroot.
1376         Suggestion from James Youngman.
1378         * src/uptime.c (print_uptime): Use the C numeric locale for sscanf
1379         of /proc/uptime data, then restore.
1380         * lib/getloadavg.c: Include locale.h.
1381         [!HAVE_SETLOCALE]: Define-away setlocale.
1382         (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the
1383         `C' numeric locale.  Restore afterwards.
1384         Based on a suggestion from Thomas Quinot.
1386         * lib/strtod.c: Protoize.
1388 1999-01-30  Jim Meyering  <meyering@ascend.com>
1390         * acconfig.h: Remove lots of now-unnecessary #undefs.
1392         * configure.in: Require autoconf 2.13.
1394         * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl.
1396         * configure.in (ALL_LINGUAS): Add Greek (el).
1397         * po/el.po: New file.
1399 1999-01-25  Jim Meyering  <meyering@ascend.com>
1401         * src/date.c (usage): Remove static attribute.
1402         Move function be the first in the file.
1403         * src/env.c: Likewise.
1404         * src/id.c: Likewise.
1405         * src/nice.c: Likewise.
1406         * src/pathchk.c: Likewise.
1407         * src/tty.c: Likewise.
1408         * src/uname.c: Likewise.
1410         * src/*.c (usage): Remove static attribute.
1412 1999-01-14  Jim Meyering  <meyering@ascend.com>
1414         * src/date.c: Include closeout.h.
1415         (main): Use close_stdout_status.
1416         * src/printenv.c: Likewise.
1417         * src/tty.c: Likewise.
1419         * src/hostid.c: Include closeout.h.
1420         (main): Use close_stdout.
1421         * src/tee.c: Likewise.
1423 1999-01-10  Jim Meyering  <meyering@ascend.com>
1425         * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD,
1426         who_DEPENDENCIES): Remove definitions.
1428         * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c.
1429         (lstat.c, stat.c): New rules.
1431         * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver.
1433         * configure.in: Require autoconf-2.13.
1434         Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries
1435         to resolve gethostbyname.
1437 1998-12-22  Jim Meyering  <meyering@ascend.com>
1439         * configure.in (ALL_LINGUAS): Add chinese (zh).
1441 1998-12-13  Jim Meyering  <meyering@ascend.com>
1443         * lib/putenv.c: Don't include stdlib.h and declare malloc and free.
1444         This works around Solaris 2.7's conflicting prototype.
1445         Reported by Karl Berry.
1447         * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
1448         (stat.c): Likewise.
1449         (EXTRA_DIST): Add xstat.in.
1450         * lib/stat.c: Remove file.
1451         * lib/lstat.c: Remove file.
1452         * lib/xstat.in (xstat@): New file.
1454 1998-12-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1456         * src/date.c (main): Arrange to exit unsuccessfully when stime fails.
1458 1998-12-07  Jim Meyering  <meyering@ascend.com>
1460         * configure.in (ALL_LINGUAS): Add Russian (ru).
1462 1998-10-31  Jim Meyering  <meyering@ascend.com>
1464         * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm.
1465         * tests/Fetish.pm: New file.
1467         * tests/factor/Makefile.am: Rewrite to use new testing framework.
1468         * tests/factor/Test.pm: Remove file.
1469         * tests/factor/factor-tests: Remove file.
1470         * tests/factor/basic: New file (rewrite of Test.pm).
1472         * acconfig.h (stat): New #undef.
1474 1998-10-03  Jim Meyering  <meyering@ascend.com>
1476         * man/Makefile.am: Switch to using help2man.
1477         (EXTRA_DIST): Add Makefile.summ.
1479         * man/help2man: Invoke program with --manhelp option only if
1480         --name=STRING not specified.  Otherwise, this would fail with `yes'.
1481         * man/Makefile.summ: New file.
1482         * man/Makefile.maint: Include it.
1483         * man/help2man: New file.
1484         * man/GNUmakefile: New file.
1485         * man/Makefile.maint: New file.
1486         * man/*.x: New files.
1487         * man/*.1: Remove files.
1489         * src/Makefile.am (install-exec-local): Change comments to use `##'
1490         to avoid automake warning.
1492         * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/
1493         (libsu_a_SOURCES): s/posixtm.y/posixtm.y/
1494         (libsu_a_SOURCES): Remove getdate.c.  Add fnmatch.h.
1496         * src/date.c (main): Update to use new version of posixtime.
1497         * lib/posixtm.c: New file.
1498         * lib/posixtm.h: New file.
1499         * lib/posixtm.y: Remove file.
1501         * lib/fnmatch.c: New file. (unused)
1502         * lib/fnmatch.h: New file. (unused)
1504 1998-09-27  Jim Meyering  <meyering@ascend.com>
1506         * src/seq.c (main): Decrement optind when we find an `option' that
1507         looks like -N.  Reported by Clark Morgan.
1509 1998-09-26  Jim Meyering  <meyering@ascend.com>
1511         * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return
1512         LONGINT_INVALID for strings that begin with `-'.
1514         * tests/factor/Test.pm: Add a test for negative argument.
1515         Tweak postprocessing framework.
1517 1998-09-19  Jim Meyering  <meyering@ascend.com>
1519         * src/stty.c (main): Revamp option processing, again.
1520         stty couldn't parse some of its options.
1521         * tests/stty/basic-1: New test.
1522         * tests/stty/Makefile.am (TESTS): Add basic-1.
1524 1998-08-29  Jim Meyering  <meyering@ascend.com>
1526         * src/su.c (longopts): Use corresponding short-option character
1527         in place of `1', and `NULL' in place of pointer in initialization.
1529 1998-08-11  Jim Meyering  <meyering@ascend.com>
1531         * src/uptime.c (usage): Correct description.  Reported by John Murphy.
1533 1998-07-16  Jim Meyering  <meyering@ascend.com>
1535         * lib/Makefile.am (noinst_HEADERS): Add lchown.h.
1536         * lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
1537         * lib/lchown.c: Include lchown.h.
1539 1998-07-15  Jim Meyering  <meyering@ascend.com>
1541         * src/seq.c (check_format): Add `5' to the list of digits.
1542         Reported by Donni Erpel.
1544 1998-07-12  Jim Meyering  <meyering@ascend.com>
1546         * tests/test: New directory and tests.
1547         * tests/Makefile.am (SUBDIRS): Add test.
1548         * configure.in (AC_OUTPUT): Add tests/test/Makefile.
1550 1998-07-04  Jim Meyering  <meyering@ascend.com>
1552         * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's
1553         automatically discovered by automake.
1554         (noinst_HEADERS): Remove unused safe-read.h.
1556         * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in
1557         DISTCLEANFILES.
1558         (CLEANFILES): Add su, since we build it unconditionally, yet it's
1559         never put in @OPTIONAL_BIN_PROGS@.
1561 1998-06-29  Jim Meyering  <meyering@ascend.com>
1563         * src/uptime.c: Include system.h only after error.h and readutmp.h
1564         so we don't get redefinition warnings about getc, etc.
1565         * src/who.c: Likewise.
1566         * src/users.c: Likewise.
1568 1998-06-28  Jim Meyering  <meyering@ascend.com>
1570         * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
1572 1998-06-06  Jim Meyering  <meyering@ascend.com>
1574         * src/test.c (unary_operator): Fail if the operand to -t is not valid.
1575         (posixtest): Treat `test -t' the same as `test -t 1'.
1577 1998-05-26  Jim Meyering  <meyering@ascend.com>
1579         * src/test.c (two_arguments): Don't test argv[pos][2] if it's
1580         past end of string.
1582 1998-05-25  Jim Meyering  <meyering@ascend.com>
1584         * configure.in (_GNU_SOURCE): AC_DEFINE it here.
1585         * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
1586         [!_GNU_SOURCE]: Add #undef instead.
1588 1998-05-16  Jim Meyering  <meyering@ascend.com>
1590         * lib/readutmp.c (read_utmp): Add variant for systems that have
1591         the utmpname function.
1592         Ansideclify.
1593         * configure.in: Check for utmpname.
1595         * configure.in (jm_MACROS): New wrapper macro.
1596         Remove uses of most jm_* macros.
1598         * acconfig.h: (chown): Add undef.
1599         (D_INO_IN_DIRENT): Likewise.
1600         (D_TYPE_IN_DIRENT): Likewise.
1601         (ssize_t): Likewise.
1603         * lib/Makefile.am (EXTRA_DIST): Remove.  Automake groks the `LIBOBJS='
1604         lines from the m4/*.m4 macros, so the hack of including some
1605         custom-replaced C source file names here is no longer needed.
1607 1998-05-03  Jim Meyering  <meyering@ascend.com>
1609         * po/: Update from gettext-0.10.35.
1610         * intl/: Likewise.
1611         * configure.in: Remove use of AC_LINK_FILES.
1612         (AC_OUTPUT): Remove po/Makefile-generating sed command.
1614 1998-05-02  Jim Meyering  <meyering@ascend.com>
1616         * src/seq.c (check_format): Use ISDIGIT, not isdigit.
1618 1998-04-26  Jim Meyering  <meyering@ascend.com>
1620         * configure.in: Use jm_ASSERT.
1621         * acconfig.h: Add NDEBUG.
1623 1998-04-13  Jim Meyering  <meyering@eng.ascend.com>
1625         * lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
1627 1998-04-09  Jim Meyering  <meyering@ascend.com>
1629         * configure.in (AM_MAINTAINER_MODE): Remove it.
1630         No longer use AC_PATH_PROG to check for perl.
1631         (jm_PERL): Use this instead.
1633 1998-04-04  Jim Meyering  <meyering@ascend.com>
1635         * lib/readutmp.h (PARAMS): Define.
1637         * tests/Makefile.am (SUBDIRS): Add stty.
1638         * tests/stty/row-col-1: New file.
1639         * tests/stty: New directory.
1640         * configure.in (AC_OUTPUT): Add tests/stty/Makefile.
1642         * src/stty.c: Use STREQ in place of strcmp everywhere.
1643         (valid_options): Indent.
1644         Parenthesize assignment in while expr.
1645         (main): s/case 'f':/case 'F':/
1646         Tweak error messages to make them consistent.
1647         Remove #if-0'd block.
1648         Move dcl of `fdflags' into scope where it's used.
1649         Remove dcl of unused `cp'.
1650         Use "%s", not device_name, as the format string, in case the
1651         latter contains `%'.
1653         [1998-03-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>]
1654         * src/stty.c (valid_options): New function.
1655         (main): Fix broken options parsing that worked only
1656         by serendipity (getopt_long_only already parsed short options; no
1657         need to parse them again manually!).  Add support for the --file
1658         option, which allows the user to specify the device whose line
1659         settings are to be set.  This is necessary because POSIX ttys will
1660         block waiting for carrier detect to go high if CLOCAL is not set,
1661         unless the device is opened with the O_NONBLOCK flag.
1662         Unfortunately, the shell doesn't use this flag, so users lose.
1663         Opening the device in stty is the easist way to fix this.
1664         (speeds): Add support for 230400 and 460800 line speeds, which are
1665         supported by Linux.
1667         * acconfig.h (uintmax_t): Add #undef.
1669         * configure.in (jm_AC_HEADER_INTTYPES_H): Use it.
1670         (jm_AC_TYPE_UINTMAX_T): Use it.
1671         (jm_PREREQ): Use it.
1673         * src/system.h: Sync with system.c from fileutils.
1675         * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
1676         know about the m4/ subdirectory.
1677         * Makefile.maint (aclocal-files): Remove now-unnecessary (with
1678         automake-1.2h and the above change) aclocal-related rules and includes.
1680 1998-04-03  Jim Meyering  <meyering@eng.ascend.com>
1682         * lib/closeout.c: New file.
1683         * lib/closeout.h: New file.
1684         * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c.
1685         (noinst_HEADERS): Add closeout.h.
1687 1998-03-27  Jim Meyering  <meyering@eng.ascend.com>
1689         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
1691 1998-03-26  Jim Meyering  <meyering@eng.ascend.com>
1693         * src/date.c (batch_convert): Remove spurious space in error message.
1694         Reported by Karl Berry.
1696 1998-03-13  Jim Meyering  <meyering@eng.ascend.com>
1698         * lib/getugroups.c (getugroups): Don't add a group number if it
1699         would be a duplicate.  From Ulrich Drepper.
1701 1998-02-22  Jim Meyering  <meyering@eng.ascend.com>
1703         * tests/Makefile.am (EXTRA_DIST): Add mk-script.
1704         * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl.
1705         (mk_script): Set to ../mk-script.
1706         (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script.
1707         Remove @MAINT@ cruft.
1708         (Makefile.am): Likewise.
1709         Remove @MAINT@ cruft.  Now `missing' will explain the failure
1710         when people don't have Perl yet modify a file whose rebuilding
1711         would lead to the use of Perl.
1713         * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@.
1714         (who_LDADD): Likewise.
1715         (pinky_DEPENDENCIES): Set to $(LDADD)
1716         (who_DEPENDENCIES): Likewise.
1718 1998-02-20  Jim Meyering  <meyering@eng.ascend.com>
1720         * lib/getdate.h: Removed.  Could cause confusion with an
1721         automake-generated `.y.h' rule.
1722         * lib/get-date.h: Renamed from getdate.h.
1723         * lib/getdate.y: s/getdate.h/get-date.h/
1724         * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
1725         * src/date.c: s/getdate.h/get-date.h/
1727 1998-02-16  Jim Meyering  <meyering@eng.ascend.com>
1729         * configure.in (jm_FUNC_LSTAT): Use it.
1730         (jm_FUNC_STAT): Use it.
1731         * acconfig.h: Add lstat.
1732         * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c.
1734 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
1736         * tests/nice: Fail immediately if this test is run with `nice'
1737         level different from zero.  Reported by Philippe De Muyter.
1739 1998-02-03  Philippe De Muyter  <phdm@macqel.be>
1741         * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
1743         * lib/putenv.c (sys/types.h): Include to get size_t on some systems.
1744         (NULL): Define if needed.
1746 1998-01-31  Jim Meyering  <meyering@na-net.ornl.gov>
1748         * configure.in (AC_LFS): Use it.
1750 1998-01-25  Jim Meyering  <meyering@na-net.ornl.gov>
1752         * Makefile.maint: New file.
1753         * Makefile.am: Move rules common to textutils, fileutils, sh-utils
1754         into Makefile.maint.
1755         Include Makefile.maint.
1756         (EXTRA_DIST): Add Makefile.maint.
1758 1998-01-03  Jim Meyering  <meyering@na-net.ornl.gov>
1760         * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr.
1762         * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
1763         those files will be built via the ANSI2KNR-filtering rules if necessary.
1765 1997-12-25  Jim Meyering  <meyering@na-net.ornl.gov>
1767         * configure.in: Remove AC_DEFINE of _GNU_SOURCE.
1768         * acconfig.h (_GNU_SOURCE): Define if not already defined.
1769         Put this code in @TOP@ section.
1770         (_GNU_SOURCE): Remove #undef.
1772 1997-12-22  Jim Meyering  <meyering@na-net.ornl.gov>
1774         * configure.in: AC_DEFINE _GNU_SOURCE.
1775         * acconfig.h: Add _GNU_SOURCE.
1777 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
1779         * src/date.c: s/__P/PARAMS/
1780         * src/env.c: Likewise.
1781         * src/expr.c: Likewise.
1782         * src/id.c: Likewise.
1783         * src/nice.c: Likewise.
1784         * src/pathchk.c: Likewise.
1785         * src/seq.c: Likewise.
1786         * src/sleep.c: Likewise.
1787         * src/stty.c: Likewise.
1788         * src/tee.c: Likewise.
1789         * src/test.c: Likewise.
1790         * src/tty.c: Likewise.
1791         * src/uname.c: Likewise.
1793         * src/system.h: Merge in several things from fileutils' version of
1794         this file.
1796         * src/factor.c: Don't include limits.h.
1797         (UINT_MAX): Don't define.
1798         (INT_MAX): Don't define.
1799         These are all done in system.h now.
1800         * src/hostname.c: Don't include limits.h.
1801         * src/id.c: Don't include limits.h or sys/param.h.
1802         * src/pathchk.c: Don't include limits.h.
1803         * src/su.c: Likewise.
1805 1997-12-10  Jim Meyering  <meyering@na-net.ornl.gov>
1807         * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying
1808         to strdup it.
1809         Patch from Dick Streefland.
1811 1997-11-17  Paul Eggert  <eggert@twinsun.com>
1813         * lib/mktime.c, lib/strftime.c (_REENTRANT): #define,
1814         as some hosts need this to declare localtime_r properly.
1816 1997-11-15  Jim Meyering  <meyering@na-net.ornl.gov>
1818         * intl/Makefile.in (distclean): Don't remove libintl.h here.
1819         * Makefile.am (DISTCLEANFILES): Remove it here instead.
1821         * m4/Makefile.am (EXTRA_DIST): Add mktime.m4.
1822         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake.
1824         * m4/strftime.m4: Check for %F format.
1826 1997-11-14  Jim Meyering  <meyering@na-net.ornl.gov>
1828         * m4/mktime.m4: Temporarily add a copy of this file from the automake
1829         distribution.
1830         (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME.
1831         (irix_6_4_bug): New function based on code from Ariel Faigon.
1832         (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's
1833         infinite looping mktime.
1834         Portability tweaks from Paul Eggert.
1836 1997-11-13  Jim Meyering  <meyering@na-net.ornl.gov>
1838         * lib/mktime.c: Update from FSF.
1839         * lib/strftime.c: Update from FSF.
1840         * m4/strftime.m4: Check for POSIX.2's %f format spec.
1842 1997-11-12  Jim Meyering  <meyering@na-net.ornl.gov>
1844         * configure.in (AC_CHECK_FUNCS): Add mempcpy.
1845         * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define.
1846         * src/date.c (batch_convert): Use mempcpy rather than stpcpy.
1848 1997-11-09  Jim Meyering  <meyering@na-net.ornl.gov>
1850         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r.
1851         * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r.
1852         (jm_FUNC_GNU_STRFTIME): Use new macro.
1853         (jm_FUNC_STRFTIME): New macro.  Likewise.
1854         Reported by Noel Cragg.
1856 1997-11-02  Jim Meyering  <meyering@na-net.ornl.gov>
1858         * acconfig.h: Add malloc and realloc.
1860 1997-10-25  Jim Meyering  <meyering@na-net.ornl.gov>
1862         * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc.
1863         (xcalloc): #ifdef-out unused function.
1864         (xrealloc): Remove code to work around deficient versions of realloc.
1865         Now we have an autoconf-enabled replacement version.
1866         (xmalloc): Remove code to work around deficient versions of malloc.
1867         Now we have an autoconf-enabled replacement version.
1869         * configure.in (jm_FUNC_MALLOC): Use it.
1870         (jm_FUNC_REALLOC): Use it.
1871         * lib/Makefile.am (noinst_HEADERS): Add xalloc.h.
1872         (EXTRA_DIST): Add realloc.c.
1873         (EXTRA_DIST): Add malloc.c.
1875         * lib/malloc.c: New file.
1876         * m4/malloc.m4: New file.
1877         * m4/Makefile.am (EXTRA_DIST): Add malloc.m4.
1879         * lib/xalloc.h: New file.
1880         * lib/xmalloc.c: Updated from textutils.
1882         * src/*.c: Remove old-style xmalloc and xrealloc decls.
1883         * src/system.h: Include xalloc.h.
1884         Remove dcls of xmalloc, xcalloc and xrealloc.
1886 1997-10-23  Jim Meyering  <meyering@na-net.ornl.gov>
1888         * Makefile.am (aclocal-files): Also depend on m4/Makefile.am.
1890         * src/system.h [!HAVE_DECLARATION_FREE]: Declare free.
1891         [!HAVE_DECLARATION_MALLOC]: Declare malloc.
1892         [!HAVE_DECLARATION_REALLOC]: Declare realloc.
1893         [!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
1894         [!HAVE_DECLARATION_STRSTR]: Declare strstr.
1895         [STREQ]: Define.
1896         * src/date.c: Remove stpcpy decl.
1897         * src/expr.c: Remove strstr decl.
1898         * src/test.c [STREQ]: Undef then redefine.
1899         On some systems, strstr and stpcpy are macros, so declaring them
1900         unconditionally gets syntax errors.
1901         Reported by Mark M. Kettenis.
1903         * configure.in: Use jm_CHECK_DECLS.
1904         * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4.
1906 1997-10-22  Jim Meyering  <meyering@na-net.ornl.gov>
1908         * m4/decl.m4: New file.
1909         * m4/check-decl.m4: New file.  New macro, jm_CHECK_DECLS.
1911 1997-10-07  Jim Meyering  <meyering@na-net.ornl.gov>
1913         * src/*.c: Update bug-reporting address.
1914         * src/*.sh: Update bug-reporting address.
1916 1997-10-02  Jim Meyering  <meyering@na-net.ornl.gov>
1918         * tests/date/Test.pm (test_vector): Remove _%Z from test `9'.
1919         The timezone string was too system dependent.
1921 1997-09-25  Jim Meyering  <meyering@na-net.ornl.gov>
1923         * src/echo.c: Make echo conform to POSIX.  By default, don't
1924         interpret backslash escape sequences.
1925         [V9_DEFAULT]: Don't #define.
1926         (usage): Document -e option.
1927         (main): Recognize options iff POSIXLY_CORRECT is not set.
1928         From Bruno Haible.
1930 1997-09-19  Jim Meyering  <meyering@na-net.ornl.gov>
1932         * lib/getusershell.c (IN_CTYPE_DOMAIN): Define.
1933         (ISSPACE): Define.
1934         (readname): Use ISSPACE, not isspace.
1935         * lib/strtod.c (IN_CTYPE_DOMAIN): Define.
1936         (ISSPACE): Define.
1937         (ISDIGIT): Define.
1938         (TOLOWER): Define.
1939         Use upper-case versions of ctype macros.
1940         * lib/strtol.c (IN_CTYPE_DOMAIN): Define.
1941         (ISSPACE): Guard with IN_CTYPE_DOMAIN.
1942         (ISDIGIT): Guard with IN_CTYPE_DOMAIN.
1943         (TOUPPER): Guard with IN_CTYPE_DOMAIN.
1944         From Bruno Haible.
1946 1997-09-17  Jim Meyering  <meyering@na-net.ornl.gov>
1948         * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT
1949         is *not* set.  Reported by Frank T Lofaro.
1951         * src/hostid.c: New file.
1952         * src/Makefile.am (EXTRA_PROGRAMS): Add hostid.
1953         * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid,
1954         and if found add hostid to the list.
1955         * man/hostid.1: New file.
1956         * man/Makefile.am (man_MANS): Add hostid.1.
1958 1997-08-31  Jim Meyering  <meyering@na-net.ornl.gov>
1960         * src/who.c (main): New option --lookup (-l).
1961         (print_entry): Only call canon_host if user explicitly asks for it.
1962         (usage): Describe --lookup.
1963         From Galen Hazelwood.
1965         * configure.in (ALL_LINGUAS): Add Spanish (es).
1967 1997-08-02  Jim Meyering  <meyering@na-net.ornl.gov>
1969         * src/Makefile.am (bin_PROGRAMS): Add pinky.
1971         * src/pinky.c: New file.  From Kaveh Ghazi.
1972         * po/POTFILES.in: Add pinky.c.
1974 1997-07-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
1976         * src/date.c (show_date): Don't hang if strftime produces an empty
1977         string.
1979 1997-07-16  Jim Meyering  <meyering@na-net.ornl.gov>
1981         * src/groups.sh: Exit with status from subsidiary `id' command.
1982         Don't print `$name : $groups' if id fails.
1983         Reported by Austin Donnelly.
1985 1997-07-15  Jim Meyering  <meyering@na-net.ornl.gov>
1987         * lib/getloadavg.c: Merge in changes from FSF.
1989 1997-07-13  Jim Meyering  <meyering@na-net.ornl.gov>
1991         * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi.
1992         Now, automake includes it automatically.
1994 1997-07-12  Jim Meyering  <meyering@na-net.ornl.gov>
1996         * po/Makefile.in.in (DISTFILES): Remove ChangeLog.
1997         * po/POTFILES.in: Add who.c, users.c, uptime.c.
1998         Remove who-users.c.
2000         * src/who.c: Rename lots of `this' locals.
2001         Make some parameters `const'.
2002         (who): Update read_utmp caller.
2003         (search_entries): Take additional param: utmp_buf.
2004         Update read_utmp caller.
2005         (who_am_i): Update read_utmp caller.
2007         * src/users.c (users): Update read_utmp caller.
2008         * src/uptime.c (uptime): Update read_utmp caller.
2010         * lib/readutmp.h (PARAMS): Update prototype.
2011         (utmp_contents): Remove dcl.
2013         * lib/readutmp.c (read_utmp): Take new params: count and buffer.
2014         Return boolean indicating failure.
2015         Now, caller must give diagnostic upon failure.
2017 1997-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2019         * lib/readutmp.c, lib/readutmp.h: New files implementing shared
2020         functionality from src/who-users.c.
2022         * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c.
2023         (noinst_HEADERS): Add readutmp.h.
2025         * src/who.c, src/users.c, src/uptime.c: Split these so they no
2026         longer derive from the template source file who-users.c.  Use
2027         shared functionality from lib/readutmp.c instead.
2029         * src/Makefile.am: Remove rules to build who.c, users.c and
2030         uptime.c from template source file who-users.c.  Handle these
2031         files as stand-alone sources.
2033         * src/who-users.c: Remove file.  It is no longer used.
2035 1997-07-12  Jim Meyering  <meyering@na-net.ornl.gov>
2037         * src/date.c (MAYBE_SET_TZ_UTC0): New macro.
2038         (set_tz): New function.
2039         (batch_convert): If necessary, save the initial value of TZ and
2040         for each date in the file, restore it before each call to get_date,
2041         then set it to UTC0 before each show_date call.
2042         (main): Don't set TZ before calling get_date.
2043         Set TZ after get_date call and before show_date call.
2044         Reported by Matthew Braun.
2045         * tests/date/Test.pm: Add new tests for this bug.
2046         Add tests based on new examples in documentation.
2048         * stpcpy.c: New file.
2049         * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c
2051 1997-07-05  Jim Meyering  <meyering@na-net.ornl.gov>
2053         * src/Makefile.am (EXTRA_PROGRAMS): Add su here.
2054         (bin_PROGRAMS): Remove su here.
2055         (install-exec-local): Rewrite rule so that su is installed only if
2056         it can be made setuid root.  Before it was always installed and then
2057         removed if it could *not* be made setuid root.  That had the potential
2058         undesirable side effect of removing (and not replacing) a working
2059         version of su.
2060         (all_local): New target.  Dependend on su.  Required now that su is
2061         no longer in bin_PROGRAMS.
2062         (uninstall-local): Remove su only if it comes from the GNU sh-utils.
2064         * src/su.c: Redefine/undef getusershell around inclusion of <unistd.h>
2065         (via system.h) so Cray's int-returning prototype doesn't conflict
2066         with our char*-returning one.  Reported by Johan Danielsson.
2068 1997-07-04  Jim Meyering  <meyering@na-net.ornl.gov>
2070         * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to
2071         generate tests/*/Makefile.am.
2073         * configure.in (ALL_LINGUAS): Add Norwegian (no).
2075         * tests/date/mk-script.pl (validate): Create test files in $(srcdir),
2076         not in build dir.
2077         * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir),
2078         not in build dir.
2079         * Makefile.am (aclocal-files): Look in source directory, not build dir.
2080         From Andreas Schwab.
2082 1997-07-03  Jim Meyering  <meyering@na-net.ornl.gov>
2084         * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment
2085         setting.
2087 Wed Jul  2 11:05:09 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2089         * src/printf.c (STRTOX): Convert function header in macro definition
2090         to K&R-style.  Otherwise, ansi2knr would fail to convert the function
2091         definitions to K&R for old style compilers.  From Kaveh Ghazi.
2093 Tue Jul  1 06:28:00 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2095         * lib/putenv.c [putenv]: Undefine before including system headers.
2096         Otherwise, the declaration of *rpl_putenv* conflicts with the system
2097         prototype on at least Irix5.3.  From Marcus Daniels.
2099 Sun Jun 29 07:18:25 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2101         * lib/putenv.c (rpl_putenv): Renamed from putenv.
2102         [putenv]: Remove definition and subsequent #undef hack that avoided
2103         conflicts with system prototypes.  That didn't let the definition of
2104         putenv to rpl_putenv from config.h get through.
2105         Suggestion from Marcus Daniels.
2107         * configure.in (LIB_CRYPT): AC_SUBST new variable.  Use it to add
2108         crypt-related library (-lufc or -lcrypt) only for the program that
2109         needs it (su), rather than to all executables.
2110         * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'.
2111         Suggestion from Ulrich Drepper.
2113         * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG
2114         so tests get english strings.  From Ulrich Drepper.
2116 Mon Jun 16 11:06:57 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2118         * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro.
2119         * configure.in (jm_FUNC_PUTENV): Use it.
2120         * acconfig.h (putenv): Add #undef.
2121         * lib/Makefile.am (EXTRA_DIST): Add putenv.c.
2122         (libsu_a_SOURCES): Remove putenv.c.
2123         * m4/Makefile.am (EXTRA_DIST): Add putenv.m4.
2125 Thu Jun 12 06:48:23 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2127         * src/expr.c (eval6): Accept new unary operator, quote.
2128         From Karl Heuer.
2130 Wed Jun 11 15:13:56 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2132         * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than
2133         searching for `\(' to determine whether to return 0 or the empty
2134         string.  Before it would improperly return '' if the pattern
2135         contained a substring like this: `\\('.  From Karl Heuer.
2136         For example, running expr c : '\\(' should print `0'.
2138 Sun Jun  1 12:00:10 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2140         * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units.
2141         Patch from Richard Sharman <rsharman@magmacom.com>.
2142         * tests/date/Test.pm: Add tests using `next'.
2144 Tue May 27 06:08:06 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2146         * lib/basename.c: Don't include backupfile.h.
2148         * lib/Makefile.am (noinst_HEADERS): Add backupfile.h.
2150         * src/basename.c: Use base_name, not basename.
2151         * src/su.c: Use base_name, not basename.
2153         * configure.in: Don't replace basename.  Now it's always required.
2155         * lib/Makefile.am (libsu_a_SOURCES): Add basename.c.
2157         * lib/getopt.c: Update from glibc via patch-2.2.93.
2158         * lib/getopt1.c: Likewise.
2159         * lib/getopt.h: Likewise.
2160         * lib/basename.c: Likewise.
2162 Sat May 24 13:26:04 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2164         * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are
2165         distributed.  This seems to be necessary for automake-1.1p.
2167 Thu May  1 00:10:11 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2169         * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c
2170         spline.c test.c uname.c: Indent cpp-directives.
2172         * src/system.h (N_): Define.
2174 Sun Apr 27 18:30:53 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2176         * src/printf.c: (cfcc_msg): File-scope constant.
2177         (STRTOX): Use new constant as error message format string in macro.
2178         Suggestion from Andreas Schwab.
2179         (STRTOX): Don't fail because of extra character(s) following a
2180         character constant.  Give the *warning* only if !POSIXLY_CORRECT.
2182 Sun Apr  6 14:29:14 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2184         * src/printf.c: Reorder functions to obviate forward decls.
2185         Change most char* dcls to const char*.
2186         (STRTOX): New macro to eliminate code duplication.
2187         (xstrtod, xstrtol, xstrtoul): Remove functions.
2188         Use the STRTOX instead.
2190         * src/printf.c: (STRTOX): Interpret arguments like 'a and "a
2191         as POSIX requires.  Derived from a patch by Dennis Henriksen.
2193 Sun Mar 23 15:20:17 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2195         * configure.in (ALL_LINGUAS): Add polish (pl).
2197 Sat Mar 22 00:03:02 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2199         * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l.
2200         (aclocal.m4): Use aclocal's new -I option.
2202         * missing: New file -- from the automake-1.1m distribution.
2204 Thu Mar 20 21:10:44 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2206         * m4/ccstdc.m4: Remove file.
2207         * m4/init.m4: Likewise.
2208         * m4/sanity.m: Likewise.
2209         * m4/protos.m: Likewise.
2210         * m4/dmalloc.m4: Likewise.
2211         * m4/error.m4: Likewise.
2212         * m4/header.m4: Likewise.
2213         * m4/install.m4: Likewise.
2214         * m4/lispdir.m4: Likewise.
2215         * m4/maintainer.m4: Likewise.
2216         * m4/obstack.m4: Likewise.
2217         * m4/ptrdiff.m4: Likewise.
2218         * m4/regex.m4: Likewise.
2219         * m4/strtod.m4: Likewise.
2220         * m4/termios.m4: Likewise.
2221         * m4/winsz.m4: Likewise.
2223 Tue Mar 18 06:46:54 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2225         * src/su.c: Indent cpp-directives to reflect nesting.
2226         Change a few #ifdef to #if.
2227         Remove 3 spurious #ifdef that were guarding an #undef each.
2229         * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid
2230         shadowing global.
2231         (print_numbers): Likewise.
2233         * src/who-users.c (idle_string): Rename local, IDLE, to avoid
2234         shadowing global.
2236         * src/su.c (log_su): Resort to getpwuid if getlogin fails.
2237         If no tty name is found, use `none' in the log message.
2238         Based on a patch from Galen Hazelwood.
2240 Thu Mar 13 21:27:36 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2242         * lib/mktime.c: (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
2244 Wed Feb 19 23:06:46 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2246         * src/factor.c (factor): Rewrite inner loop to be more efficient.
2247         Patch from Torbjorn Granlund.
2249 Tue Feb 18 21:18:04 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2251         * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug
2252         fixed on 1996-03-05.
2253         Remove misleading `-' from leap-1 test.
2255         * tests/Makefile.am (SUBDIRS): Add factor.
2256         * tests/factor: New directory.
2257         * configure.in (AC_OUTPUT): Add tests/factor/Makefile.
2259 Tue Feb  4 22:03:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2261         * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
2262         Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
2263         * configure.in (AC_CHECK_HEADERS): Add termios.h.
2265 Fri Jan 31 21:13:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2267         * src/*.c (usage): Bracket bug-reporting address with <> and append
2268         a period.
2269         * src/*.sh: Likewise.
2271         * src/*.c: Compare getopt_long return value against -1, not EOF.
2272         Use NULL, not `(int *) 0' as last parameter in getopt_long call.
2274 Mon Jan 27 21:43:50 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2276         * src/chroot.c (usage): Remove one space in message to make
2277         colons line up.
2279 Sun Jan 26 12:51:05 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2281         * Version 1.16.
2283         * src/who-users.c (usage): Fix typo (--writeable -> --writable)
2284         in help output.  From Galen Hazelwood.
2286 Sat Jan 25 21:01:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2288         * src/factor.c (print_factors): Reflect changes to xstrtoul interface.
2290         * tests/date/mk-script.pl: Generated script now reflects
2291         specification (in Test.pm) of default and per-test environment
2292         settings.
2294 Fri Jan 24 23:36:00 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2296         * lib/long-options.c (parse_long_options): Reset optind to zero
2297         before just returning so that getopt internals get initialized from
2298         the probably-new parameters when/if getopt is called later.
2299         This solves the problem (reintroduced with 1.15) where `stty -tabs'
2300         would not work as advertised but instead act like `stty -a'.
2301         Reported by Arne Juul.
2302         Suggested fix from Ulrich Drepper.
2304 Wed Jan 22 20:12:31 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2306         * lib/getopt.c: Update from GNU C library.
2307         * lib/getopt1.c: Update from GNU C library.
2308         * lib/getopt.h: Update from GNU C library.
2310         * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in.
2311         (SUBDIRS): Set to `date'.
2313         * configure.in: Check for perl.
2314         (AC_OUTPUT): Add tests/date/Makefile.
2315         * tests/date: New directory.
2317         * m4/getgroups.m4: Move the code from configure.in into
2318         this macro that resorts to looking for getgroups in -lbsd.
2319         Set new shell variable, GETGROUPS_LIB (that callers should check),
2320         if it is found there.
2321         * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
2322         (AC_CHECK_FUNCS): Remove getgroups.
2323         Remove code that resorts to looking for getgroups in -lbsd.
2325         * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values
2326         for the TZ environment variable.  Andre Novaes Cunha provided the
2327         hairy TZ setting that exercized the Solaris tzset bug.
2329 1997-01-22  Paul Eggert  <eggert@twinsun.com>
2331         * lib/strftime.c (_strftime_copytm):
2332         New function, to work around Solaris 2.5 tzset bug.
2334         * m4/mktime.m4: (AM_FUNC_MKTIME): Fix bug in mktime test -- don't
2335         test now, test a couple of thousand times.
2337         * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is
2338         specified by Posix.1.
2340 Sat Jan 18 09:32:26 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2342         * lib/getdate.y (get_date): Change prototype to reflect const'ness
2343         of parameters.
2344         Indent cpp-directives to reflect nesting.
2345         Indent with GNU indent.
2347         * lib/getdate.h: New file.
2348         * src/date.c: Include getdate.h.
2349         (<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
2350         (get_date): Don't declare.  getdate.h does it.
2352         * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
2354         1997-01-06  Paul Eggert  <eggert@twinsun.com>
2356         * getdate.y: Rewrite to use mktime.
2358         <sys/timeb.h>: Don't include.
2359         (mktime): Declare.
2361         (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
2362         ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
2363         (ToHour): New function (part of the old ToSeconds fn).
2364         (ToYear): New function (part of the old Convert fn).
2366         (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
2367         yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
2368         Number): Now int instead of time_t.
2369         (HOUR): Don't cast to time_t.
2371         (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
2372         (UnitsTable): Use new units that are closer to the keywords.
2374         (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
2375         (rel, relunit, get_date): Add support for them.
2377         (time): Fix timezone calculations for negative half-hour offsets
2378         when integer division truncates towards minus infinity.
2380         (zone): Incorporiate DST calculation directly.
2382         (get_date): 2nd arg is now time_t *, not struct timeb *.
2383         Use mktime to do most of the work, instead of computing it ourselves.
2384         Guard against falsely reporting errors near the time_t boundaries
2385         when parsing times in other time zones.
2387 Thu Jan 16 20:58:40 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2389         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
2390         * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here.
2392 Tue Jan 14 22:45:36 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2394         * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic.
2395         Alphabetize functions.
2397         * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's
2398         pstat_getdynamic function so we don't need any special privileges
2399         to determine load averages.  Patch from Kaveh Ghazi, based on a
2400         sample implementation from Richard J. Rauenzahn.
2401         Indent cpp-directives to reflect nesting.
2403 Wed Jan  8 16:38:24 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2405         * Version 1.15.
2407         * lib/getopt.c (_getopt_internal): Use `_', rather than the
2408         (sometimes-)expansion `gettext'.
2410 Tue Jan  7 22:10:51 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2412         * src/nice.c (main): Work around failures induced by new version of
2413         getopt.c by not modifying optind before the first getopt_long call
2414         in main.  With suggestions from Ulrich Drepper.
2416         * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
2417         [_]: Define to gettext also if ENABLE_NLS is defined.
2418         This is temporary.
2420 Fri Jan  3 21:08:29 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2422         * acconfig.h (getgroups): Add #undef.
2423         From Marcus Daniels.
2425 Fri Dec 27 17:25:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2427         * src/who-users.c [!WTMP_FILE]: Provide default path.
2428         (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
2429         Patch from Kaveh R. Ghazi.
2430         Indent cpp directives.
2432         * m4/getgroups.m4: Rewrite the test so that systems lacking
2433         getgroups don't try to use the supplied replacement function --
2434         that depends on the existence of such a function.
2436         * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
2438         * configure.in (jm_FUNC_GETGROUPS): Use it.
2439         Reported by Marcus Daniels.
2440         AC_REQUIRE version 2.12 of autoconf.
2442 Sun Dec 22 23:31:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2444         * configure.in: Increment version to 1.14a.
2446         * m4/Makefile.am (EXTRA_DIST): Add README.
2448 Fri Dec 20 19:28:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2450         * src/who-users.c (usage): Say that UTMP_FILE is the default FILE
2451         rather than hard-coding /etc/utmp.  Replace hard-coded /etc/wtmp
2452         with WTMP_FILE.  Suggestion from Eivind.
2454         * src/seq.c (usage): Tweak --help text.
2456         * configure.in (AC_OUTPUT): Add m4/Makefile.
2458         * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
2460         * Makefile.am (SUBDIRS): Add m4.
2461         (aclocal-files): Add rules that rely on (GNU) make's include
2462         directive that computes dependencies for aclocal.m4.
2463         (aclocal.m4): Override automake-generated rule.
2465         * m4/Makefile.am: New file.
2467         * lib/strftime.c: Update from GNU libc.
2469         * m4/getline.m4: New file, extracted from acinclude.m4.
2470         * m4/getloadavg.m4: Likewise.
2471         * m4/jm-mktime.m4: Likewise.
2472         * m4/jm-winsz1.m4: Likewise.
2473         * m4/jm-winsz2.m4: Likewise.
2474         * m4/memcmp.m4: Likewise.
2475         * m4/strftime.m4: Likewise.
2476         * m4/uptime.m4: Likewise.
2478         * m4/ccstdc.m4: Copied from automake-1.1l.
2479         * m4/dmalloc.m4: Likewise.
2480         * m4/error.m4: Likewise.
2481         * m4/gettext.m4: Likewise.
2482         * m4/header.m4: Likewise.
2483         * m4/init.m4: Likewise.
2484         * m4/install.m4: Likewise.
2485         * m4/lcmessage.m4: Likewise.
2486         * m4/lispdir.m4: Likewise.
2487         * m4/maintainer.m4: Likewise.
2488         * m4/mktime.m4: Likewise.
2489         * m4/obstack.m4: Likewise.
2490         * m4/progtest.m4: Likewise.
2491         * m4/protos.m4: Likewise.
2492         * m4/ptrdiff.m4: Likewise.
2493         * m4/regex.m4: Likewise.
2494         * m4/sanity.m4: Likewise.
2495         * m4/strtod.m4: Likewise.
2496         * m4/termios.m4: Likewise.
2497         * m4/winsz.m4: Likewise.
2499         * m4/getgroups.m4: New file.
2500         (jm_FUNC_GETGROUPS): New macro
2501         * lib/getgroups.c: New file.
2503         * m4: New directory.
2505 Wed Dec 18 07:47:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2507         * configure.in (AC_CHECK_HEADERS): Add paths.h.
2508         * src/su.c [HAVE_PATHS_H]: Include <paths.h>.
2509         [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
2510         [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
2511         From Rik Faith.
2513         * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings
2514         outside the quoted test program.  Quote the test program with <<, >>.
2515         Reported by Andreas Schwab.
2516         (AM_FUNC_GETLOADAVG): Likewise.
2517         (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier
2519 Tue Dec 17 18:54:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2521         * src/Makefile.am (install-exec-local): Properly redirect stdout
2522         and stderr to /dev/null.  From Eric Backus.
2524         * lib/strftime.c: Update from GNU libc.
2526         * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than
2527         now-obsolete AC_C_CROSS.
2528         (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one
2529         since there's nothing GNU-specific about the replacement.  Contrast
2530         with gnu_ prefix added to strftime.
2531         (jm_FUNC_MEMCMP): New macro.
2532         * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP.
2533         * acconfig.h: Add memcmp.
2535 Sun Dec 15 18:37:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2537         * configure.in (check for 3-argument setpriority function): Complete
2538         partial change made on Dec 12.  From Arne Juul.
2540 Sat Dec 14 14:51:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2542         * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
2543         name for cross compiling.
2544         Remove definitions of gettext-related macros.  The gettext
2545         installation procedure installs corresponding .m4 files so that
2546         aclocal will use them.
2548 Thu Dec 12 06:07:30 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2550         * Version 1.14.
2552         * src/system.h (ISDIGIT): Replace with smaller, faster edition
2553         that yields nonzero only on ASCII digits.
2554         (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
2555         used to have.  From Paul Eggert.
2557         * configure.in: Bump version to 1.14.
2559         * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII.
2560         (ISDIGIT): New definition from Paul Eggert.
2561         This one evaluates its argument exactly once.
2562         (yylex): Move increment out of ISALPHA argument.  Use a
2563         comma-expression instead.
2565         * src/false.sh (usage): Update bug-reporting address.
2566         * src/groups.sh (usage): Likewise.
2567         * src/nohup.sh (usage): Likewise.
2568         * src/true.sh (usage): Likewise.
2569         Reported by Karl Heuer.
2571         * configure.in (check for 3-argument setpriority function): Add nohup
2572         to list of scripts, not the list of programs.
2573         From Karl Heuer.
2575         * POTFILES.in: Add chroot.c.  Reported by Michel Robitaille.
2577 Wed Dec 11 19:33:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2579         * Version 1.13.
2581 Tue Dec 10 06:36:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2583         * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro.  Derived from the
2584         code in configure.in, except now it punts when cross compiling.
2585         Suggestion from Karl Heuer.
2586         * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded
2587         version.
2589         * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
2590         Reported by Thomas Bushnell.
2592         * configure.in: Bump version to 1.12t.
2594         * Regenerate all Makefile.in using a patched version of automake-1.1l.
2596         * acconfig.h (strftime): Add #undef.
2597         From Karl Heuer.
2599         * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX.
2600         From Karl Heuer.
2602 Mon Dec  9 06:58:11 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2604         * configure.in: Bump version to 1.12s.
2606         * lib/getdate.y (Convert): Don't reject all dates in 2038.
2607         Some fit in 31 bits.
2609         * configure.in (jm_FUNC_GNU_STRFTIME): Use it.
2611         * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro.
2612         (jm_FUNC_GNU_STRFTIME): New macro.
2614         * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c.
2615         (EXTRA_DIST): Add strftime.c.
2617         * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo:
2618         Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to
2619         $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h.
2620         Patch from Kaveh R. Ghazi.
2622         * src/stty.c: Include config.h before testing for
2623         TERMIOS_NEEDS_XOPEN_SOURCE.
2624         Patch from Karl Heuer.
2626         * configure.in (AC_ISC_POSIX): Remove kludgy macro.
2627         Use this test instead:
2628         (LIBS): Add -lcposix if it contains strerror.
2629         Patch from Karl Heuer.
2631         * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to
2632         ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation
2633         problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such
2634         space-separated assignments from right to left.  Patch from Karl Heuer.
2635         (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS.
2636         Patch from Karl Heuer.
2638         * lib/strftime.c [HAVE_TZNAME]: Declare tzname.
2639         Patch from Karl Heuer.
2641         * src/Makefile.am (.sh): Also substitute @bindir@.
2642         Reported by Karl Heuer.
2644 Sun Dec  8 07:22:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2646         =========== Update for automake-1.1k.
2647         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
2648         * configure.in (AM_CONFIG_HEADER): Use it.
2649         (AC_OUTPUT): Remove stamp-h timestamping statement.
2650         Now, AM_CONFIG_HEADER does it automatically.
2651         * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
2652         new automake requirement.
2653         Rename su_* variables to libsu_a_*.
2655 Sun Dec  8 00:08:44 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2657         * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
2659 Sat Dec  7 12:52:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2661         * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
2662         From Michel Robitaille.
2664         * configure.in (ALL_LINGUAS): Add Portuguese (pt).
2666         * lib/getloadavg.c [__SVR4]: Define SVR4.
2667         Remove duplicate `|| defined(SVR4)' disjunct guarding the
2668         #define KERNEL_FILE "/unix" definiton.
2670         * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
2671         of the AM_ prefixed macro.
2672         (check for TIOCGWINSZ in sys/pty): In essence, require
2673         jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
2674         $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
2675         $gwinsz_in_termios_h) is defined.
2677         * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
2678         Correction from Paul Eggert.
2680 Fri Dec  6 20:52:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2682         * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
2683         AM_FUNC_MKTIME, simply AC_REQUIRE it.
2685 Mon Dec  2 20:59:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2687         * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
2688         define WINSIZE_IN_PTEM to precede test that checks whether
2689         `TIOCGWINSZ in sys/pty.h'.  The latter test uses the symbol.
2690         (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
2692 Sun Dec  1 13:07:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2694         * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
2695         if L >= 1000, otherwise as MM/DD/YY.  With this change,
2696         date --date=DATE accepts dates like those in an RCS log listing.
2698 Sat Nov 30 22:08:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2700         * lib/strftime.c: Update from GNU libc.
2702 Fri Nov 29 22:16:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2704         * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
2705         --processor (-p).  Print processor type.
2706         (usage): Document it.
2708 Thu Nov 28 00:28:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2710         * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
2711         for gettext-0.10.25.
2712         (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
2714 Sun Nov 24 11:02:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2716         * src/system.h [!defined STDIN_FILENO]: Define it.
2717         [!defined STDOUT_FILENO]: Define it.
2718         [!defined STDERR_FILENO]: Define it.
2720         * src/stty.c (get_win_size): Take a FILENO parameter rather than
2721         trying to get a size from both stdin and stdout.
2722         Update callers.
2723         Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
2725         ========== From Karl Heuer =========
2726         * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
2727         i386-pc-isc3.0, needs that in order to cause all of the useful
2728         termios symbols to be defined, instead of just those that are
2729         required by POSIX.  This enables all of: iuclc ixany olcuc ocrnl
2730         onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
2732         [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
2734         [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
2735         termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
2736         POSIX requires that symbol).  Define VSWTCH as a synonym if needed,
2737         so that either one can be used on input.
2738         (display_changed): If the slot for swtch is the same as the one for
2739         susp, display only the setting for susp.
2740         (display_all): Likewise.
2742         (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
2743         On such systems, it's confusing to print both pairs.  So, skip eof and
2744         eol when icanon is unset, and skip min and time when icanon is set.
2745         (display_all): Likewise.
2747         (set_window_size): Check only stdin (the device being queried) for
2748         window size info.  You don't want "stty </dev/foo" to report the size
2749         of your current window when /dev/foo has no size info.
2750         (display_window_size): Likewise.
2752         (screen_columns): Check only stdout for window size info.  You want
2753         "stty </dev/foo" to wrap columns at the right margin of your current
2754         window, not the /dev/foo width.
2756         * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
2757         (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
2759         * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
2760         (whether TIOCGWINSZ is defined in sys/pty.h): New test.
2762 Sat Nov 23 16:15:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2764         * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
2765         isn't mentioned in AC_REPLACE_FUNCS.
2767         * env.c (usage): Alphabetize option descriptions the way sort -f would.
2768         * test.c (usage): Likewise.
2769         * who-users.c (usage): Likewise.
2770         From Karl Berry.
2772 Fri Nov 22 20:33:26 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2774         * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
2775         way.  AM_FUNC_GETLINE does it now.
2777         * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
2778         * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
2779         From Karl Heuer.
2781         * src/printf.c (main): Warn if excess arguments are ignored.
2782         E.g., printf foo bar now warns that it is ignoring the single
2783         non-format argument, bar.
2785 Wed Nov 20 20:37:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2787         * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
2788         gethostname.  Reported by Fletcher Mattox.
2790 Tue Nov 19 23:01:01 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2792         * configure.in (AM_SANITY_CHECK_CC): Remove it.  Autoconf-2.11
2793         has this built-in.
2794         (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
2795         automake-1.1g couldn't deal with the _SCRIPTS suffix.
2796         * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
2798 Sun Nov 17 20:49:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2800         * src/id.c (main): Ignore -a, for compatibility with SVR4.
2801         Suggestion from Noah Friedman.
2803 Mon Nov  4 20:24:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2805         * configure.in (test for group_member): Handle it separately
2806         so I can keep the hyphen (not the underscore) in the filename.
2808         Thu Oct 31 19:32:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
2810           * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
2811           returns an error other than buffer overflow, exit with an error
2812           message instead of allocating infinite amounts of space.
2813           [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
2814           <errno.h>: New include.
2815           [!errno] (errno): New declaration.
2817         * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
2819         * configure.in: Check for -linet library before checking for the
2820         gethostbyname function.  Suggested by Karl Heuer.
2821         Use AM_FUNC_GETLINE.
2823         * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
2824         Based on a test from Karl Heuer.
2826 Sun Nov  3 14:57:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2828         * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
2829         am_cv_saved_LIBS from LIBS.  From Karl Heuer.
2831         * src/stty.c (recover_mode): Fail also if there are too many fields.
2832         From Karl Heuer.
2834         * lib/canon-host.c: Include sys/types.h for the definitions
2835         (otherwise missing on some systems) of caddr_t (used by
2836         sys/socket.h) and ushort (used by netinet/in.h).  From Karl Heuer.
2838 Sat Nov  2 00:16:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2840         * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
2841         Otherwise, the generated info files have names longer than
2842         the 14-byte max of some old systems.
2843         Reported by Karl Heuer.
2845         * src/date.c (main): Give better diagnostic.
2846         Suggestion from Karl Berry.
2848 Thu Oct 31 18:28:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2850         * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
2851         * lib/getdate.y: Remap yacc globals to have gd_ prefix.
2852         Suggestion to do as in gdb/c-exp.y from Tom Tromey.
2854 Mon Oct 28 17:40:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2856         * src/Makefile.am (install-exec-local): Redirect stderr of chown to
2857         /dev/null and suggest running `make install-root' upon failure to
2858         install su.  Suggestions from François Pinard.
2860         * configure.in: Don't output confusing diagnostic: `checking for
2861         shadow password routines'.  Suggestion from François Pinard.
2863 Thu Oct 24 13:50:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2865         * src/tee.c (main): Ignore SIGPIPE.
2867 Wed Oct 23 23:42:43 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2869         * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
2870         with #if PROTOTYPES rather than with #ifdef __STDC__.  The latter
2871         loses with Dynix/PTX.
2872         (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
2873         Suggestion from Marcus Daniels.
2875 Mon Oct 21 16:49:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2877         * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
2878         defines or includes -- Linux systems simply read /proc/loadavg.
2879         From Ulrich Drepper.
2881         * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
2883         * configure.in: Remove hack that created link from group_member.c
2884         to group-member.c.
2886         * lib/group_member.c: New file.  Renamed from group-member.c.
2887         * lib/group-member.c: Delete.
2889         * src/stty.c (main): Remove TAB from diagnostic, for consistency.
2891 Sun Oct 20 09:03:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2893         * Makefile.am (install-root): Add it here, too.
2895         * lib/Makefile.am (INCLUDES): Add -I../intl.  Reported by Eric Backus.
2897         * src/Makefile.am (install-root): New rule.
2898         Suggestion from François Pinard.
2900         * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
2901         directly.  From Ulrich Drepper.
2903         * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
2904         (EXTRA_DIST): Remove @README_ALPHA@.
2906         * configure.in: Remove README_ALPHA related code.  Automake takes
2907         care of it automatically now when in gnits mode.
2909         * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
2910         #include $srcdir/lib/getloadavg.c.  The latter isn't defined at that
2911         point in configure script.  From Eric Backus.
2913 Fri Oct 18 21:31:58 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2915         * Makefile.am (cvs-dist): Uncomment cvs tag command.
2916         (cvs-dist): Use cvs tag's -c option.
2918 Thu Oct 17 23:48:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2920         * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
2921         using YP.  From Arne Juul.
2923 Sun Oct 13 07:34:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2925         * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
2926         * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
2927         (by saving and restoring initial value).  Instead, arrange for
2928         substitution of @GETLOADAVG_LIBS@.
2929         * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
2930         not @UPTIME_LIBS@.
2932         * configure.in (ALL_LINGUAS): Add swedish (sv).
2934 Fri Oct 11 22:51:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2936         * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
2937         call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
2938         From Kaveh R. Ghazi.
2940         * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
2942         * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
2943         with the following changes:
2944         - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
2945         Reported by Eric Backus.
2946         - Check for Solaris' libkstat.
2947         - Define C_GETLOADAVG if we end up using getloadavg.c.
2948         From Kaveh R. Ghazi.
2949         * acconfig.h (C_GETLOADAVG): Add it.
2950         From Kaveh R. Ghazi.
2952         * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
2953         getloadavg-related libraries only when linking uptime.
2955 Thu Oct 10 23:50:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2957         * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
2958         (su_SOURCES): Put them here instead.
2959         Remove rules for building getdate.c and posixtm.c;  now automake
2960         generates those rules.
2961         * lib/ylwrap: New file.
2962         * lib/interlock: New file.
2964 Wed Oct  9 00:26:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2966         * lib/getloadavg.c [__sun]: Define sun.  Reported by Kaveh Ghazi.
2968         * lib/strftime.c (strftime): Accommodate the broken C compiler
2969         that comes with SunOS -- don't initialize aggregates in decls of
2970         automatic variables.  Reported by Kaveh Ghazi.
2972         * tests/: Renamed checks/ directory.
2973         * Makefile.am (SUBDIRS): Rename checks to tests.
2974         * configure.in (AC_OUTPUT): Rename checks to tests.
2976         * configure.in (/proc/uptime check): Guard the read of /proc/uptime
2977         with an existence test to avoid a messy configure-time warning on
2978         systems that lack that special file. Reported by Kaveh R. Ghazi.
2980         * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
2981         not $LIB.  From Kaveh R. Ghazi.
2983         * checks/nice: Protect echoed args with leading `x' so echo doesn't
2984         interpret leading -n on e.g. SunOS systems.
2986 Mon Oct  7 18:46:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2988         * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
2990         * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
2991         (su_SOURCES): Remove memcmp.c.
2992         Automake automatically includes at least these, now.
2993         From François Pinard.
2995         * lib/Makefile.am (su_SOURCES): Remove getline.c.
2997 Sat Oct  5 11:38:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
2999         * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
3000         it's AC_REPLACE'd and already in EXTRA_DIST.
3002         * configure.in: Use AM_SANITY_CHECK_CC.
3004         * configure.in: Use AM_FUNC_ERROR_AT_LINE.
3005         * lib/Makefile.am (EXTRA_DIST): Put error.c here.
3006         (su_SOURCES): Remove error.c
3007         Suggested by Ulrich Drepper.
3009         * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
3010         * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
3011         in the four installed scripts.
3012         * src/*.sh: Update --version output to conform to the coding standard.
3014         * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
3015         (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
3016         checking... messages don't get nested.
3018         * configure.in (GNU_PACKAGE): New variable.
3019         (PACKAGE_VERSION): Remove it.
3021         * acconfig.h (GNU_PACKAGE): New variable.
3022         (PACKAGE_VERSION): Remove now-unused variable.
3024         * src/*.c: Update --version output to conform to the coding standard.
3026 Sun Sep 22 22:41:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3028         * configure.in (AC_CHECK_HEADERS): Alphabetize.
3029         Update for automake-1.1e.
3031 Thu Sep 19 07:47:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3033         * lib/regex.c: Merge with FSF version.
3034         * lib/getloadavg.c: Replace with FSF version.
3036 Mon Sep 16 23:13:04 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3038         * lib/strftime.c (strftime): New version, from GNU libc.
3040 Sun Sep 15 23:08:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3042         * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
3044 Mon Sep  9 22:10:45 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3046         * configure.in: Improve handling of math library so -lm is used
3047         only when it's actually required.  That makes a difference when
3048         using dynamic linking.
3049         Remove check that added -lm to LIBS.
3050         (SQRT_LIBM): Test for and AC_SUBST it.
3051         (POW_LIBM): Likewise.
3052         (SEQ_LIBM): Likewise.
3053         Motivation and suggestions from Ulrich Drepper.
3055         * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
3056         Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
3057         Also set corresponding _DEPENDENCIES variables.
3059 Sat Sep  7 12:41:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3061         * src/system.h: Add comments justifying IS* versions of ctype.h macros.
3063         * lib/getdate.y: Define and use upper case variants of ctype.h
3064         is* macros.  From Bruno Haible.
3066 Thu Sep  5 22:12:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3068         * lib/strftime.c: New version from glibc.
3070 Wed Sep  4 23:39:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3072         * configure.in (ALL_LINGUAS): Add dutch (nl).
3074 Mon Sep  2 10:52:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3076         * src/*.c (usage): Tell where to report bugs.
3078 Sun Sep  1 07:56:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3080         * configure.in (AM_FUNC_MKTIME): Use it.
3081         (AC_REPLACE_FUNCS): Remove mktime.
3082         (AM_INIT_AUTOMAKE): Use it.
3083         (AM_PROG_INSTALL): Remove.  AM_INIT_AUTOMAKE does this.
3084         (AC_PROG_MAKE_SET): Likewise.
3085         (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
3086         AM_ prefix for latest automake/aclocal.
3088         * Makefile.am (EXTRA_DIST): Add acinclude.m4.
3090         * acinclude.m4: New file -- derived from aclocal.m4.
3091         * aclocal.m4: This file is now generated by the aclocal program
3092         (which comes with the automake package.)
3094 Sat Aug 17 00:14:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3096         * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
3097         formats and reverts to old behavior where unrecognized format like
3098         %E is treated as eqivalent to `E'.
3100 Sun Aug  4 09:14:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3102         * checks/: New directory.
3103         * checks/Makefile.am: New file.
3104         * checks/nice: New file.  Derived from tests from Eric Backus.
3105         * configure.in (AC_OUTPUT): Add new directory: checks.
3106         * Makefile.am (SUBDIRS): Likewise.
3108         * src/nice.c (main): Allow `+' in options like -+8 and -+13.
3110 Fri Aug  2 21:45:06 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3112         * src/nice.c (main): Set minus_flag to zero in two places.
3113         Otherwise, `nice --1 -3' would mistakenly do the equivalent of
3114         `nice --3'.  Thanks to Eric Backus <ericb@lsid.hp.com> for the
3115         test cases.
3117         * configure.in (check for /proc/uptime): New check.
3118         * acconfig.h (SAVE_PROC_UPTIME): #undef it.  Reorder so symbols
3119         are sorted again.
3120         *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
3121         /proc/uptime.
3122         From Ulrich Drepper.
3124 Thu Aug  1 22:38:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3126         * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
3127         It isn't necessary because the cpp-time checks of getopt.c and
3128         getopt1.c are at least as good.
3129         * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
3130         (su_SOURCES): Add getopt.c and getopt1.c
3131         This reverts much of the April 23 change.
3133 Sat Jul 27 17:22:14 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3135         * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
3136         redefinition warnings on solaris.
3137         (textdomain) [!ENABLE_NLS]: Likewise.
3139 Sun Jul 21 09:47:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3141         * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
3142         Add related check for the getdelim function.
3143         From Ulrich Drepper -- as done in gettext.
3145         * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
3146         From Thomas Olsson <d95to@efd.lth.se>.
3148 Sat Jul 20 17:01:56 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3150         * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
3151         separate PACKAGE and VERSION.
3153 Wed Jul 17 23:13:19 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3155         * src/chroot.c: Include <sys/types.h> before system.h.
3156         * src/seq.c: Likewise.
3157         * src/yes.c: Likewise.
3158         From Arne Juul.
3160 Tue Jul 16 00:06:33 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3162         * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
3163         Omitting that second arg made some HPUX C compiler report an error.
3164         From Kaveh R. Ghazi.
3166 Mon Jul 15 23:42:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3168         * src/who-users.c (print_uptime): Reverse `days' and `day' in
3169         uptime message.  From Kaveh R. Ghazi.
3171         * Many files: Update FSF address.
3173 Sun Jul 14 20:05:34 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3175         * src/who-users.c (print_uptime): Use 0, not undefined errno in
3176         couldn't-get-boot-time diagnostic.  From Ulrich Drepper.
3178 Sat Jul 13 14:22:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3180         * src/chroot.c (usage): Add a `\' after `\n' in usage message.
3181         Otherwise, SunOS's /bin/cc chokes.
3183         * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
3184         GWINSZ_BROKEN can't be defined anymore.
3186         * configure.in (boot time test): Use AC_EGREP_CPP instead of
3187         AC_EGREP_HEADER; #endif, instead of #fi.
3188         (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
3189         these macros instead of the tests from which they were derived.
3190         ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
3192 Wed Jul 10 22:57:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3194         * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
3195         so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
3196         those options on that system, sys/stat.h gets compile errors.
3197         With help from Marcus Daniels.
3199         * getopt.c: Update from gettext-0.10.23.
3200         * getopt1.c: Likewise.
3201         * getopt.h: Likewise.
3203 Sun Jul  7 22:40:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3205         * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
3206         in configure.in.
3207         (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3209 Sat Jul  6 12:47:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3211         * configure.in (AC_REPLACE_FUNCS): Add group_member.
3212         (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
3213         * lib/Makefile.am (su_SOURCES): Remove group-member.c.
3214         (EXTRA_DIST): Add group-member.c here.
3216 Thu Jul  4 22:40:06 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3218         * src/expr.c (docolon): Remove space before newline in usage message.
3220 Sat Jun 29 18:58:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3222         * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
3223         it in the output of --version.  Reported by RMS.
3225 Tue Jun 18 22:14:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3227         * aclocal.m4: Update from gettext-0.10.20.
3228         * ABOUT-NLS: Likewise.
3229         * intl/*: Likewise.
3231 Sun Jun 16 13:44:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3233         * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
3235 Thu Jun  6 21:57:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3237         * po/Makefile.in.in: Update from gettext-0.10.16.
3238         * intl/*: Likewise.
3239         * ABOUT-NLS: Likewise.
3240         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
3241         gettext-related ones.
3242         Update from gettext-0.10.16.
3244 Wed May 29 21:28:53 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3246         * expr.c (docolon): Give a warning when the first character
3247         of the basic regular expression is `^'.
3249 Mon May 20 22:56:06 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3251         * id.c (xgetgroups): New function, factored out of
3252         print_group_list and print_full_info.
3253         (print_group_list): Call it.
3254         (print_full_info): Call it.
3256         * lib/Makefile.am (getdate.c): Disable dependencies that can
3257         require rerunning YACC when not in maintainer mode.
3258         (posixtm.c): Likewise.
3260 Tue May 14 18:47:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3262         * id.c (print_group_list): When USERNAME is specified use
3263         getugroups to get the number of groups.
3264         (print_full_info): Likewise.
3266 Sun May 19 21:45:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3268         * seq.c (usage): Make it clearer.
3270 Sat May 18 13:29:46 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3272         * expr.c (main): Don't recognize --help, --h, --he, --version,
3273         --v, etc. if the POSIXLY_CORRECT environment variable is set.
3274         * echo.c (main): Likewise.
3275         * printf.c (main): Likewise.
3276         * test.c (main): Likewise.
3278         * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
3280 Tue May  7 22:10:20 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3282         * configure.in: Require autoconf-2.10.
3284         * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
3285         * configure.in (jm_MAINTAINER_MODE): Use it.
3287 Mon May  6 22:40:54 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3289         * lib/strftime.c: Update from GNU libc.
3291 Sat May  4 20:54:32 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3293         * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
3294         * seq.c: Remove useless void casts of *printf return values.
3296 Mon Apr 29 22:23:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3298         * basename.c (usage): Mark translatable strings.
3299         * chroot.c (main): Likewise.
3300         * basename.c (main): Separate messages about `too few' and `too many'
3301         arguments to ease translation.
3302         * dirname.c (main): Likewise.
3303         * date.c (usage): Change TAB in message to spaces.  Doing that seems
3304         to have worked around a problem with something in gettext that was
3305         producing a truncated usage message for date's usage.
3306         From François Pinard.
3308 Sun Apr 28 17:10:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3310         * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
3311         Otherwise, some systems lose because the value AC_C_INLINE choses
3312         with plain `cc' is different from that chosen when using the ANSI-mode
3313         C compiler.  From Kaveh Ghazi.
3315 Tue Apr 23 22:05:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3317         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
3318         * configure.in: Use it.
3319         * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
3320         (EXTRA_DIST): Add getopt.c and getopt1.c
3322         * whoami.c (main): Declare to return int, not void.
3323         * who-users.c (main): Likewise.
3324         * yes.c (main): Likewise.
3326         * src/*.c, src/*.h: Update Copyright years to include 1996.
3328 Sun Apr 21 08:04:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3330         * date.c (usage): Describe new %V format.  From Karl Berry.
3332         * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
3334 Sat Apr 20 22:22:01 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3336         * chroot.c (usage): Improve help message.
3337         Enclose message strings in _().
3338         * seq.c (usage): Improve help message.
3339         * factor.c (usage): Likewise.
3340         From Karl Berry.
3342 Fri Apr 19 23:48:53 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3344         * Makefile.am (cvs-dist): New rule.  Based on the one from
3345         Tom Tromey's automake.
3347 Thu Apr 18 23:16:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3349         * basename.c (basename): Rewrite so it doesn't rely on strrchr,
3350         and hence doesn't need to include string.h -- on some alpha-based
3351         OSF systems, there's a conflicting prototype for basename in string.h.
3352         Reported by Kaveh Ghazi.
3354         * configure.in (AC_REPLACE_FUNCS): Add basename.
3355         * lib/Makefile.am (EXTRA_DIST): Add basename.c.
3356         (su_SOURCES): Remove basename.c.
3357         From Kaveh Ghazi.
3359 Tue Apr 16 20:24:44 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3361         * src/Makefile.am (who.c): Qualify who-users.c reference with
3362         $(srcdir)/ prefix.
3363         (users.c): Likewise.
3364         (uptime.c): Likewise.
3365         From François Pinard.
3367         * configure.in: Always invoke AC_GETLOADAVG, not just if we're
3368         building uptime.
3370 Sat Apr 13 13:24:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3372         * getloadavg.c: Test cpp-defined __sun as well as sun, because
3373         in strict ANSI mode, only __sun is defined.  From Kaveh Ghazi.
3375         * date.c (usage): Add missing `\n\' at the end of newly added
3376         lines for %e and %z.
3378         * who-users.c (print_uptime): Call getloadavg only if we have it.
3380 Fri Apr 12 22:03:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3382         * configure.in (LINGUAS): Add de.
3384         * date.c (usage): Describe %e and %z.  Reported by Karl Berry.
3386         * who-users.c: Mark translatable strings in new code.
3388 Wed Apr 10 21:26:30 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3390         * configure.in: Add test for boot_time.
3391         From Kaveh Ghazi.
3393         * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
3395         * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
3396         (BUILT_SOURCES): Add uptime.c.
3397         (MOSTLYCLEANFILES): Add uptime.c.
3398         (uptime.c): Add rule to build it from who-users.c.
3400         * who-users.c: Reindent.
3401         (UT_TIME_MEMBER): New macro.
3402         (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
3403         (print_entry): Likewise.
3405 Tue Apr  9 23:57:19 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3407         * who-users.c (print_uptime) [UPTIME]: New function.  From Kaveh Ghazi.
3409 Sun Apr  7 11:58:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3411         * seq.c (print_numbers): Rearrange loops to get it right.
3412         Reported by Karl Eichwalder <ke@ke.Central.DE>.
3414         * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
3415         is inconsistent with START and LIMIT.
3416         (usage): Clean up help message.
3418         * factor.c (usage): Give minimal description of the program.
3419         (print_factors): Give a better diagnostic.
3420         (main): Suggest --help upon failure.
3421         Reported by Karl Eichwalder <ke@ke.Central.DE>.
3423         * seq.c (print_numbers): Fix off-by-one error in
3424         backwards-counting loop.  Reported by Karl Eichwalder.
3426         * strftime.c (mon_week_ISO): New function to implement new %V format.
3427         (sun_week): Make TM parameter `const'.
3428         (mon_week): Likewise.
3429         (mon_week): Rewrite to implement %W format correctly.
3430         (strftime): Handle %V format.
3431         Reported by Arne Juul.
3433 Fri Apr  5 07:33:00 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3435         * strftime.c (sun_week): Make %U work properly.
3436         Before, `date -d '1 Jan 1995' +%U' output `00'.  Now it prints `01'.
3438         * nice.c (main): Simplify option handling.  Before, `nice -18 -- nice'
3439         improperly printed `8'.  Patch from Frank Korz.
3440         (main): Use `if' stmt, not while loop, around getopt invocation.
3441         Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
3442         follows a long option) gets an error.
3444 Thu Apr  4 20:14:02 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3446         * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
3447         `-Xc -D__EXTENSIONS__' because of problems with Solaris header
3448         files.  Suggested by Kaveh Ghazi.
3450 Wed Apr  3 07:08:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3452         * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
3453         when srcdir != builddir.  From Kaveh Ghazi.
3455         * lib/getugroups.c: Include stdio.h before grp.h.  Because
3456         <grp.h> on alpha OSF1 V2.0 uses "FILE *".  From Kaveh Ghazi.
3458 Sun Mar 31 16:26:06 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3460         * configure.in: Simplify checking for math library.
3461         This also eliminates some confusing output from configure.
3462         Suggested by François Pinard.
3464 Fri Mar 29 22:13:10 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3466         * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
3467         -I../intl.  With the former, compiles didn't find libintl.h when
3468         configured with `--srcdir=..'.  Reported by Marcus Daniels
3469         <marcus@sysc.pdx.edu>.
3471         * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
3472         gets distributed.
3474         * src/Makefile.am (EXTRAdir): Set to $(bindir).
3476 Thu Mar 28 23:01:48 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3478         * ChangeLog.0: New file.
3479         * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
3481 Thu Mar 28 00:06:28 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3483         * man/Makefile.am (man_MANS): Add chroot.1.
3484         * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
3486 Sun Dec 24 10:55:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
3488         * configure.in: Check for chroot a la uname.
3489         * src/chroot.c, man/chroot.1: New files.
3491 Sun Mar 24 11:44:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3493         * su.c: Protoize and reorder functions to obviate forward decls.
3495         * seq.c: Make parameters const where appropriate.
3496         Rename global FROM to START.
3497         (print_numbers): Rewrite loops to avoid incrementing.  Instead,
3498         use `x = first + i * increment' paradigm.  Otherwise, with inexact
3499         increment, you could miss the last value.
3501         * xstrtod.c: New file.
3502         * xstrtod.h: New file.
3503         * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
3504         * seq.c: Include xstrtod.h.
3505         (scan_double_arg): Use xstrtod rather than strtod directly.
3507         * src/*: Update FSF's address.
3509 Thu Mar 21 16:43:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3511         * src/*.c (main): Declare to be of type int, not void.
3513 Sat Mar 16 10:07:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3515         * configure.in (PACKAGE_VERSION): New macro.
3516         (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
3517         * acconfig.h (PACKAGE_VERSION): Add it.
3518         * src/Makefile.am: Remove rules for generating version.c.
3519         Remove references to version.o, version.h, and stamp-v.
3520         [.sh]: Change @VERSION@ to @PKG_VERSION@.
3521         On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
3522         (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
3523         (install-exec-local): New target/rules to make the installed su
3524         binary setuid root or failing that, to delete it.
3525         * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
3526         not @VERSION@.
3527         * version.c: Remove file.
3528         * version.h: Remove file.
3529         * basename.c date.c dirname.c echo.c env.c expr.c factor.c
3530         hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
3531         pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
3532         who-users.c whoami.c yes.c: Don't include version.h.
3533         (main): Use PACKAGE_VERSION instead of version_string.
3535 Fri Mar 15 23:42:29 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3537         * basename.c: Remove __P-protected prototype for basename.
3538         Reported by François Pinard.
3539         (remove_suffix): Move to precede use.  Remove prototype.
3540         Declare formal parameter SUFFIX to be const.
3542         * pathchk.c (validate_path): Cast path_max to size_t before
3543         comparing with strlen(path).
3545         * who-users.c (read_utmp): Declare n_read to be of type size_t
3546         rather than int.
3548 Tue Mar 12 17:52:05 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3550         * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
3551         id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
3552         sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
3553         yes.c (main): Initialize for internationalized message support:
3554         call setlocale, bindtextdomain, and textdomain.
3555         * system.h: Add definitions and includes for NLS.
3556         * Makefile.am (SUBDIRS): Add intl and po.
3557         * src/Makefile.am (datadir): Define.
3558         (localedir): Define.
3559         (DEFS): Add LOCALEDIR definition.
3560         (LDADD): Add @INTLLIBS@.
3561         * aclocal.m4: Add NLS-related macro definitions from
3562         gettext distribution.
3563         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
3564         HAVE_STPCPY): New macros.
3565         Add PACKAGE and VERSION.
3566         * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
3567         (VERSION): Likewise.
3568         (ALL_LINGUAS): Define.
3569         (ud_GNU_GETTEXT): Use it.
3570         Link an nls file.
3571         (AC_OUTPUT): Reflect addition of two new directories, intl and po.
3572         Create po/Makefile.
3573         Mostly from François Pinard.
3575 Wed Mar  6 21:40:34 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3577         * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
3578         declare formal parameter.
3580 Tue Mar  5 22:49:33 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3582         * getdate.y (RelativeMonth): Add 1900 to the year so that relative
3583         date specs that push the year through the end of the century work.
3584         For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
3585         From Peter Dalgaard (pd@kubism.ku.dk).
3587 Mon Mar  4 23:46:43 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3589         * seq.c (main): Exit after processing --version.
3590         Reported by François Pinard.
3592 Fri Mar  1 23:46:32 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3594         * expr.c (docolon): Don't initialize re_syntax_options to
3595         deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
3596         \?, \+, and \|.  Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
3598         * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
3599         (skip) [_WIN32 && _O_BINARY]: Use it.
3600         (read_char): Likewise.
3601         (read_block): Likewise.
3602         [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
3603         Based on changes by Gary Newman <gnewman@shore.net>.
3605 Wed Feb 28 21:48:07 1996  Paul Eggert  <eggert@twinsun.com>
3607         * configure.in (LOCALTIME_CACHE):
3608         Also define if localtime mishandles unsetting TZ.
3609         This works around a localtime bug in mips-dec-ultrix.
3611 Wed Feb 28 23:08:24 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3613         * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
3614         (noinst_HEADERS): Add xstrtoul.h.
3616         * factor.c: General cleanup.  Use xstrtoul, not atoi.
3617         Change output format.  Allow inputs as large as ULONG_MAX.
3618         Allow more than one command line argument.
3620         * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
3621         of the pre-ANSI function definition so ansi2knr doesn't munge it.
3623         * src/Makefile.am: Adapt for automake-0.30.
3624         * lib/Makefile.am: Likewise.
3626         * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
3628 Sun Feb 25 22:19:52 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3630         * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
3631         (MOSTLYCLEANFILES): Add who.c and users.c.
3632         (who.c): New rule to create this file.  Concatenate definition of
3633         WHO and contents of who-users.c.
3634         (users.c): New rule to create this file.  Concatenate definition of
3635         USERS and contents of who-users.c.
3637 Sat Feb 24 12:20:58 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3639         * readtokens.c: Unprotoize.
3641         * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
3642         for function dcls and munge them.
3643         (arithf): Likewise.
3644         (arithdivf): Likewise.
3646         * test.c: __P-protect forward declarations.
3647         (main): Protoize function definition.
3649         * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
3650         not int.
3652         * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
3653         so expr's pattern matching uses BASIC (not GNU-extended) REs.
3654         Reported by Jim Kingdon.
3656         * who-users.c (print_entry): Use strchr, not index.
3658         * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
3659         * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
3660         definition of AF_INET on at least SunOS 4.
3662 Tue Feb 13 23:49:16 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3664         * who-users.c (main): When failing because there were
3665         `too many arguments,' say so.
3667 Mon Feb 12 23:26:05 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3669         * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
3670         and inet_ntoa.
3671         (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
3672         * lib/canon-host.c: New file.
3673         * lib/Makefile.am (su_SOURCES): Add canon-host.c.
3674         * src/who.c (print_entry): If possible, canonicalize the host hame.
3675         From Miles Bader (miles@gnu.ai.mit.edu).
3677         Update for automake-0.29.
3678         * Makefile.am (CONFIG_HEADER): Don't define.  Automake now does it.
3679         * src/Makefile.am: Likewise.
3680         * lib/Makefile.am: Likewise.
3681         * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
3682         * man/Makefile.am (man_MANS): Renamed from MANS.
3684 Wed Jan 31 23:40:50 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3686         * lib/strftime.c (add_num_tz): New function.
3687         (strftime): Handle new %z format.
3688         * date.c (main): Accept new option, --rfc-822 (-R).
3689         (show_date): Use RFC822-mandated strftime format.
3690         From H. Peter Anvin (hpa@storm.net).
3691         (usage): Add a line describing the new option.
3693         * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
3694         before it's defined.
3696 Mon Jan 29 19:24:04 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3698         * acconfig.h (PROTOTYPES): Define it.
3700 Fri Jan 19 22:00:08 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3702         * aclocal.m4 (fp_PROG_INSTALL): New macro.
3703         * configure.in: Use it instead of AC_PROG_INSTALL.
3705         * who-users.c: Protoize.
3707 Wed Jan 17 23:37:59 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3709         * stty.c: Protoize and __P-protect forward dcls.
3710         (visible): Change parameter type to unsigned int from unsigned char.
3711         (integer_arg): Use xstrtol instead of open-coding this.
3713         * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
3714         (HEADERS): Add xstrtol.h.
3716         * test.c (advance): Protoize function.
3718         * sleep.c (argdecode): Declare parameter const.
3720 Sat Jan 13 22:31:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3722         * stty.c: Indent cpp directives.
3724 Sun Jan  7 23:56:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3726         Use automake to generate Makefile.in files.
3727         * Makefile.am: New file.
3728         * doc/Makefile.am: New file.
3729         * lib/Makefile.am: New file.
3730         * man/Makefile.am: New file.
3731         * src/Makefile.am: New file.
3733         * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
3734         used in place of PROGS.
3736 Sat Jan  6 05:13:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
3738         * configure.in (PACKAGE, VERSION): New variables.
3739         (fp_C_PROTOTYPES): Use it.
3741         * printf.c (print_esc_char): Change type of argument from char
3742         to int to avoid potential promotion problem.
3743         * uname.c (print_element): Likewise.
3745         * system.h [__P]: New macro.
3747         * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
3748         hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
3749         printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
3750         whoami.c, yes.c: Protoize and __P-protect forward dcls.
3752         * who-users.c: New file.  Renamed from who.c.
3753         * who.c: Define WHO and include who-users.c.
3754         * uses.c: Define USERS and include who-users.c.
3756         * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
3757         (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
3758         getgroups (0, NULL) to compute number of groups at run time
3759         rather than relying on NGROUPS_MAX at compile time.
3760         (print_full_info) [HAVE_GETGROUPS]: Likewise.
3761         Suggestion from Roland McGrath.
3763         * su.c: Remove NGROUPS_MAX junk.  It wasn't being used.
3765 Wed Jan  3 19:03:26 1996  Paul Eggert  <eggert@twinsun.com>
3767         * configure.in (LOCALTIME_CACHE): Define if tzset exists and
3768         if localtime caches TZ.  Check for tzset.
3769         * acconfig.h (LOCALTIME_CACHE): New macro.
3770         * date.c (putenv): Declare.
3771         (universal_time): Remove.
3772         (main): If -u is given, set TZ to "UTC0"; this causes date to use
3773         UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
3774         (show_date): Just use localtime and a single format, since TZ will
3775         be set properly if -u is given.
3777 Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3779         * configure.in: Touch stamp-h only if config.h is remade.
3781 Sun Nov 26 16:09:33 1995  Jim Meyering  (meyering@comco.com)
3783         * test.c (usage): Clarify usage.  From Karl Berry.
3785 Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)
3787         * Makefile.in (all et. al.): If make was invoked with -k and a
3788         sub-make fails, fail after the loop rather than exiting right away.
3789         Otherwise, make's -k option could be ineffective.
3791 Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)
3793         * Makefile.in (default): New default target.  Depend on `all' to work
3794         around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
3795         <luik@isa.de>.
3797 Tue Nov  7 23:53:20 1995  Jim Meyering  (meyering@comco.com)
3799         * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
3800         From Theodore Ts'o and Ulrich Windl.
3802 Sun Oct 29 08:47:50 1995  Jim Meyering  (meyering@comco.com)
3804         * test.c [TEST_STANDALONE]: Define.
3805         * src/Makefile.in (test.o): Remove special rule.
3807 Sat Oct 28 00:49:13 1995  Jim Meyering  (meyering@comco.com)
3809         * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
3810         * configure.in: Use it.
3812         * lib/Makefile.in (INCLUDE, COMPILE): New variables.
3813         (.c.o): Rewrite to be more like src/Makefile.in.
3814         Add line that (--with-autodeps) will include mkdep-Makefile.
3815         (distclean): Remove .deps.
3816         * src/Makefile.in: Likewise.
3818         * mkdep-Makefile: New file.
3819         * Makefile.in (DISTFILES): Add mkdep-Makefile.
3821         * doc/Makefile.in (mostlyclean): Remove *.info.
3823         * date.c: New option --reference=FILE (-r FILE) analogous to the
3824         like-named touch option.
3825         (main): Recognize it and give diagnostic for misuse.
3826         (usage): Describe briefly.
3827         From Franc,ois Pinard.
3829         * date.c (batch_convert): Close input stream also when it's not stdin.
3830         (main): Reorganize to do option-consistency checks before all else.
3832 Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)
3834         * man/Makefile.in (install-data, uninstall): Use sed not basename.
3835         The GNU Coding Standard suggests that only a select set of
3836         relatively standard utilities be used in Makefiles.  basename is
3837         not among them.  Suggested by Ulrich Drepper.
3839 Tue Aug  8 22:57:34 1995  Jim Meyering  (meyering@comco.com)
3841         * yes.c: Include system.h to get definition of _.
3843 Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)
3845         * system.h (_): Define macro -- as empty for now.
3846         * src/*.c: Annotate localizable strings with _(...).  From Franc,ois.
3848         * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
3849         From Franc,ois.
3851 Fri Jun 23 23:04 1995  Jim Meyering  (meyering@comco.com)
3853         * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
3854         Add checks for floor, modf, and rint -- all used by seq.c.
3856 Mon Jun 12 00:26:54 1995  Jim Meyering  (meyering@comco.com)
3858         * getdate.y (Convert): Use 2037 as threshold, not 1999.
3859         Before years after 1999 were treated as invalid.
3860         From Andreas Schwab.
3862 Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)
3864         * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
3865         Without this, SunOS doesn't get type for memchr.
3866         Reported by Kaveh Ghazi.
3868 Sun May 21 07:20:55 1995  Jim Meyering  (meyering@comco.com)
3870         * Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.
3872         * All Makefile.in (install-exec, install-exec): New targets.
3873         From Karl Berry.
3875         * all Makefile.in (maintainer-clean): Renamed from realclean
3876         per GNU Standards.
3878 Mon May 15 01:00:08 1995  Jim Meyering  (meyering@comco.com)
3880         * all source files (usage): Include one- or two-line synopsis
3881         in --help output.  From Karl Berry.
3883 Sat May 13 08:57:20 1995  Jim Meyering  (meyering@comco.com)
3885         * lib/Makefile.in (maintainer-clean): Rename from realclean.
3886         (.PHONY): New dependencies.
3887         [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
3889 Fri May 12 21:25:50 1995  Jim Meyering  (meyering@comco.com)
3891         * test.c (usage): Remove duplicate descriptions of --help
3892         and --version.  From Karl Berry.
3894         * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
3895         * test.c: Likewise.
3896         * who.c: Likewise.
3898         * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
3899         Remove all reference to (now unused) safe-xstat.hin.
3901 Tue Apr 18 22:57:43 1995  Jim Meyering  (meyering@comco.com)
3903         * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
3904         unnecessary conflicts for people using version control software
3905         like RCS and CVS.
3906         (AC_ARG_PROGRAM): Use it.
3908 Fri Mar 10 21:14:11 1995  Jim Meyering  (meyering@comco.com)
3910         * src/*.c: Update Copyright dates.
3912 Mon Feb 27 08:05:25 1995  Jim Meyering  (meyering@comco.com)
3914         * system.h: Separate errno declaration from STDC_HEADERS.
3915         Remove bcopy, bzero, strchr, strrchr definitions.
3917         * stty.c (main, set_window_size): Use memset instead of bzero.
3918         * su.c (correct_password): Likewise.
3920         * seq.c Remove \n's from error format strings.
3921         (main): Let `seq 1 1' work.
3922         Invoke usage always with 1 when failing.
3924 Sat Feb 11 08:27:12 1995  Jim Meyering  (meyering@comco.com)
3926         * src/Makefile.in (install): Fix rules for su to avoid relying on
3927         just-built `id' executable.  That would lose when cross-compiling and
3928         on systems like GNU in which a user may have several effective IDs.
3929         (SOURCES, OBJECTS, PROGS): Add seq.
3930         * Makefile.in (PROGS): Add seq.
3932         * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
3933         (AC_CHECK_FUNCS): Add strchr and strrchr.
3934         * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
3936         * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
3937         Separate errno declaration from STDC_HEADERS.
3939 Thu Jan 26 23:38:04 1995  Jim Meyering  (meyering@comco.com)
3941         * getdate.y (ToSeconds): Properly convert 12am and 12pm.
3942         From Takeshi Sone <ts1@tsn.or.jp>.
3944         * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
3945         (all): Depend on safe-stat.h and safe-lstat.h.
3947         * date.c (batch_convert): Remove any trailing newline from offending
3948         line before including it in the `invalid date' error from `date -f'.
3949         Reported by Franc,ois Pinard.
3951 Sat Dec 31 09:25:09 1994  Jim Meyering  (meyering@comco.com)
3953         * factor.c: New file.
3954         * Makefile.in (PROGS): Add factor.
3955         * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
3956         (factor): New rule.
3958 Mon Dec 26 18:31:08 1994  Jim Meyering  (meyering@comco.com)
3960         * test.c (term): Running `./test \( a -o b' got a seg fault.
3961         From from Klaus.Reichl@aut.alcatel.at.
3963 Mon Dec 19 22:05:12 1994  Jim Meyering  (meyering@comco.com)
3965         * src/*.c: Include "error.h" rather than simply declaring
3966         `void error ();'.
3967         * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
3969         * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
3970         (distclean): Remove references to safe-l?stat.c.
3971         Remove all related rules and dependencies.
3973         * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
3974         Now that we always define the functions, these are no longer needed.
3976         * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
3977         * who.c (print_entry): Likewise.
3978         * test.c (test_stat, binary_operator): Likewise.
3979         (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
3981 Mon Dec 12 22:42:09 1994  Jim Meyering  (meyering@comco.com)
3983         * expr.c (docolon): Zero out re_buffer and re_regs before using them.
3984         From H.J. Lu <hjl@nynexst.com>.
3986 Sun Dec  4 14:53:12 1994  Jim Meyering  (meyering@comco.com)
3988         * dirname.c (main): Use strchr and strrchr instead of index and rindex.
3989         * echo.c (main): Likewise.
3990         * env.c (main): Likewise.
3991         * pathchk.c (validate_path): Likewise.
3992         * printf.c (print_formatted, print_esc): Likewise.
3993         * test.c [member]: Likewise.
3994         * who.c (extract_trimmed_name): Likewise.
3995         * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
3996         rindex instead of the other way around.
3998         * doc/Makefile.in (DISTFILES): Add getdate.texi.
4000 Sat Dec  3 07:59:55 1994  Jim Meyering  (meyering@comco.com)
4002         * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
4003         (AC_CHECK_HEADERS): Add stdlib.h.
4004         (LIBS): If the strtod replacement is required, check for pow in -lm.
4005         * src/Makefile.in (printf): Remove hard-coded -lm.  Not every
4006         system has it.
4008 Thu Nov 17 23:47:26 1994  Jim Meyering  (meyering@comco.com)
4010         * who.c (list_entries): Delete.  Split in two actually...
4011         (list_entries_users, list_entries_who, userid_compare): New functions.
4012         (list_entries_users): Sort the user names.  Reported by
4013         Michael I Bushnell.
4014         Topologically sort the functions and remove fwd declarations.