9005a62cbfb6e0b7451c474f80818c72a63421ae
[platform/upstream/coreutils.git] / old / sh-utils / ChangeLog
1 2002-08-08  Jim Meyering  <meyering@lucent.com>
2
3         * Version 2.0.15.
4
5 2002-08-05  Paul Eggert  <eggert@twinsun.com>
6
7         Fix some minor time-related bugs with POSIX time arguments.
8         Some valid time stamps were being rejected (notably -1, and
9         time stamps before 1900 on 64-bit hosts).  And some invalid
10         time stamps were being accepted, e.g. September 31.
11
12         * src/date.c (main): Adjust to posixtime signature change.
13
14 2002-08-05  Jim Meyering  <meyering@lucent.com>
15
16         * configure.ac: Change $am_cv_sys_posix_termios to
17         $ac_cv_sys_posix_termios.  From Andreas Schwab.
18
19 2002-08-04  Jim Meyering  <meyering@lucent.com>
20
21         * Version 2.0.14.
22
23 2002-07-30  Paul Eggert  <eggert@twinsun.com>
24
25         * src/chroot.c (main): Exit with status 126 or 127 when execvp or
26         execv fails, for consistency with POSIX commands like env and nice.
27         * src/su.c (run_shell): Likewise.
28
29 2002-07-29  Paul Eggert  <eggert@twinsun.com>
30
31         * src/nohup.sh: Change behavior to conform to POSIX 1003.1-2001:
32           - Do not adjust scheduling priority.
33           - Redirects stderr to stdout, if stderr is not a terminal.
34           - Exit status is now 126 if command was found but not invoked,
35             127 if nohup failed or if command was not found.
36           Fix bug: command was run if nohup.out wasn't writeable.
37         * NEWS, doc/coreutils.texi: Document the above.
38
39 2002-07-28  Jim Meyering  <meyering@lucent.com>
40
41         * configure.ac: Require automake-1.6b.
42
43 2002-07-27  Jim Meyering  <meyering@lucent.com>
44
45         * Version 2.0.13.
46
47         * src/who.c (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions.
48         Now they're defined in readutmp.h.
49         (print_deadprocs): Remove obsolete FIXME comment.
50
51 2002-07-07  Paul Eggert  <eggert@twinsun.com>
52
53         * src/nohup.sh: Port to POSIX 1003.1-2001 "nice", which
54         requires the option "-n 5" rather than "-5".  This matters
55         with GNU "nice" if the user has set the _POSIX2_VERSION
56         environment variable.
57
58 2002-07-24  Jim Meyering  <meyering@lucent.com>
59
60         * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Exempt false.
61
62 2002-07-20  Jim Meyering  <meyering@lucent.com>
63
64         * Upgrade to cvs automake -- required to work with 2.53b.
65         * configure.ac: Require automake-1.6a.
66
67         * tests/Makefile.am (TESTS_ENVIRONMENT): Remove now-unused parts
68         of this definition.
69         (EXTRA_DIST): Add priv-check.
70         * tests/priv-check: New file.
71
72         * Upgrade to gettext-0.11.3.
73         * Upgrade to autoconf-2.53b.
74
75 2002-07-18  Jim Meyering  <meyering@lucent.com>
76
77         * src/uname.c (main): Test sysctl(...) >= 0, not == 0, since
78         on NetBSD the return value may well be positive.
79         Use one-line aggregate initializations.
80         Use tightly scoped static buffers to avoid warnings about
81         unused variables on some systems.
82
83 2002-05-07  Paul Eggert  <eggert@twinsun.com>
84
85         Add support for BSD-style sysctl to get the strings needed for
86         uname -p and uname -i.  Unfortunately the different BSDs vary,
87         but I've surveyed FreeBSD, NetBSD, and OpenBSD.
88
89         * src/uname.c (UNAME_HARDWARE_PLATFORM, UNAME_PROCESSOR): New macros.
90         (main): Use them, along with sysctl, to support uname -i and uname -p
91         on BSD hosts.
92
93 2002-07-17  Jim Meyering  <meyering@lucent.com>
94
95         * src/uptime.c (print_uptime): Restore use of (equivalent, but
96         more readable) `>=' from Bruno's patch.
97
98         * configure.ac (jm_BOOT_TIME): Remove. (moved/renamed to m4/boottime.m4)
99         Use the replacement: GNULIB_BOOT_TIME.
100
101 2002-07-13  Bruno Haible  <bruno@clisp.org>
102
103         * src/uptime.c: Include sys/sysctl.h.
104         (print_uptime): Add support for determining the boot time on FreeBSD.
105
106 2002-07-15  Jim Meyering  <meyering@lucent.com>
107
108         * src/uptime.c (print_uptime): Use STREQ in place of !strcmp.
109
110         * src/uname.c (main): Remove unnecessary uses of `defined' when
111         operating on `HAVE_...' symbols.  Remove unnecessary parentheses.
112
113 2002-07-02  Jim Meyering  <meyering@lucent.com>
114
115         * src/basename.c, src/chroot.c, src/date.c, src/dirname.c (usage):
116         Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
117         * src/echo.c, src/env.c, src/expr.c, src/factor.c: Likewise.
118         * src/hostname.c, src/id.c, src/kill.c, src/logname.c: Likewise.
119         * src/nice.c, src/pathchk.c, src/pinky.c, src/printenv.c: Likewise.
120         * src/printf.c, src/pwd.c, src/seq.c, src/sleep.c, src/stty.c: Likewise.
121         * src/su.c, src/tee.c, src/test.c, src/true.c, src/tty.c: Likewise.
122         * src/uname.c, src/uptime.c, src/users.c, src/who.c: Likewise.
123         * src/whoami.c, src/yes.c: Likewise.
124
125         * src/Makefile.am (.sh): Also substitute @PACKAGE_BUGREPORT@.
126         * src/groups.sh (usage): Use @PACKAGE_BUGREPORT@, rather than
127         hard-coding a deprecated address.
128         * src/nohup.sh (usage_help): Likewise.
129
130         * src/date.c (usage): Mention that the expansions of %p and %P are
131         empty in many locales.  From matthew arnison.
132
133 2002-06-22  Jim Meyering  <meyering@lucent.com>
134
135         * configure.ac: Invoke AC_GNU_SOURCE very early.
136
137 2002-05-24  Jim Meyering  <meyering@lucent.com>
138
139         * tests/nice: Move this file...
140         * tests/misc/nice: ...to here.
141         * tests/Makefile.am (TESTS): Remove nice.
142         * tests/misc/Makefile.am (TESTS): Add nice.
143         * configure.ac (AC_CONFIG_FILES): Add tests/misc/Makefile.
144
145         * src/pathchk.c (validate_path): Compare the result of the function --
146         not its (constant) address -- against zero.
147         Patch from Tim J. Robbins <tjr@FreeBSD.ORG>
148         * tests/misc/pathchk1: New test for the above.
149         * tests/misc: New directory.
150         * tests/Makefile.am (SUBDIRS): Add misc.
151         * tests/misc/Makefile.am: New file.
152
153 2002-05-03  Jim Meyering  <meyering@lucent.com>
154
155         * src/uptime.c (print_uptime): Use ngettext for day/days and user/users.
156         Suggestion from Karl Eichwalder.
157
158         * src/kill.c (usage): Add a little to the description of --list.
159         Uncapitalize first word and remove period at end of each one line
160         option description.
161
162         * src/who.c (usage): Tweak description of --users.
163         From Karl Eichwalder.
164
165 2002-04-29  Jim Meyering  <meyering@lucent.com>
166
167         * Version 2.0.12.
168
169         Avoid warnings from gcc.
170         * src/who.c (PIDSTR_DECL_AND_INIT): Cast ut_pid value to int.
171         (make_id_equals_comment): Cast sizeof expression (used as field
172         width argument) to `int'.
173
174         * configure, config.hin, Makefile.in, etc.: Regenerate using
175         autoconf-2.53a.
176
177 2002-04-28  Jim Meyering  <meyering@lucent.com>
178
179         * src/who.c: Don't include xalloc.h.
180         It's already included via system.h.
181
182 2002-04-28  Paul Eggert  <eggert@twinsun.com>
183
184         * src/kill.c: Rewrite from scratch.  Support everything
185         required by POSIX 1003.1-2001; when this conflicts with Bash,
186         stick with POSIX.  The conflicts are kill -l output format,
187         and lower case signal names preceded by `-' (e.g., "kill -hup"
188         is no longer supported).  Remove -L or --long-list option.
189         Add -t or --table option.  Rename --sigspec to --signal;
190         remove --signum and do not advertise obsolescent option -n.
191         Use str2sig and str2sig to convert between signal names and
192         numbers.
193
194         * doc/coreutils.texi (kill invocation): Document the above.
195         Document POSIX signals better.
196
197         * lib/sig2str.h, lib/sig2str.c: New files.
198         * configure.ac (AC_CHECK_DECLS): Add str2signal, strtoimax,
199         sys_siglist, _sys_siglist.
200         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
201         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
202         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
203         (jm_PREREQ_SIG2STR): New macro.
204
205 2002-04-28  Jim Meyering  <meyering@lucent.com>
206
207         * src/test.c (test_syntax_error): Add `const' to paramater
208         declarations to avoid new warning from gcc.
209         (integer_expected_error): Likewise.
210
211 2002-04-25  Jim Meyering  <meyering@lucent.com>
212
213         * configure.ac (AM_GNU_GETTEXT): Add external arg.
214         (AC_CONFIG_FILES): Remove intl/Makefile.
215         * Makefile.am (SUBDIRS): Remove intl.
216         * src/Makefile.am (INCLUDES): Remove -I../intl.
217
218 2002-04-16  Jim Meyering  <meyering@lucent.com>
219
220         * src/who.c (BOOT_TIME): Define.
221         (NEW_TIME): Define to 0, not INT_MAX.
222         (UT_PID, UT_ID, UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
223         Replace literal uses of ut_pid, ut_id, and ut_exit members with
224         uses through macros.
225         (make_id_equals_comment): New function, factored out of three others.
226         (UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define.
227         (print_line): Use "%-8.8s" for the format: the user name is not
228         always NUL terminated.
229         (scan_entries) [need_users]: Use IS_USER_PROCESS, so that this works
230         even on systems without ut_type.
231
232 2002-04-15  Jim Meyering  <meyering@lucent.com>
233
234         * src/who.c: Include xalloc.h.
235         Use xmalloc everywhere, not malloc.
236
237 2002-04-12  Jim Meyering  <meyering@lucent.com>
238
239         * src/Makefile.am (LDADD): List ../lib/libfetish.a both before
240         and after @LIBINTL@.  Thanks to Paul Eggert for the fix and to
241         Bruno Haible for diagnosing the problem.
242
243 2002-02-26  Paul Eggert  <eggert@twinsun.com>
244
245         * src/test.c (age_of): Return -1 and 0 rather than 0 and 1.
246         Might as well keep it simple, and like bash.
247         (binary_operator): Fix bug with -nt and -ot, when one of the
248         files did not exist.  We want to be compatible with the ksh93
249         documentation, and with Bash.
250
251 2002-03-17  Jim Meyering  <meyering@lucent.com>
252
253         * src/seq.c (usage): Mention that --format=FORMAT must be
254         a *floating-point* format, also in description of that option.
255         Reported by Karl Eichwalder.
256         (usage): Also add the `=' signs here: --format=FORMAT,
257         --separator=STRING.
258
259 2002-03-16  Jim Meyering  <meyering@lucent.com>
260
261         * src/Makefile.am (datadir): Don't override $(datadir)
262         which might be set by --datadir and different from $(prefix)/share.
263         Patch from Albert Chin-A-Young.
264
265 2002-03-10  Jim Meyering  <meyering@lucent.com>
266
267         * configure.ac (AM_INIT_AUTOMAKE): Specify here the required version
268         of automake (1.6), and options (gnits dist-bzip2), rather than...
269         * Makefile.am (AUTOMAKE_OPTIONS): ...here.  Remove definition.
270
271 2002-03-09  Jim Meyering  <meyering@lucent.com>
272
273         * Makefile.am (EXTRA_DIST): Remove config/config.rpath,
274         now that automake knows about it.
275
276 2002-03-05  Jim Meyering  <meyering@lucent.com>
277
278         * Makefile.am (EXTRA_DIST): Add config/config.rpath.
279
280 2002-03-02  Jim Meyering  <meyering@lucent.com>
281
282         * tests/nice: Export _POSIX2_VERSION=199209, so we can continue
283         to exercise the now-obsolete options.
284
285         * Makefile.maint (strftime-check): Add `N'.
286
287 2002-02-27  Paul Eggert  <eggert@twinsun.com>
288
289         * doc/coreutils.texi (Time directives): Add %N for nanoseconds.
290         This documents the recent change to 'ls'.  But for this to
291         be accurate we also have to update 'date', as follows:
292
293         * src/Makefile.am (date_LDADD): New macro.
294
295         * src/date.c: Include timespec.h.
296         (strftime, time, stime): Remove declarations; no longer needed.
297         (usage): Document %N.
298         (main): Use gettime rather than time to get the time of day,
299         so that we can get fractional times.
300         Similarly for settime and stime, so that we can set fractional times
301         (though this currently is not available to the user since we don't
302         parse fractional times; add FIXMES for that).
303         Check for gettime failures; e.g. this can occur if it
304         is past 2038 and we are a 32-bit app running on a 64-bit OS.
305         Get fractional part of file time stamps.
306         Do not falsely report failures just because time_t happens to be -1
307         (e.g. a file time stamp 1 second before the epoch).
308         (show_date): 2nd arg is now struct timespec, not time_t.
309         All uses changed.  Use nstrftime rather than strftime, so that
310         we can format fractional seconds.
311
312 2002-02-24  Jim Meyering  <meyering@lucent.com>
313
314         * src/nice.c: Include posixver.h.
315         * src/date.c: Likewise.
316
317 2002-02-17  Jim Meyering  <meyering@lucent.com>
318
319         * ABOUT-NLS, intl/*: Update to Gettext 0.11.
320         * INSTALL: Update to Autoconf 2.52h.
321
322         * src/Makefile.am (datadir): Use `share' in place of @DATADIRNAME@,
323         per Gettext-0.11.
324         (LDADD): Use @LIBINTL@ instead of @INTLLIBS@, per Gettext-0.11.
325
326         * configure.ac (AC_CONFIG_AUX_DIR): New macro invocation.
327         (ALL_LINGUAS): Remove: now in po/LINGUAS as per Gettext 0.11.
328
329         * config: New subdirectory, containing the following files from .:
330         config.guess, config.sub, depcomp, missing, install-sh, mkinstalldirs.
331         Move the following files here from doc: texinfo.tex, mdate-sh.
332
333 2002-02-15  Paul Eggert  <eggert@twinsun.com>
334
335         Add support for _POSIX2_VERSION, which lets you pick which POSIX
336         version you want the utilities to conform to.  Remove warnings about
337         failure to conform to a future POSIX version.
338
339         * src/date.c (ISO_8601_OPTION): Remove; no longer needed.
340         All uses changed to back to the corresponding short options.
341         (short_options): Remove; no longer needed.
342         (COMMON_SHORT_OPTIONS): New macro.
343
344         * src/date.c (usage): Document only the intersection of the
345         old and new behaviors, to encourage portability.
346         (main): Parse options using POSIX 1003.1-2001 rules if
347         conforming to that standard.  Do not warn of obsolete options.
348         * src/nice.c (usage, main): Likewise.
349
350 2002-02-11  Paul Eggert  <eggert@twinsun.com>
351
352         * src/nice.c (main): Output warnings only if OBSOLETE_OPTION_WARNINGS.
353
354 2002-02-11  Jim Meyering  <meyering@lucent.com>
355
356         * src/date.c (usage): Describe %F, %g, %G, %P, and %R.
357         Tweak the description of %p.
358
359         * tests/stty/basic-1: Use `tail -n +2', rather than `tail +2'.
360
361 2002-02-03  Paul Eggert  <eggert@twinsun.com>
362
363         Add more support for POSIX 1003.1-2001, which requires removal
364         for support of obsolete "-DIGITS" option syntax in nice, and
365         which prohibits options with optional arguments like date's
366         -I option.
367
368         * NEWS, coreutils.texi: Document this.
369
370         * src/date.c (ISO_8601_OPTION): New enum value.
371         (long_options): Use it.
372         (short_options): New constant.
373
374         * src/date.c (usage): Document the change.
375         * src/nice.c (usage): Likewise.
376
377         * src/date.c (main): Conform to POSIX 1003.1-2001 if
378         POSIX2_VERSION says to, otherwise warn of obsolete usage if
379         OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT.
380         * src/nice.c (main): Likewise.
381
382 2002-02-02  Bruno Haible  <bruno@clisp.org>
383
384         * printf.c (print_esc): Call print_unicode_char with exit_on_error =
385         false.
386
387 2002-01-28  Jim Meyering  <meyering@lucent.com>
388
389         * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d.
390         * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro.
391
392 2002-01-22  Jim Meyering  <meyering@lucent.com>
393
394         * po/POTFILES.in: Add lib/xmemcoll.c and src/sys2.h.
395
396 2002-01-21  Jim Meyering  <meyering@lucent.com>
397
398         * Makefile.maint (strftime-check): New rule.
399         (local-check): Convert this target to a list.  Update uses.
400         Mark them as .PHONY.
401         (header-check): New rule.
402         (local-check): Add header-check.
403
404         * src/dirname.c: Don't include "xalloc.h", as system.h already
405         does that via sys2.h.
406         * src/expr.c: Likewise.
407
408 2002-01-19  Jim Meyering  <meyering@lucent.com>
409
410         * configure.ac: Remove code that set LIBOBJS in support of ansi2knr.
411         The latest version of autoconf objected to it, and besides, I don't
412         care too much about K&R support these days.
413
414 2002-01-14  Paul Eggert  <eggert@twinsun.com>
415
416         * src/date.c, src/logname.c, src/pathchk.c: Comment fixes
417         to bring us up to date with respect to POSIX 1003.1-2001.
418         In particular, POSIX.2 is now obsolete.
419
420 2001-12-28  Jim Meyering  <meyering@lucent.com>
421
422         * configure.ac (ALL_LINGUAS): Add Catalan (ca).
423
424 2001-12-17  Jim Meyering  <meyering@lucent.com>
425
426         * Makefile.maint (real_dir): Remove unused variable.
427         (url_dir_list): Don't set define it here, but...
428         * Makefile.cfg (url_dir_list): ...define it here instead.
429         (hosts, a_host, b_host): Remove now-unused variables.
430         (alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.
431
432 2001-12-15  Jim Meyering  <meyering@lucent.com>
433
434         * src/basename.c, src/chroot.c, src/date.c, src/dirname.c, src/echo.c,
435         * src/env.c, src/expr.c, src/factor.c, src/hostid.c, src/hostname.c,
436         * src/id.c, src/kill.c, src/logname.c, src/nice.c, src/pathchk.c,
437         * src/pinky.c, src/printenv.c, src/printf.c, src/pwd.c, src/seq.c,
438         * src/sleep.c, src/stty.c, src/su.c, src/tee.c, src/test.c, src/true.c,
439         * src/tty.c, src/uname.c, src/uptime.c, src/users.c, src/who.c,
440         * src/whoami.c, src/yes.c (usage): Use fputs, not printf.
441         Split --help output into smaller pieces.
442         Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
443         instead of hard-coding --help and --version descriptions.
444
445 2001-12-08  Jim Meyering  <meyering@lucent.com>
446
447         * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's
448         no longer available at that location.
449
450 2001-11-25  Jim Meyering  <meyering@lucent.com>
451
452         * basename.c, dirname.c, expr.c, factor.c, hostname.c (usage):
453         * logname.c, printenv.c, printf.c, pwd.c, sleep.c, test.c (usage):
454         * true.c, whoami.c, yes.c (usage):
455         Indent --help and --version strings to start in the 7th column.
456
457 2001-11-17  Jim Meyering  <meyering@lucent.com>
458
459         * configure.ac: Replace use of the one-arg form of AC_INIT
460         with a use of the 3-arg form and a use of AC_CONFIG_SRCDIR.
461
462 2001-11-11  Jim Meyering  <meyering@lucent.com>
463
464         * src/Makefile.am (printf_LDADD): Reflect spelling change:
465         s/POW_LIBM/POW_LIB/.
466         (sleep_LDADD): Likewise.
467
468 2001-11-10  Jim Meyering  <meyering@lucent.com>
469
470         * src/date.c (usage): Document %u.  Reported by Albert Hopkins.
471
472 2001-11-09  Jim Meyering  <meyering@lucent.com>
473
474         * configure.ac: Use AC_CONFIG_FILES(...) and call AC_OUTPUT with no
475         arguments.
476
477 2001-09-28  Jim Meyering  <meyering@lucent.com>
478
479         * configure.ac: Tell automake to use the file name `config.hin'
480         rather than the two-`.' config.h.in.
481
482 2001-09-26  Jim Meyering  <meyering@lucent.com>
483
484         * man/Makefile.am (common_dep): Define it, so we depend on configure.ac.
485
486         * configure.ac: Renamed from configure.in.
487
488 2001-09-25  Jim Meyering  <meyering@lucent.com>
489
490         * src/Makefile.am:
491         (factor_DEPENDENCIES, printf_DEPENDENCIES seq_DEPENDENCIES):
492         (sleep_DEPENDENCIES uptime_DEPENDENCIES su_DEPENDENCIES):
493         Remove unnecessary definitions.  They can cause trouble
494         when @INTLLIBS@ expands to -lintl.
495
496 2001-09-23  Jim Meyering  <meyering@lucent.com>
497
498         * Makefile.am (SUBDIRS): When using newer gettext (in which
499         intl/libintl.h is created by rules intl/Makefile)
500         `intl' must precede `lib'.
501
502 2001-09-17  Jim Meyering  <meyering@lucent.com>
503
504         * src/printf.c (main): Change the `ignoring excess arguments' diagnostic
505         to list the first one we're ignoring.  Suggestion from Karl Berry.
506
507 2001-09-16  Jim Meyering  <meyering@lucent.com>
508
509         * src/stty.c (usage): Prefix each line with a space, so that
510         help2man produces a better stty.1 man page.
511         From Colin Watson, via Michael Stone.  http://bugs.debian.org/95816
512
513         * src/test.c (usage): Describe -h option.
514         From Colin Watson, via Michael Stone.  http://bugs.debian.org/99272
515
516         * man/pwd.x: Add note to help people understand that this documentation
517         may not refer to the (shell built-in) command they're running.
518         * man/echo.x: Likewise.
519         * man/printf.x: Likewise.
520         From Michael Stone.
521
522         * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5.
523
524         * man/Makefile.am: Revamp this file, as for fileutils.
525
526 2001-09-11  Jim Meyering  <meyering@lucent.com>
527
528         * configure.in: Move HOST_OPERATING_SYSTEM code from this file
529         into a new macro defined in m4/host-os.m4.
530
531 2001-09-09  Jim Meyering  <meyering@lucent.com>
532
533         * src/test.c (binary_operator): Correct typo in diagnostic.
534         From Jochen Hein.
535
536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
537
538         * NEWS: New 'uname' options -i or --hardware-platform,
539         and -o or --operating-system.
540         'uname -a' now outputs -i and -o information at the end.
541         New uname option --kernel-version is an alias for -v.
542         Uname option --release has been renamed to --kernel-release,
543         and --sysname has been renamed to --kernel-name;
544         the old options will work for a while, but are no longer documented.
545
546         * configure.in (HOST_OPERATING_SYSTEM): New macro; set it
547         from $host_os with a translation table and other heuristics.
548
549         * src/uname.c: Correct copyright notice as per latest coding standards.
550         Remove list of options in comment, which wasn't
551         worth maintaining separately from usage().
552
553         (print_element): Move definition up, avoiding the need for
554         declaration and allowing inlining on some platforms.
555         Keep track of whether something has been printed; this is more
556         natural than modifying `toprint'.
557
558         (PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME.
559         (PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE.
560         (PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION.
561         (PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros.
562         (toprint): Remove global var; now local in `main'.
563         (long_options, usage, main): Implement changes described in NEWS.
564         Reorder options to reflect output order.
565         (main): Use buffers one byte longer, for compatibility with Solaris 8.
566         Output newline at end.  -a sets `toprint' to -1 now; this is simpler.
567         Do not bother invoking system calls like uname if the resulting
568         information does not need to be printed.
569         Do not fail if sysinfo fails; just print "unknown".
570
571 2001-08-30  Paul Eggert  <eggert@twinsun.com>
572
573         * src/tee.c (full_write): Remove decl; not needed.
574
575 2001-06-19  Paul Eggert  <eggert@twinsun.com>
576
577         * NEWS: expr now uses LC_COLLATE for string comparison, as per POSIX.
578         * src/expr.c (nextarg): Use strcoll, not strcmp.
579
580 2001-08-24  Jim Meyering  <meyering@lucent.com>
581
582         * src/pinky.c (main): Fail if -l is specified with no username.
583
584         * src/pinky.c (usage): Clarify description of -l.  From Clark Morgan.
585
586 2001-06-21  Paul Eggert  <eggert@twinsun.com>
587
588         * NEWS: 'expr' now requires '+' rather than 'quote' to quote tokens.
589
590         * src/expr.c (posixly_correct): Remove; no longer needed.
591         (main): Do not worry about POSIXLY_CORRECT, as it's OK for
592         expr to have options (so long as they do not begin with digits).
593         (eval6, usage): Use "+" rather than "quote" to quote tokens.
594
595 2001-08-19  Jim Meyering  <meyering@lucent.com>
596
597         * src/Makefile.am (bin_PROGRAMS): Add kill.
598         * src/kill.c: New program.  Written by Marcus Brinkmann.
599
600 2001-08-19  Jim Meyering  <meyering@lucent.com>
601
602         * po/POTFILES.in: Add src/kill.c
603
604 2001-06-21  Paul Eggert  <eggert@twinsun.com>
605
606         * src/expr.c (nextarg): Advance ARGS by one if the next token matches.
607         All callers changed.
608
609 2001-06-21  Paul Eggert  <eggert@twinsun.com>
610
611         * src/expr.c (isstring): Remove.
612         (eval2): Do comparisons as strings first, before trying to convert to
613         integer.  This avoids loss of information and wrong result, e.g. for
614         "expr '00' '<' '0!'", where you don't want to convert '00' to '0'.
615
616 2001-08-18  Jim Meyering  <meyering@lucent.com>
617
618         * tests/expr/basic (00): New test for the above.
619
620 2001-06-21  Paul Eggert  <eggert@twinsun.com>
621
622         * src/expr.c: Code cleanup to avoid tricky macros and
623         old-style function declarations.
624
625         (cmpf, less_than, less_equal, equal, not_equal, greater_equal,
626         greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod):
627         Remove.
628
629         (eval4, eval3, eval2): Rewrite to avoid the need for the above macros
630         and functions.
631
632 2001-08-18  Jim Meyering  <meyering@lucent.com>
633
634         * src/test.c (binary_operator): Move declarations of lt,rt `down'
635         into the scopes where they're actually used.
636         (unary_operator): Likewise for `fd'.
637
638 2001-06-20  Paul Eggert  <eggert@twinsun.com>
639
640         * src/test.c (isint, binary_operator, unary_operator):
641         Use intmax_t for argument integers, not long.
642         (age_of, binary_operator): Use time_t for times, not long.
643         (unary_operator): If N is out of int range, -t N now returns false.
644
645 2001-06-20  Paul Eggert  <eggert@twinsun.com>
646
647         * src/expr.c (main): Handle a leading "--" option as POSIX requires.
648
649 2001-08-18  Jim Meyering  <meyering@lucent.com>
650
651         * tests/expr/basic: Add a test for the above.
652
653 2001-06-20  Paul Eggert  <eggert@twinsun.com>
654
655         * src/expr.c (toarith): Don't accept plain "-" as a valid integer.
656
657 2001-06-20  Paul Eggert  <eggert@twinsun.com>
658
659         Modify 'expr' so that it uses intmax_t, not int, to calculate
660         the value of integer expressions.
661
662         * src/expr.c (struct valinfo.i): Now intmax_t, not int.
663         (docolon, int_value, str_value, isstring, nextarg, toarith,
664         freev, tostring, trace): Remove unnecessary forward decls.
665         (int_value, printv, tostring, toarith, arithf, arithdivf, docolon,
666         eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int.
667         (docolon): Don't assume size_t fits in int.
668
669 2001-08-18  Jim Meyering  <meyering@lucent.com>
670
671         * tests/expr/basic: New test for the above.
672         * tests/expr/Makefile.am: New file.
673         * tests/expr: New directory.
674         * tests/Makefile.am (SUBDIRS): Add expr.
675         * configure.in (AC_OUTPUT): Add tests/expr/Makefile.
676
677 2001-08-18  Jim Meyering  <meyering@lucent.com>
678
679         Revert part of last change and solve the problem a better way.
680         * src/date.c (show_date) [--rfc-822]: Set LC_ALL=C just before
681         calling strftime and restore it just afterwards.
682         Suggestion from Ulrich Drepper.
683
684 2001-08-18  H. Peter Anvin  <hpa@transmeta.com>
685
686         * src/date.c (show_date) [--rfc-822]: Don't space-pad the day of
687         the month.
688         Set only LC_TYPE to the "C" locale.  Setting LC_ALL is overkill,
689         and would have unwanted side effects if there is an error message.
690
691 2001-08-16  Jim Meyering  <meyering@lucent.com>
692
693         * src/date.c (main): When there are too many non-option arguments,
694         include the first offending argument in the diagnostic.
695         Suggestion from Karl Berry.
696
697 2001-08-14  Jim Meyering  <meyering@lucent.com>
698
699         * src/Makefile.am (INCLUDES): Add -I../lib so sys2.h can include
700         the new, generated file, unlocked-io.h.
701
702         * tests/Makefile.am (TESTS_ENVIRONMENT): Remove first definition
703         of this variable, and move its RHS into the RHS of the second.
704         Thanks, automake!
705
706         * src/su.c (xputenv): Remove parameter's const qualifier.
707
708         * src/dirname.c, src/env.c, src/id.c, src/pathchk.c, src/pinky.c,
709         * src/printenv.c, src/sleep.c, src/tee.c, src/test.c, src/uptime.c,
710         * src/users.c, src/who.c: (AUTHORS): Mark string for translation,
711         since it contains the English word `and'.
712
713 2001-08-12  Jim Meyering  <meyering@lucent.com>
714
715         * src/pathchk.c (PATH_MAX_FOR): Use pathconf via wrapper.
716         (NAME_MAX_FOR): Likewise.
717         Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
718         rather than with `#ifdef _POSIX_VERSION'.
719         (pathconf_wrapper): New function.
720         (validate_path): Declare length variables to be `long', not `int'.
721         Adjust corresponding printf-style specs to use %ld.
722         Reported by Neal H Walfield.
723
724 2001-08-07  Jim Meyering  <meyering@lucent.com>
725
726         * src/printf.c (cfcc_msg): Remove now-inaccurate part of comment.
727         From Bruno Haible.
728
729 2001-07-04  Jim Meyering  <meyering@lucent.com>
730
731         * Makefile.cfg: New file with package-specific definitions.
732         * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
733
734 2001-06-09  Jim Meyering  <meyering@lucent.com>
735
736         (PIDSTR_DECL_AND_INIT): Define.
737
738 2001-06-05  Jim Meyering  <meyering@lucent.com>
739
740         * configure.in (ALL_LINGUAS): Add Turkish (tr).
741
742 2001-05-27  Jim Meyering  <meyering@lucent.com>
743
744         * src/dirname.c (main): Add `const' to declaration of local, `result'.
745
746 2001-04-01  Jim Meyering  <meyering@lucent.com>
747
748         Add options to make `who' more POSIX compliant.
749         * who.c: Accept new options: --all (-a), --boot (-b), --dead (-d),
750         --login, --process (-p), --runlevel (-r), --short (-s), --time (-t),
751         --users (-u).
752         The -u option now produces POSIX-specified results and is the same as
753         the long option `--users'.  --idle is no longer the same as -u.
754         (time_string, print_line, print_boottime, print_deadprocs, print_login,
755         print_initspawn, print_clockchange, print_runlevel): New functions.
756         (print_user): Renamed from print_entry and reworked.
757         (search_entries): Remove function.
758         (who_am_i): Likewise.
759         (usage): Describe new options.
760         (main): Handle new options.
761         Mostly from Michael Stone.
762
763 2001-05-11  Paul Eggert  <eggert@twinsun.com>
764
765         dirname code cleanup.  base_name now behaves more compatibly
766         with POSIX basename when given file names that have trailing
767         slashes, and similarly for dir_name.  Add new primitives
768         base_len and dir_len.  Put the directory-name-related decls
769         into dirname.h.
770
771         * basename.c: Include "dirname.h".
772         (base_name, strip_trailing_slashes): Remove decls; now in dirname.h.
773         (main): Use base_len instead of strip_trailing_slashes to strip
774         trailing slashes.
775
776         * dirname.c (strip_trailing_slashes): Remove decl;
777         now in dirname.h.
778         (main): Use dir_len rather than dir_name_r.
779
780         * su.c: Include "dirname.h".
781         (base_name): Remove decl; now in dirname.h.
782
783 2001-04-20  Jim Meyering  <meyering@lucent.com>
784
785         * doc/sh-utils.texi (false invocation): Describe how --help and
786         --version are treated with and without POSIXLY_CORRECT.
787         (true invocation): Likewise.  Forwarded by Michael Stone.
788
789 2001-03-18  Jim Meyering  <meyering@lucent.com>
790
791         * tests/Fetish.pm: If the $DJDIR envvar is defined, set SHELL
792         to $DJDIR/bin/bash.exe.  Patch from Richard Dawe, based on a
793         suggestion from Eli Zaretskii.
794
795 2001-03-10  Jim Meyering  <meyering@lucent.com>
796
797         * doc/sh-utils.texi (date invocation): Correct the description of how
798         date works when given no format.  Reported by Ole Laursen.
799
800         * src/factor.c: Include wheel-size.h.
801         (WHEEL_START): Adjust definition.
802         (wheel_tab[]): Remove body of definition.
803         Include generated file, wheel.h, instead.
804
805         * src/wheel-gen.pl: New file.
806         * src/Makefile.am (noinst_HEADERS): Add wheel.h wheel-size.h.
807         (EXTRA_DIST): Add wheel-gen.pl.
808         (PERL): Define.
809         (wheel-size.h, wheel.h): New rules.
810         (BUILT_SOURCES): Add wheel.h and wheel-size.h.
811         (MAINTAINERCLEANFILES): Define.
812
813 2001-03-09  Jim Meyering  <meyering@lucent.com>
814
815         * Makefile.maint (my_distdir): Define new variable, and use this
816         in place of most old uses of $(distdir).
817
818         * src/date.c (usage): Describe %C.
819         * doc/sh-utils.texi (Date directives): Likewise.
820
821         * tests/help-version: Ensure that /dev/full is a character device
822         (using test -c) as well as being writable, before trying to write to it.
823         Otherwise, the test could mistakenly append a newline to an existing,
824         regular, writable, /dev/full file.
825         Suggested by Ulrich Drepper.
826
827 2001-03-07  Jim Meyering  <meyering@lucent.com>
828
829         * tests/stty/Makefile.am (EXTRA_DIST): Remove input-tty.
830         * tests/Makefile.am (EXTRA_DIST): Add input-tty.
831
832         * tests/stty/basic-1: Reflect change in location of input-tty.
833         * tests/stty/row-col: Likewise.
834         * tests/stty/input-tty: Move this file...
835         * tests/input-tty: ... to here.
836
837 2001-02-24  Paul Eggert  <eggert@twinsun.com>
838
839         * doc/sh-utils.texi: Fix typo: '-d=1may' -> '-d 1may'.
840         Fix and clarify time zone usage in 'date' examples.
841
842 2001-02-04  Jim Meyering  <meyering@lucent.com>
843
844         * src/factor.c (usage): Tweak --help output: it prints the _prime_
845         factors, not just any factors.
846
847 2001-02-03  Jim Meyering  <meyering@lucent.com>
848
849         Improve the performance of `factor' (more than 2x speed-up for large N).
850         * src/factor.c (wheel_tab): New global table.
851         (WHEEL_START, WHEEL_END): Define.
852         (factor): Remove the loop that special-cased `2'.
853         Instead of incrementing by `2', use the offsets from the wheel table.
854         From Michael Steffens.
855
856 2000-11-27  Prashant TR  <rprash@wilco-int.com>
857
858         * src/test.c (eaccess) [__MSDOS__]: Just use access.
859
860 2001-01-26  Jim Meyering  <meyering@lucent.com>
861
862         * src/dirname.c (main): Declare local result as non-const, now
863         that it's freed.
864
865 2001-01-20  Jim Meyering  <meyering@lucent.com>
866
867         * configure.in: Remove jm_CHECK_ALL_TYPES.
868         Now it's invoked by jm_MACROS.
869
870 2001-01-04  Jim Meyering  <meyering@lucent.com>
871
872         * src/date.c (main): Fail when --rfc-822 (-R) is specified along
873         with a format string.  Reported by Jochen Hein.
874
875 2000-12-17  Jim Meyering  <meyering@lucent.com>
876
877         * doc/texinfo.tex: Update from master repository.
878         * config.sub: Likewise.
879         * config.guess: Likewise.
880
881         * djgpp: New directory.
882         * djgpp/*: New files.
883         * Makefile.am (SUBDIRS): Add djgpp.
884         * configure.in (AC_OUTPUT): Add djgpp/Makefile.
885         From Prashant TR.
886
887 2000-12-08  Jim Meyering  <meyering@lucent.com>
888
889         * src/dirname.c: Include xalloc.h.
890         (main): Use dir_name rather than the underlying dir_name_r.
891         The former now handles cwd-relative names with drive-letter prefixes.
892
893 2000-12-02  Jim Meyering  <meyering@lucent.com>
894
895         * src/seq.c (valid_format): Move pre-increment to a separate statement
896         to avoid a warning.
897
898         * src/id.c: Move dcls of globals used only in main...
899         (main): ...to here.
900         (usage): Clarify option descriptions.
901
902 2000-11-18  Jim Meyering  <meyering@lucent.com>
903
904         * po/Makefile.in.in: Sync with the one from fileutils.
905
906         * configure, config.h.in, Makefile.in, etc.: Regenerate using the
907         very latest version (in CVS) of autoconf.
908
909 2000-11-17  Jim Meyering  <meyering@lucent.com>
910
911         * GNUmakefile (.NOTPARALLEL): New target.  Prevent unwanted parallelism.
912         Suggestion from Ulrich Drepper.
913
914         * src/pinky.c: Explicitly include sys/types.h before including system.h.
915         * src/uptime.c: Likewise.
916         * src/users.c: Likewise.
917         * src/who.c: Likewise.
918
919 2000-11-13  Paul Eggert  <eggert@twinsun.com>
920
921         * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
922         be tested with #ifdef, not with #if.
923
924 2000-11-12  Jim Meyering  <meyering@lucent.com>
925
926         * src/date.c (show_date): Add a comment explaining why the
927         format string must not be translatable via _().  From Paul Eggert.
928
929 2000-10-31  Jim Meyering  <meyering@lucent.com>
930
931         * doc/sh-utils.texi: Clean up indentation and punctuation.
932         Fix a couple typos.  From Brian Youmans.
933
934 2000-10-30  Jim Meyering  <meyering@lucent.com>
935
936         * configure, config.h.in, Makefile.in, etc.: Regenerate using the
937         very latest version (in CVS) of autoconf.
938
939 2000-10-29  Jim Meyering  <meyering@lucent.com>
940
941         * Version 2.0.11.
942
943 2000-10-27  Jim Meyering  <meyering@lucent.com>
944
945         * src/date.c (usage): Mention the time zone, UTC, and write the date
946         in ISO format in the description of %s.  Suggestion from Karl Berry.
947
948 2000-10-25  Jim Meyering  <meyering@lucent.com>
949
950         * src/dirname.c: Include dirname.h.
951         (main): Use dir_name_r rather than open-coding it.
952
953 2000-10-23  Jim Meyering  <meyering@lucent.com>
954
955         * Makefile.am (EXTRA_DIST): Add .prev-version.
956
957 2000-10-18  Paul Eggert  <eggert@twinsun.com>
958
959         * src/date.c (universal_time): Remove; it's just a temptation to
960         do the wrong thing.
961         (main): The -u option now just sets TZ; it doesn't do anything else.
962         (show_date): Do not do anything special if -u is set.
963         This affects the behavior of the -I and -R options.
964         * doc/sh-utils.texi: Document the above.
965
966 2000-10-18  Jim Meyering  <meyering@lucent.com>
967
968         * doc/sh-utils.texi (Examples of date): Fix a typo.
969
970 2000-10-11  Jim Meyering  <meyering@lucent.com>
971
972         * doc/sh-utils.texi (Time directives) [%S]: Range is 0..60, not 0..61.
973
974 2000-10-06  Paul Eggert  <eggert@twinsun.com>
975
976         Undo the effect of the 1997-07-12 change to date.c; it
977         broke "date -u MMDDhhmm" and it wasn't documented.
978         This reverts to the behavior of the 1996-01-03 patch.
979
980         * src/date.c (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
981         (batch_convert): Don't futz with TZ.
982         (main): -u now parses all dates as UTC, not just some.
983         Reported by Karl-Michael Schneider.
984         * tests/date/Test.pm (utc-0, utc-1, relative-2): Adjust to
985         above change.
986
987 2000-09-29  Jim Meyering  <meyering@lucent.com>
988
989         * src/yes.c (usage): Add a separate usage line, just for `OPTION'.
990         Suggestion from M. P. Suzuki.
991
992 2000-09-09  Jim Meyering  <meyering@lucent.com>
993
994         * src/date.c (usage): Make the second `Usage' line more precise
995         (also making it match the texinfo documentation).
996         From Karl Eichwalder.
997
998         * doc/sh-utils.texi (Setting the time): Correct the capitalization of
999         `HHMM' in the info-rendering of the texinfo documentation.
1000         Reported by Karl Eichwalder.
1001
1002 2000-08-14  Jim Meyering  <meyering@lucent.com>
1003
1004         * src/tee.c (main): Remove incorrect `FIXME' comment.
1005
1006 2000-08-07  Paul Eggert  <eggert@twinsun.com>
1007
1008         * src/su.c (xputenv): Invoke xalloc_die instead of printing
1009         our own message.
1010
1011 2000-07-30  Jim Meyering  <meyering@lucent.com>
1012
1013         * src/tee.c (tee): Use SET_BINARY and SET_BINARY2.
1014         From Prashant TR.
1015
1016         * src/help-version: Remove file.  Move it to ...
1017         * tests/help-version: ...here
1018         * tests/Makefile.am (TESTS): Add help-version.
1019         (TESTS_ENVIRONMENT): Define.
1020         * src/Makefile.am (EXTRA_DIST): Remove help-version.
1021         (TESTS): Remove definition.
1022         (TESTS_ENVIRONMENT): Remove definition.
1023
1024 2000-07-23  Jim Meyering  <meyering@lucent.com>
1025
1026         * src/help-version (su_args): Punt, so we don't try to start a shell.
1027
1028         * src/su.c: Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
1029         rather than if _POSIX_VERSION is defined.  Remove declarations of
1030         getpwuid, getgrgid, and getuid, now that they're in sys2.h.
1031         Prompted by a report from John David Anglin.
1032
1033         * src/sys2.h [!HAVE_DECL_GETPWUID]: Declare getpwuid.
1034         [!HAVE_DECL_GETGRGID]: Declare getgrgid.
1035         [!HAVE_DECL_GETUID]: Declare getuid.
1036
1037 2000-07-19  Jim Meyering  <meyering@lucent.com>
1038
1039         * src/date.c (batch_convert): Free `initial_TZ' only if it was set.
1040         Reported by Michael Hohn.
1041
1042 2000-07-17  Jim Meyering  <meyering@lucent.com>
1043
1044         * src/stty.c (visible): Don't mark `<undef>' for translation.
1045         The standard requires that exact string.
1046
1047 2000-07-09  Jim Meyering  <meyering@lucent.com>
1048
1049         * config.guess: Update from FSF.
1050         * config.sub: Likewise.
1051
1052         * src/Makefile.am (seq_LDADD): Don't hard-code `-lm' -- some systems
1053         don't have/need it.  From Bruno Haible.
1054
1055 2000-07-06  Jim Meyering  <meyering@lucent.com>
1056
1057         * src/help-version: Punt on `groups' test, since all it does
1058         is run `id -Gn', and groups fails if GNU id is not installed.
1059         Reported by Christian Krackowizer.
1060
1061 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
1062
1063         * tests/nice: Avoid syntax error in "test" when `nice` generates
1064         no output.
1065
1066 2000-07-04  Jim Meyering  <meyering@lucent.com>
1067
1068         * Version 2.0j.
1069
1070         * tests/date/Test.pm (test_vector): Disable test #2 for all systems,
1071         even though it fails only on SunOS4.
1072
1073 2000-07-01  Jim Meyering  <meyering@lucent.com>
1074
1075         * configure.in (jm_DUMMY_1): Wrap a snippet in a macro definition
1076         so we can use AC_REQUIRE.
1077         (jm_BOOT_TIME): Likewise.
1078
1079 2000-06-17  Bruno Haible  <haible@clisp.cons.org>
1080
1081         * configure.in: Add pinky, users, who to OPTIONAL_BIN_PROGS if either
1082         <utmp.h> or <utmpx.h> exists. Add uptime only if either <utmp.h> or
1083         <utmpx.h> exists.
1084         * src/Makefile.am (bin_PROGRAMS): Remove pinky, users, who from here...
1085         (EXTRA_PROGRAMS): ... and add them here.
1086
1087 2000-06-26  Jim Meyering  <meyering@lucent.com>
1088
1089         `id -Gn' (invoked by groups) would fail without giving a diagnostic
1090         on malconfigured systems.
1091         * src/id.c (print_user): Give a diagnostic if number->name lookup fails.
1092         (print_group): Likewise.
1093
1094 2000-06-25  Jim Meyering  <meyering@lucent.com>
1095
1096         * configure.in (ALL_LINGUAS): Add Danish (da).
1097
1098 2000-06-21  Jim Meyering  <meyering@lucent.com>
1099
1100         * tests/stty/basic-1: New test for that.
1101         * src/stty.c (valid_options): Don't segfault on `stty erase -'.
1102         Patch from Harry Liu.
1103
1104 2000-06-15  Jim Meyering  <meyering@lucent.com>
1105
1106         * tests/date/Test.pm: Add tests for getdate.y fix.
1107
1108 2000-06-14  Jim Meyering  <meyering@lucent.com>
1109
1110         * src/help-version: Punt on nohup; give it --version.
1111
1112 2000-06-10  Jim Meyering  <meyering@lucent.com>
1113
1114         * doc/sh-utils.texi: Typo-fixes and some clean-up from Brian Youmans.
1115
1116 2000-05-29  Jim Meyering  <meyering@lucent.com>
1117
1118         * tests/nice: Remove now-unused reference to srcdir.
1119
1120         * src/help-version: Use `WARNING', not just `Warning' in the
1121         broken-/bin/sh diagnostic, to be consistent with other such warnings.
1122
1123 2000-05-21  Jim Meyering  <meyering@lucent.com>
1124
1125         * tests/nice: Disable test on djgpp.
1126
1127 2000-05-15  Jim Meyering  <meyering@lucent.com>
1128
1129         * tests/date/Test.pm (test_vector): Skip the %c test on SunOS4 systems.
1130         Suggested by Paul Eggert.  Reported by Volker Borchert.
1131
1132 2000-05-13  Jim Meyering  <meyering@lucent.com>
1133
1134         * src/groups.sh: Detect and report write failure of --help/--version.
1135         * src/nohup.sh: Likewise.
1136
1137 2000-05-11  Jim Meyering  <meyering@lucent.com>
1138
1139         * src/date.c (usage): Don't call close_stdout_status directly,
1140         since that didn't cover --version output.
1141         (main): Instead, call close_stdout_set_status and arrange to
1142         call close_stdout via atexit.
1143         * src/printenv.c: Likewise.
1144         * src/tty.c: Likewise.
1145
1146         * src/true.c (usage): Don't call close_stdout directly, since that
1147         didn't cover --version output.
1148         (main):  Arrange to call close_stdout via atexit, instead.
1149         * src/yes.c: Likewise.
1150         * src/sleep.c: Likewise.
1151
1152 2000-05-09  Jim Meyering  <meyering@lucent.com>
1153
1154         * src/sys2.h (case_GETOPT_VERSION_CHAR): Don't call close_stdout.
1155         * src/help-version: New test.
1156         * src/Makefile.am (TESTS): Define.
1157         (TESTS_ENVIRONMENT): Likewise.
1158         (EXTRA_DIST): Add help-version.
1159
1160 2000-05-08  Jim Meyering  <meyering@lucent.com>
1161
1162         * Version 2.0i.
1163
1164 2000-05-07  Jim Meyering  <meyering@lucent.com>
1165
1166         * Version 2.0h.
1167
1168         * src/basename.c: Include "closeout.h".
1169         (main): Call atexit with close_stdout.
1170         * src/chroot.c: Likewise.
1171         * src/dirname.c: Likewise.
1172         * src/echo.c: Likewise.
1173         * src/env.c: Likewise.
1174         * src/expr.c: Likewise.
1175         * src/factor.c: Likewise.
1176         * src/hostid.c: Likewise.
1177         * src/hostname.c: Likewise.
1178         * src/id.c: Likewise.
1179         * src/logname.c: Likewise.
1180         * src/nice.c: Likewise.
1181         * src/pathchk.c: Likewise.
1182         * src/pinky.c: Likewise.
1183         * src/printf.c: Likewise.
1184         * src/pwd.c: Likewise.
1185         * src/seq.c: Likewise.
1186         * src/stty.c: Likewise.
1187         * src/su.c: Likewise.
1188         * src/test.c: Likewise.
1189         * src/uname.c: Likewise.
1190         * src/uptime.c: Likewise.
1191         * src/users.c: Likewise.
1192         * src/who.c: Likewise.
1193         * src/whoami.c: Likewise.
1194         * src/tee.c: Likewise.  Remove explicit close_stdout.
1195
1196         * src/yes.c Include "closeout.h".
1197         (usage): Call close_stdout just before exit.
1198         * src/sleep.c: Likewise.
1199         * src/true.c: Likewise.
1200         * src/date.c (usage): Call close_stdout_status.
1201         * src/printenv.c (usage): Likewise.
1202
1203         * tests/date/Test.pm ($Test::env{'rfc822-1'}): Add TZ=UTC0.
1204
1205 2000-05-06  Jim Meyering  <meyering@lucent.com>
1206
1207         * src/Makefile.am (sleep_LDADD): Add @LIB_CLOCK_GETTIME@ and
1208         @LIB_NANOSLEEP@.
1209
1210         * src/tty.c (main): Warn about arguments, don't fail.
1211         (usage): Call close_stdout_status from here as well as from main.
1212
1213 2000-05-05  Jim Meyering  <meyering@lucent.com>
1214
1215         Exit nonzero upon write failure.
1216         * src/printf.c: Include "closeout.h".
1217         (main): Call close_stdout.
1218         Reported by Ian Jackson via Michael Stone.
1219
1220 2000-05-04  Jim Meyering  <meyering@lucent.com>
1221
1222         * Makefile.maint (my-distcheck): Remove spurious blank line.
1223         Remove $(DEPDIR) *after* making distclean, not before.
1224
1225 2000-04-30  Jim Meyering  <meyering@lucent.com>
1226
1227         * src/yes.c: Detect and terminate upon write failure.
1228
1229 2000-04-14  Jim Meyering  <meyering@lucent.com>
1230
1231         * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and
1232         remove unnecessary uses of `defined' (aesthetics).
1233
1234 2000-04-12  Jim Meyering  <meyering@lucent.com>
1235
1236         Move some code into m4/.
1237         * configure.in (_GNU_SOURCE): Don't define here.
1238         (AC_SYS_LARGEFILE): Don't use here.
1239         (AM_C_PROTOTYPES): Don't use here.
1240         (AC_DEFINE): Use 3-arg form.
1241         * acconfig.h: Remove now-unused file.
1242
1243 2000-04-09  Jim Meyering  <meyering@lucent.com>
1244
1245         * configure.in (ALL_LINGUAS): Add Estonian (et).
1246
1247 2000-04-01  Jochen Hein  <jochen@jochen.org>
1248
1249         * src/date.c: Use the "C" locale when using --rfc-822 (-R), as
1250         required by rfc822.  Before, in the de_DE locale, date would
1251         print the German weekday and month abbreviations.
1252
1253         * tests/date/Test.pm: Add test for rfc822 format and foreign
1254         locale settings.
1255
1256 2000-04-04  Jim Meyering  <meyering@lucent.com>
1257
1258         * man/Makefile.am (man_MANS): Add uptime.1.
1259         * man/uptime.x: New file.
1260
1261         * man/Makefile.am (man_MANS): Add factor.1.
1262         * man/factor.x: New file.
1263
1264         * tests/seq/basic: Split a long line and tweak for font-lock mode.
1265         * tests/factor/basic: Likewise.
1266         * tests/basename/basic: Likewise.
1267
1268 2000-03-29  Paul Eggert  <eggert@twinsun.com>
1269
1270         * src/date.c: Include <langinfo.h> if it exists.
1271         (DATE_FMT_LANGINFO): New macro.
1272         (show_date): Use it to get the locale-specific default format for
1273         "date" if it exists.
1274
1275 2000-03-19  Jim Meyering  <meyering@lucent.com>
1276
1277         * Version 2.0g.
1278
1279         * doc/sh-utils.texi (chroot invocation): Include a couple tips and
1280         a simple example.
1281
1282         * doc/getdate.texi (Calendar date item): Fix typos.
1283         From Per Cederqvist.
1284
1285 2000-03-18  Jim Meyering  <meyering@lucent.com>
1286
1287         * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds.
1288
1289 2000-03-12  Jim Meyering  <meyering@lucent.com>
1290
1291         Merge from textutils.
1292         * src/system.h (O_BINARY, O_TEXT): Define if necessary.
1293         (SET_BINARY, SET_BINARY2): Define.
1294         (DEV_BSIZE): Define to BBSIZE if appropriate.
1295
1296 2000-03-11  Jim Meyering  <meyering@lucent.com>
1297
1298         * tests/date/Test.pm: Set the default TZ value to UTC0, not UTC.
1299         The latter didn't have any effect on alphaev56-dec-osf4.0f.
1300
1301         Final merge with fileutils.
1302         * src/system.h: Use standard `#if TIME_WITH_SYS_TIME...' block
1303         rather than `#if TM_IN_SYS_TIME' one.
1304
1305 2000-02-02  Bruno Haible  <haible@clisp.cons.org>
1306
1307         * printf.c: Include "unicodeio.h".
1308         (usage): Mention \u and \U directives. \x outputs a byte, not a
1309         character.
1310         (print_esc): Implement \u and \U.
1311         * Makefile.am (printf_LDADD): Add @LIBICONV@.
1312
1313 2000-03-03  Jim Meyering  <meyering@lucent.com>
1314
1315         Make it so stty's rprnt attribute works on HPUX 10.20.
1316         * src/stty.c [CREPRINT && !CRPRNT] (CRPRNT): Define.
1317         (control_info): Recognize HPUX's CREPRINT.
1318
1319 2000-03-02  Jim Meyering  <meyering@lucent.com>
1320
1321         * doc/sh-utils.texi (printf invocation): Describe new unicode syntax.
1322         From Bruno Haible.
1323
1324         Unify with fileutils/src/system.h.
1325         * src/system.h (ST_NBLOCKS): Sync with recent changes in fileutils.
1326         [!_POSIX_VERSION]: Remove declarations of getlogin, ttyname, geteuid.
1327         * src/sys2.h: Declare them here, if needed.
1328
1329 2000-03-01  Jim Meyering  <meyering@lucent.com>
1330
1331         * Makefile.am (EXTRA_DIST): Include GNUmakefile.
1332
1333         * src/seq.c (get_width_format): Fix portability problem with
1334         `-0' vs. `0'.
1335
1336 2000-02-22  Jim Meyering  <meyering@lucent.com>
1337
1338         * tests/date/Test.pm (datevtime-1): New test.
1339         From John Kendall.
1340
1341 2000-02-15  Jim Meyering  <meyering@lucent.com>
1342
1343         * man/Makefile.maint ($(man_MANS)): Remove $@-t1.
1344
1345 2000-02-13  Jim Meyering  <meyering@lucent.com>
1346
1347         * tests/Fetish.pm (run_tests): Discard stderr.
1348         Reverse diff args, so `expected' is last, as in mk-script.
1349
1350 2000-02-12  Jim Meyering  <meyering@lucent.com>
1351
1352         * tests/mk-script: Invoke `diff' when differences are found.
1353         * tests/Fetish.pm (run_tests): Likewise.
1354
1355 2000-02-09  Jim Meyering  <meyering@lucent.com>
1356
1357         * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard
1358         to go along with corrected autoconf test:  Reported by Gaël Quéri.
1359
1360 2000-02-05  Jim Meyering  <meyering@lucent.com>
1361
1362         * Version 2.0f.
1363
1364         * src/who.c: Use UT_USER in place of hard-coded `->ut_name' here, too.
1365         * src/pinky.c: Likewise.
1366         Reported by Tom Tromey and Andreas Schwab.
1367         * src/uptime.c (print_uptime): Likewise.
1368         * src/users.c (list_entries_users): Likewise.
1369
1370 2000-01-30  Jim Meyering  <meyering@lucent.com>
1371
1372         * Version 2.0e.
1373
1374         * src/su.c (correct_password): Guard with `HAVE_GETSPNAM &&
1375         HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'.
1376
1377         * po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c,
1378         and lib/same.c.
1379
1380 2000-01-29  Jim Meyering  <meyering@lucent.com>
1381
1382         * configure.in: Move library-related tests into m4/lib-check.m4.
1383         Remove lib-check for cposix now that we use m4/isc-posix.m4.
1384
1385         * src/seq.c: Back out most of the 2000-01-21 and 01-22 changes.
1386         [Instead, merely give examples showing how to accomplish the same
1387         task with fewer limitations using existing tools. ]
1388         Suggestion from Bruno Haible.
1389         (valid_format): Rename from check_format.
1390         * tests/seq/basic: Remove associated tests and add two equal-width ones.
1391
1392         * tests/stty/row-col-1: Set COLUMNS envvar, just to be safe.
1393
1394 2000-01-28  Jim Meyering  <meyering@lucent.com>
1395
1396         * src/stty.c (wrapf): Emit a newline only if 0 < current_col.
1397         (screen_columns): Use xstrtol, not atoi.
1398         If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.
1399
1400 2000-01-23  Jim Meyering  <meyering@lucent.com>
1401
1402         * configure.in (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
1403         AC_SUBST these not here, but rather in m4/, so that the now-shared
1404         lib/Makefile.am are all the same.
1405         (AC_CHECK_FUNCS): Remove check for utmpname, since it's already
1406         in m4/prereq.m4.
1407         Remove many function checks (moved to m4/.)
1408
1409         * configure.in (AM_FUNC_STRTOD): Move to m4/.
1410         (AC_SUBST(POW_LIBM)): Likewise.
1411
1412         * configure.in (SEQ_LIBM): Remove AC_SUBST of a constant.
1413         * src/Makefile.am (seq_LDADD): Add -lm rather than constant $(SEQ_LIBM).
1414
1415 2000-01-22  Jim Meyering  <meyering@lucent.com>
1416
1417         * src/sys2.h [! HAVE_DECL_STRTOUL]: Declare strtoul.
1418         [! HAVE_DECL_STRTOULL]: Declare strtoull.
1419         Required for some AIX systems.  Reported by Christian Krackowizer.
1420
1421         * configure.in (ALL_LINGUAS): Add Slovenian (sl).
1422         (AC_CHECK_HEADERS): Move these checks into m4/.
1423
1424         * src/seq.c (enum Format_type): Declare.
1425         (format_type): New global to take place of intconv.
1426         (format_str): Move global declaration...
1427         (main): ... to here.
1428         (check_format): Rename parameter to avoid shadowing global.
1429         (DO_printf): New macro.
1430         (main): Use it.
1431         Topologically sort the functions and remove fwd declarations.
1432
1433 2000-01-21  Bruno Haible  <haible@linuix.math.u-bordeaux.fr>
1434
1435         Add support for octal and hexadecimal output.
1436         * seq.c (intconv): New variable.
1437         (usage): Update.
1438         (main): Call scan_arg instead of scan_double_arg. Call check_format
1439         before scan_arg.
1440         (scan_int_arg, scan_arg): New functions.
1441         (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
1442         (print_numbers): If intconv is true, pass an int argument to printf.
1443
1444 2000-01-21  Jim Meyering  <meyering@lucent.com>
1445
1446         * configure.in (ALL_LINGUAS): Add Galician (gl).
1447
1448 2000-01-16  Jim Meyering  <meyering@lucent.com>
1449
1450         * lib/Makefile.am: Sync with fileutils/lib/Makefile.am.
1451
1452         * src/date.c (usage): Correct error in %V description.
1453         From Wolfram Kleff.
1454
1455         * configure.in: Remove jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
1456         AM_FUNC_GETLOADAVG, jm_SYS_PROC_UPTIME, AM_SYS_POSIX_TERMIOS,
1457         jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.
1458
1459 2000-01-15  Jim Meyering  <meyering@lucent.com>
1460
1461         * configure.in (AC_REPLACE_FUNCS): Remove gethostname, getusershell,
1462         memcpy, and memset.  Now that's done in m4/.
1463         Remove these, too: stime strcspn stpcpy strstr strtol strtoul.
1464
1465 2000-01-12  Jim Meyering  <meyering@lucent.com>
1466
1467         * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST.
1468
1469 2000-01-11  Jim Meyering  <meyering@lucent.com>
1470
1471         Sync lib/ directories of sh-utils, and textutils.
1472
1473         * lib/Makefile.am (libfetish_a_SOURCES): Add diacrit.c, hard-locale.c,
1474         linebuffer.c, md5.c, memcasecmp.c, memcoll.c, obstack.c, safe-read.c
1475         (noinst_HEADERS): Add bumpalloc.h, diacrit.h, hard-locale.h,
1476         linebuffer.h, md5.h, memcasecmp.h, memcoll.h, obstack.h, safe-read.h.
1477
1478         * lib/Makefile.am: s/su/fetish/
1479         * src/Makefile.am: s/libsu/libfetish/
1480
1481 2000-01-10  Jim Meyering  <meyering@lucent.com>
1482
1483         * Version 2.0d.
1484
1485         * src/Makefile.am (sleep_LDADD): Add @POW_LIBM@, for systems that use
1486         lib/strtod.c and need -lm to resolve its pow reference.
1487
1488 2000-01-07  Jim Meyering  <meyering@ascend.com>
1489
1490         * Version 2.0c.
1491
1492         * tests/basename/Makefile.am (TESTS_ENVIRONMENT): Add `pwd`/ prefix
1493         to exported PATH value (though not strictly necessary, here).
1494         * tests/factor/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1495         * tests/seq/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1496         * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1497
1498 2000-01-06  Paul Eggert  <eggert@set.twinsun.com>
1499
1500         * tar/lib/getdate.y: Sync tm_diff with the GNU C Library.
1501         (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN.  All uses changed.
1502         (tm_diff): Renamed from difftm.  All uses changed.
1503         Replace body with that taken from GNU C Library 2.1.3pre1.
1504         (get_date): Prefer tm_gmtoff to tm_diff if available.
1505
1506 2000-01-05  Paul Eggert  <eggert@twinsun.com>
1507
1508         Minor code cleanup.
1509         * src/sleep.c (clock_get_realtime): Return argument, for convenience.
1510         (main): Use this to simplify main sleep loop.
1511
1512 2000-01-05  Jim Meyering  <meyering@ascend.com>
1513
1514         Some systems lack a definition of struct timespec (AIX, Ultrix)
1515         Reported by Christian Krackowizer.
1516         * lib/Makefile.am (noinst_HEADERS): Add nanosleep.h.
1517         * lib/nanosleep.h: New file.
1518         * lib/nanosleep.c: Include it.
1519         Don't include time.h or sys/time.h here.
1520         * src/sleep.c: Include it.
1521         (AUTHORS): Add Paul Eggert.
1522
1523 2000-01-04  Jim Meyering  <meyering@ascend.com>
1524
1525         * lib/nanosleep.c: Include both time.h and sys/time.h only
1526         #if TIME_WITH_SYS_TIME.
1527
1528 2000-01-03  Paul Eggert  <eggert@twinsun.com>
1529
1530         Fix some porting and rounding problems with the new `sleep' code.
1531
1532         * configure.in (AC_CHECK_HEADERS): Add fenv.h.
1533         (FESETROUND_LIBM): New macro.
1534
1535         * lib/xstrtod.c: Add #pragma STDC FENV_ACCESS ON if C99.
1536         * src/sleep.c: Likewise.
1537
1538         * src/Makefile.am (sleep_LDADD, sleep_DEPENDENCIES): New macros.
1539
1540         * src/sleep.c (<fenv.h>): Include if available.
1541         (main): Always round floating-point interval calculations upwards,
1542         as we must sleep for at least the specified time.
1543         Do the right thing with NaNs.
1544
1545         (main): Sleep forever if the time calculations overflow.
1546         (apply_suffix): Don't assert that *s <= TIME_T_MAX.
1547
1548         (clock_get_realtime): Fix typo; address was improperly taken.
1549
1550 2000-01-02  Jim Meyering  <meyering@ascend.com>
1551
1552         * Version 2.0b.
1553
1554         * lib/Makefile.in: Regenerate.
1555
1556         * Version 2.0a.
1557
1558 1999-12-26  Jim Meyering  <meyering@ascend.com>
1559
1560         * lib/nanosleep.c (nanosleep): New file.
1561
1562 1999-12-23  Jim Meyering  <meyering@ascend.com>
1563
1564         * src/sleep.c (USE_CLOCK_GETTIME): Define.
1565         [USE_CLOCK_GETTIME]: Include sys/time.h.
1566         (timespec_subtract): New function.
1567         (clock_get_realtime): New function.
1568         (sighandler): Remove function.
1569         (main): Reimplement again, using nanosleep and clock_gettime.
1570
1571         * configure.in: Remove check for gettimeofday.
1572         Now it's in m4/jm-macros.m4
1573
1574         * man/Makefile.summ: Remove now-unused summaries.
1575
1576 1999-12-22  Jim Meyering  <meyering@ascend.com>
1577
1578         * lib/getdate.y (get_date): Fix typo in time_t overflow test.
1579         From Michael Stone.
1580
1581         * tests/date/Test.pm (regress-1):  New test for the above.
1582
1583 1999-12-18  Jim Meyering  <meyering@ascend.com>
1584
1585         * src/who.c (print_entry): Correct do_lookup test so that who
1586         prints whatever host information it has, even without --lookup.
1587         Reported by Bill Peters.
1588
1589 1999-12-12  Jim Meyering  <meyering@ascend.com>
1590
1591         Move 120+ lines of stat.h-related macros from system.h (not shared)
1592         to sys2.h, which is shared between fileutils, sh-utils, textutils.
1593         * src/system.h: Move them from here...
1594         * src/sys2.h: ... to here.
1595
1596 1999-11-27  Jim Meyering  <meyering@ascend.com>
1597
1598         Rewrite to allow fractional seconds and to handle SIGCONT.
1599         * src/sleep.c (main): Rewrite.
1600         (sighandler): New function.
1601         (apply_suffix): New function.
1602         (timeval_subtract): New function.
1603         Reported by Raul Miller.
1604
1605         * src/sleep.c (argdecode): Move definition to precede use.
1606         Remove prototype.
1607         (usage): Add elipses to show that sleep allows more than one argument.
1608
1609 1999-11-22  Jim Meyering  <meyering@ascend.com>
1610
1611         * lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c.
1612
1613 1999-11-09  Jim Meyering  <meyering@ascend.com>
1614
1615         * src/expr.c (NEW): Undefine to avoid warning about redefinition.
1616         (NEW): Redefine in terms of XMALLOC.
1617
1618         * lib/xalloc.h (XMALLOC): Correct misnamed macro parameter name:
1619         s/N_bytes/N_items/.
1620         (XCALLOC): Likewise.
1621         (XREALLOC): Likewise.
1622
1623 1999-11-05  Jim Meyering  <meyering@ascend.com>
1624
1625         * src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated
1626         HAVE_ST_BLOCKS.
1627
1628         * configure.in: Move some type/header/member tests into
1629         m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of
1630         fileutils, textutils, and sh-utils.
1631
1632 1999-11-01  Jim Meyering  <meyering@ascend.com>
1633
1634         * lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
1635
1636 1999-10-07  Jim Meyering  <meyering@ascend.com>
1637
1638         * configure.in (ALL_LINGUAS): Add Japanese (ja).
1639
1640 1999-10-04  Jim Meyering  <meyering@ascend.com>
1641
1642         * depcomp: New file, for automake's new dependency support.
1643         * missing: New version, from automake's user-dep-gen-branch.
1644
1645 1999-09-28  Jim Meyering  <meyering@ascend.com>
1646
1647         * src/system.h: Update from the system.h from fileutils.
1648         Now they're finally almost identical...
1649
1650 1999-09-09  Jim Meyering  <meyering@ascend.com>
1651
1652         * src/Makefile.am (EXTRAdir): Remove unused variable.
1653         (installed_su): Use `$(DESTDIR)$(bindir)' in place of $(bindir).
1654         (install-exec-local): Likewise.
1655         (.sh): Substitute `$(bindir)' rather than @bindir@.
1656         Based on a patch from Andreas Schwab.
1657
1658 1999-09-08  Andreas Schwab  <schwab@suse.de>
1659
1660         * tests/nice: Instead of failing, exit with 77 if running niced.
1661
1662 1999-09-08  Jim Meyering  <meyering@ascend.com>
1663
1664         * src/su.c: Remove declaration of xstrdup.
1665
1666 1999-09-02  Jim Meyering  <meyering@ascend.com>
1667
1668         * src/expr.c: Remove xstrdup declaration.
1669         * src/date.c: Likewise.
1670         * src/pathchk.c: Likewise.
1671         * src/su.c: Likewise.
1672
1673 1999-08-29  Jim Meyering  <meyering@ascend.com>
1674
1675         * tests/nice: Use `nice' instead of $nice.
1676         * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend ../src to PATH so
1677         the above works.
1678
1679         * src/env.c (main): Call exit explicitly to avoid warning from gcc.
1680         * src/nice.c (main): Likewise.
1681         Include "xstrtol.h".
1682         (isinteger): Remove function and prototype.
1683         (main): Use xstrtol in place of atoi.  Remove associated FIXME comments.
1684
1685         * configure.in (AC_YACC): Remove use, now that we require bison.
1686
1687         * tests/date/Test.pm (test_vector): Add a test for the Risks-reported
1688         problem with syntax like this: Nov 11 1996.
1689
1690         * lib/getdate.y (get_date): Rename outermost local `probe' to `quarter'.
1691         (get_date): Rename latter local `tm' to probe_tm.
1692
1693         * lib/getdate.y (relative_time_table): Change `type' of `THIS' from
1694         tMINUTE_UNIT to tUNUMBER.  From Urs Thuermann.
1695         * tests/date/Test.pm (test_vector): Add tests for use of `this'.
1696
1697 1999-08-25  Jim Meyering  <meyering@ascend.com>
1698
1699         * man/Makefile.summ (seq-summary): Define.
1700         * man/Makefile.am (man_MANS): Add seq.1.
1701         Reported by Dirk-Jan Faber.
1702
1703 1999-08-23  Jim Meyering  <meyering@ascend.com>
1704
1705         * src/pathchk.c (longopts): Restore accidentally-removed entry for
1706         `--portability' long option.
1707         * src/chroot.c (usage): Correct --help message.
1708         * src/hostid.c (usage): Likewise.
1709         * src/hostname.c (usage): Likewise.
1710         * src/logname.c (usage): Likewise.
1711         * src/nice.c (usage): Likewise.
1712         * src/printenv.c (usage): Likewise.
1713         * src/sleep.c (usage): Likewise.
1714         * src/stty.c (usage): Likewise.
1715         Reported by Daniel Bergstrom.
1716
1717 1999-08-22  Jim Meyering  <meyering@ascend.com>
1718
1719         * src/sys2.h (ATTRIBUTE_NORETURN): Define.
1720         * src/test.c: Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.
1721         (NO_RETURN_ATTRIBUTE): Remove definition.
1722
1723         * src/su.c (run_shell): Declare with gcc's noreturn attribute.
1724         Use an explicit exit(1) rather than doing that through error.
1725
1726         * src/sys2.h (IF_LINT): Define new macro.
1727         * src/date.c (batch_convert): Use IF_LINT macro instead of #ifdef lint.
1728         * src/pathchk.c (validate_path): Likewise.
1729
1730 1999-08-21  Jim Meyering  <meyering@ascend.com>
1731
1732         * src/hostid.c (usage): Remove the ` [-v]' from the Usage: line.
1733         Reported by Daniel Bergstrom.
1734
1735 1999-08-17  Jim Meyering  <meyering@ascend.com>
1736
1737         * tests/stty/input-tty: New file, containing code factored out of
1738         the two test scripts.  Mention `at' and `batch' in addition to `rsh'.
1739         * tests/stty/basic-1: Source it.
1740         * tests/stty/row-col-1: Source it.
1741         * tests/stty/Makefile.am (EXTRA_DIST): Add input-tty.
1742
1743 1999-08-14  Jim Meyering  <meyering@ascend.com>
1744
1745         * Version 2.0.
1746
1747         * tests/stty/basic-1: Fail-77 if stdin is not a tty.
1748         * tests/stty/row-col-1: Likewise.
1749         Suggestion from Volker Borchert.
1750
1751 1999-08-07  Jim Meyering  <meyering@ascend.com>
1752
1753         * Version 1.16m.
1754
1755         * Makefile.maint (po-check): New rule.
1756         (alpha): Make it.
1757
1758         * po/POTFILES.in: Add the following from lib/: argmatch.c, closeout.c,
1759         error.c, getopt.c, human.c, long-options.c, version-etc.c, xmalloc.c.
1760         Add these from src/: false.c, hostid.c, true.c.
1761
1762         * lib/getdate.y (OtherTable[]): Use tDAY_UNIT for `tomorrow,'
1763         `yesterday,' `today,' and `now' rather than tMINUTE_UNIT.  Of course
1764         with correspondingly smaller numbers for tomorrow and yesterday.
1765         This change does not change the way the code works, since the
1766         grammar rules for the two symbols are analogous.
1767         From Tadayoshi Funaba.
1768
1769 1999-08-04  Jim Meyering  <meyering@ascend.com>
1770
1771         false and true once again generate --help and --version output
1772         * src/true.c: Honor --help and --version once again, bug ignore
1773         those options when POSIXLY_CORRECT is set.
1774         * src/false.c: Fail even for --help and --version.
1775         * src/Makefile.am (false.c): Generate automatically from true.c.
1776         (BUILT_SOURCES): Add false.c.
1777         * man/Makefile.am (EXTRA_DIST): Remove false.1in and true.1in.
1778         * man/Makefile.summ: Remove the rules added on 1999-07-31.
1779         * man/Makefile.maint: Likewise.
1780         * man/true.1in: Removed.
1781         * man/false.1in: Removed.
1782
1783         * configure.in: Remove getline-testing code.  Now it's in m4/.
1784
1785 1999-08-01  Jim Meyering  <meyering@ascend.com>
1786
1787         * src/date.c (usage): Correct description of %S; (00..60, not 00..61).
1788         From Ken Pizzini.
1789
1790 1999-08-01  Paul Eggert  <eggert@twinsun.com>
1791
1792         * configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1793
1794 1999-07-31  Jim Meyering  <meyering@ascend.com>
1795
1796         * Version 1.16l.
1797
1798         false and true are now C programs rather than shell scripts
1799         * src/true.c: New file.
1800         * src/false.c: New file.
1801         * src/true.sh: Removed.
1802         * src/false.sh: Removed.
1803         * src/Makefile.am (bin_PROGRAMS): Add true and false.
1804         (bin_SCRIPTS): Remove true and false.
1805         (EXTRA_DIST): Remove false.sh and true.sh.
1806         * man/true.1in: New file.
1807         * man/false.1in: New file.
1808         * man/Makefile.am (EXTRA_DIST): Remove extra (shadowed) assignment.
1809         (EXTRA_DIST): Add false.1in and true.1in.
1810         * man/Makefile.maint (helpful-men): Define.
1811         * man/Makefile.summ ($(helpless-men)): New manual-generating rules to
1812         accommodate the fact that false and true no longer accept --help.
1813         * doc/sh-utils.texi: Include a couple of sentences from the
1814         truefalse package.
1815         Prompted by Christi Alice Scarborough's truefalse package.
1816
1817 1999-07-30  Jim Meyering  <meyering@ascend.com>
1818
1819         * configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR).
1820
1821 1999-07-26  Jim Meyering  <meyering@ascend.com>
1822
1823         * src/tee.c (tee): Convert from open/fds to using fopen/streams for
1824         output, in preparation for addition of new compression option.
1825
1826 1999-07-21  Jim Meyering  <meyering@ascend.com>
1827
1828         * tests/stty/basic-1 (options): Avoid Solaris' broken /usr/ucb/tr by
1829         removing offending use of tr altogether and removing hyphens with sed.
1830         Reported by Kaveh Ghazi.
1831
1832 1999-06-01  Volker Borchert  <bt@teknon.de>
1833
1834         * tests/Makefile.am: Make envvar-check depend on check-recursive rather
1835         than on `check' so that its tests are performed before any real tests.
1836
1837 1999-07-15  Jim Meyering  <meyering@ascend.com>
1838
1839         * src/false.sh: Always exit unsuccessfully, even with
1840         --help and --version.  Suggested by Felix Lee.
1841
1842 1999-07-12  Jim Meyering  <meyering@ascend.com>
1843
1844         * src/sys2.h (mempcpy): Define only if not already defined.
1845         Reported by Collin Rogowski.
1846
1847 1999-05-27  Volker Borchert  <bt@teknon.de>
1848
1849         * tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix.
1850
1851 1999-05-25  Jim Meyering  <meyering@ascend.com>
1852
1853         * tests/stty/basic-1: Fix non-portable use of `tr' that caused
1854         this test to fail when run with a SysV-style tr.
1855         Based on a patch from Kaveh Ghazi.
1856
1857 1999-05-21  Jim Meyering  <meyering@ascend.com>
1858
1859         * Version 1.16k.
1860         * configuration fixes: see m4/ChangeLog.
1861
1862 1999-05-16  Jim Meyering  <meyering@ascend.com>
1863
1864         * Version 1.16j.
1865
1866         * configure.in (AC_SEARCH_LIBS): Set LIB_CRYPT to $ac_cv_search_crypt,
1867         to go along with the new macro in m4/search-libs.m4.
1868
1869 1999-05-14  Jim Meyering  <meyering@ascend.com>
1870
1871         * lib/getugroups.c (getugroups): Don't dereference a null pointer when
1872         running `id USER' for some USER that is listed on the RHS in /etc/group.
1873         From Sander van Malssen.
1874         Add some curly braces, use STREQ, reverse the sense of a test
1875         and use `continue' to save a level of nesting.
1876
1877         * tests/Makefile.am (envvar-check): Renamed from check-local.
1878         (check): Depend on envvar-check so the envvar check is performed
1879         before all other tests.  Reported by Volker Borchert.
1880         * tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects,
1881         so CDPATH is mentioned in the message.  Reported by Volker Borchert.
1882
1883 1999-05-10  Jim Meyering  <meyering@ascend.com>
1884
1885         * src/uptime.c (AUTHORS): add Kaveh.
1886
1887         Expand each `&' character in the gecos field.
1888         * src/pinky.c (count_ampersands): New function.
1889         (create_fullname): New function.
1890         (print_entry): Use create_fullname here.
1891         (print_long_entry): Use it here, too.
1892         From Kaveh Ghazi.
1893
1894 1999-05-09  Jim Meyering  <meyering@ascend.com>
1895
1896         * lib/regex.c: Update from libc.
1897
1898         * Version 1.16i.
1899
1900         * configure.in: Clean up checks for libraries so that we don't add
1901         -lshadow unless necessary.  Reported by Joseph S. Myers.
1902
1903 1999-05-05  Jim Meyering  <meyering@ascend.com>
1904
1905         Add definitions to help read utmpx on systems with utmpname.
1906         * lib/readutmp.h (UTMP_NAME_FUNCTION): Define.
1907         (SET_UTMP_ENT): Likewise.
1908         (GET_UTMP_ENT): Likewise.
1909         (END_UTMP_ENT): Likewise.
1910         * lib/readutmp.c (read_utmp): Use the new definitions.
1911         From Kaveh Ghazi.
1912
1913         * src/date.c (show_date): Change an automatic aggregate initializer
1914         to be a static one.  For SunOS4's cc.  From Kaveh Ghazi.
1915
1916 1999-05-03  Jim Meyering  <meyering@ascend.com>
1917
1918         * configure.in: Remove duplicate use of jm_FUNC_GNU_STRFTIME.
1919         Kaveh Ghazi reported that strftime.o was listed twice in the command
1920         to build libsu.a.
1921
1922 1999-05-02  Jim Meyering  <meyering@ascend.com>
1923
1924         * Version 1.16h.
1925
1926         * src/hostname.c (main): Give a better diagnostic when we fail to
1927         set the hostname.
1928
1929         * man/Makefile.summ (hostid-summary): Use correct description.
1930         Reported by Joseph S. Myers.
1931
1932         * lib/readutmp.c (read_utmp): Ignore the return value from utmpname.
1933
1934 1999-04-30  Jim Meyering  <meyering@ascend.com>
1935
1936         * src/dirname.c (main): Manually handle `--', since we no longer
1937         call getopt.  Reported by Joseph S. Myers.
1938         * src/basename.c (main): Likewise.
1939         * src/factor.c (main): Likewise.
1940
1941 1999-04-25  Jim Meyering  <meyering@ascend.com>
1942
1943         * src/seq.c (main): Handle the case in which seq is given no args.
1944         Reported by John Gotts.
1945         (main): Revert last change.
1946         Instead, loop on `optind < argc' to protect use of argv[optind].
1947
1948         * lib/human.c <inttypes.h>: Don't include it here.
1949         * lib/human.h <inttypes.h>: Include it here instead.
1950         <config.h>: Include it here too.
1951         Reported by Andreas Jaeger.
1952
1953         * src/nice.c [NDEBUG]: Remove definition.
1954         Reported by Andreas Jaeger.
1955
1956 1999-04-24  Jim Meyering  <meyering@ascend.com>
1957
1958         * src/who.c (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
1959
1960         * Version 1.16g.
1961
1962         * configure.in: Use AC_CANONICAL_HOST.
1963
1964 1999-04-20  Jim Meyering  <meyering@ascend.com>
1965
1966         Update factor to use `uintmax_t'.
1967         * src/factor.c <xstrtol.h>: Include this, not xstrtoul.h.
1968         <human.h>: Include.
1969         Use uintmax_t in place of unsigned long.
1970         Use human_readable to convert to strings for printing.
1971         * lib/xstrtoumax.c: New file.
1972         * lib/human.c: New file.
1973         * lib/human.h: New file.
1974         * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c.
1975         (noinst_HEADERS): Add human.h.  Remove xstrtoul.h.
1976
1977 1999-04-19  Jim Meyering  <meyering@ascend.com>
1978
1979         * src/seq.c (main): Restore `+' in getopt_long string.  Otherwise,
1980         commands like `seq 10 -2 0' wouldn't work.  From Andreas Schwab.
1981         * tests/seq/basic: Add tests for that.
1982
1983 1999-04-17  Jim Meyering  <meyering@ascend.com>
1984
1985         * tests/seq: New directory and basic tests.
1986         * tests/Makefile.am (SUBDIRS): Add seq.
1987         * configure.in (AC_OUTPUT): Add tests/seq/Makefile.
1988
1989 1999-04-17  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
1990
1991         * configure.in: Check for localeconv.
1992
1993         * src/seq.c (decimal_point): New variable.
1994         (main): Set it to locale's decimal point.  Fix recognition of
1995         negative number as argument.
1996         (get_width_format): Correctly handle a negative min_val or step
1997         when computing fraction width.  Use decimal_point.
1998
1999 1999-04-08  Jim Meyering  <meyering@ascend.com>
2000
2001         1999-03-25  James R. Van Zandt  <jrv@vanzandt.mv.com>
2002         * doc/sh-utils.texi (Options for date): Document --iso-8601
2003         * src/date.c: Accept new option: --iso-8601.
2004         * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c.
2005         (noinst_HEADERS): Add argmatch.h and quotearg.h.
2006         * lib/argmatch.c: New file.
2007         * lib/argmatch.h: New file.
2008         * lib/quotearg.c: New file.
2009         * lib/quotearg.h: New file.
2010
2011 1999-03-30  Jim Meyering  <meyering@ascend.com>
2012
2013         * src/sys2.h: Include "closeout.h" and "version-etc.h"
2014
2015         * src/*.c (PROGRAM_NAME, AUTHORS): Define and use.
2016
2017         * src/date.c: No longer include long-options.h.
2018         [long_options]: Add entries for --help and --version.
2019         Remove parse_long_options call.
2020         (main) [getopt switch]: Add a case for each of --help and --version.
2021         * src/env.c: Likewise.
2022         * src/id.c: Likewise.
2023         * src/pinky.c: Likewise.
2024         * src/seq.c: Likewise.
2025         * src/su.c: Likewise.
2026         * src/sys2.h: Likewise.
2027         * src/tee.c: Likewise.
2028         * src/tty.c: Likewise.
2029         * src/uname.c: Likewise.
2030         * src/who.c: Likewise.
2031
2032 1999-03-29  Jim Meyering  <meyering@ascend.com>
2033
2034         * configure.in (GNU_PACKAGE): Remove related code -- now it's in
2035         the catch-all for shared autoconf code, m4/jm-macros.m4.
2036         (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
2037         this instead.
2038
2039 1999-03-28  Jim Meyering  <meyering@ascend.com>
2040
2041         * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME.
2042
2043 1999-03-28  Paul Eggert  <eggert@twinsun.com>
2044
2045         * lib/getdate.y (get_date): Reuse tm_isdst of first localtime
2046         call; this is an improvement on a bug fix suggested by
2047         martin@dresden.nacamar.de.  Do not assume that localtime and
2048         gmtime return non-null.
2049
2050 1999-03-27  Jim Meyering  <meyering@ascend.com>
2051
2052         * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show
2053         that only one of --help or --version is recognized at a time.
2054         Reported by Meelis Roos.
2055         * src/true.sh: Likewise.
2056
2057         * src/id.c (print_user): Use uid_t instead of int.
2058         (print_group): Use gid_t instead of int.
2059         From John Bley.
2060
2061 1999-03-26  Jim Meyering  <meyering@ascend.com>
2062
2063         * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
2064         (noinst_HEADERS): Add version-etc.h.
2065
2066 1999-03-20  Jim Meyering  <meyering@ascend.com>
2067
2068         * src/nohup.sh: Don't modify PATH just to get GNU nice.  Instead,
2069         try to find an absolute path for GNU nice.  From Bruno Haible.
2070
2071 1999-03-19  Jim Meyering  <meyering@ascend.com>
2072
2073         * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of
2074         open-coding it.
2075
2076 1999-03-17  Jim Meyering  <meyering@ascend.com>
2077
2078         * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk).
2079
2080 1999-03-13  Jim Meyering  <meyering@ascend.com>
2081
2082         * lib/basename.c (base_name): If NAME is all slashes, return `/' (in
2083         conformance with the single unix spec).  Reported by Peter Moulder.
2084
2085 1999-03-10  Jim Meyering  <meyering@ascend.com>
2086
2087         * src/uptime.c: Declare getloadavg so I can build with -Werror.
2088
2089         * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread.
2090
2091         * lib/canon-host.c (canon_host): Don't use he->h_addr directly.
2092         Based on a patch from Savochkin Andrey Vladimirovich.
2093
2094 1999-03-09  Jim Meyering  <meyering@ascend.com>
2095
2096         Running `id USER' doesn't report any groups if there is no entry
2097         for USER in /etc/group.  Always include the one from /etc/passwd.
2098         * src/id.c (xgetgroups): Take new parameter, gid, and pass
2099         it to getugroups.
2100         (print_group_list): Call getpwuid and adjust calls to xgetgroups
2101         to include new parameter.
2102         * lib/getugroups.c (getugroups): Take new parameter, gid.
2103         Add gid to the list of groups.
2104         From Ulrich Drepper.
2105         * lib/getgroups.c (getgroups): Protoize.
2106
2107 1999-03-08  Jim Meyering  <meyering@ascend.com>
2108
2109         * tests/basename: New directory and tests.
2110         * tests/Makefile.am (SUBDIRS): Add basename.
2111         * configure.in (AC_OUTPUT): Add tests/basename/Makefile.
2112
2113 1999-03-06  Jim Meyering  <meyering@ascend.com>
2114
2115         * src/date.c (batch_convert): Use a `%s' format in error call,
2116         in case the argument string contains a `%'.
2117
2118         * man/Makefile.am (man_MANS): Add pinky.1.
2119         * man/Makefile.summ (pinky-summary): Define.
2120
2121         * src/date.c: Include long-options.h.
2122         [long_options]: Remove the "help" and "version" entries.
2123         Remove declarations of show_help and show_version.
2124         (main): Use parse_long_options, including author name(s).
2125         Remove the show_version and show_help blocks.
2126         * src/env.c: Likewise.
2127         * src/id.c: Likewise.
2128         * src/logname.c: Likewise.
2129         * src/pathchk.c: Likewise.
2130         * src/pinky.c: Likewise.
2131         * src/printenv.c: Likewise.
2132         * src/seq.c: Likewise.
2133         * src/sleep.c: Likewise.
2134         * src/su.c: Likewise.
2135         * src/tee.c: Likewise.
2136         * src/tty.c: Likewise.
2137         * src/uname.c: Likewise.
2138         * src/uptime.c: Likewise.
2139         * src/users.c: Likewise.
2140         * src/who.c: Likewise.
2141         * src/whoami.c: Likewise.
2142
2143 1999-03-04  Jim Meyering  <meyering@ascend.com>
2144
2145         * src/basename.c (main): Include author name argument in call to
2146         parse_long_options.
2147         * src/chroot.c: Likewise.
2148         * src/dirname.c: Likewise.
2149         * src/echo.c: Likewise.
2150         * src/expr.c: Likewise.
2151         * src/factor.c: Likewise.
2152         * src/hostid.c: Likewise.
2153         * src/hostname.c: Likewise.
2154         * src/nice.c: Likewise.
2155         * src/printf.c: Likewise.
2156         * src/pwd.c: Likewise.
2157         * src/stty.c: Likewise.
2158         * src/test.c: Likewise.
2159         * src/yes.c: Likewise.
2160
2161 1999-03-02  Jim Meyering  <meyering@ascend.com>
2162
2163         * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite.
2164
2165 1999-02-15  Jim Meyering  <meyering@ascend.com>
2166
2167         * src/stty.c (main): #ifdef-out unreachable code.
2168
2169         * src/pinky.c (usage): Add a one-line description.
2170         Suggestion from Karl Berry.
2171
2172 1999-02-08  Jim Meyering  <meyering@ascend.com>
2173
2174         * configure.in (ALL_LINGUAS): Add Czech (cs).
2175
2176 1999-02-07  Jim Meyering  <meyering@ascend.com>
2177
2178         * tests/stty/basic-1: Run all tests even if some fail.
2179         Don't use trap.
2180
2181         * tests/stty/basic-1: Use `stty', not $STTY.
2182         Fix typo in VERBOSE code: s/\$RM/stty/.
2183         * tests/stty/row-col-1: Likewise.
2184
2185         * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY.
2186
2187         Include stdio.h before defining `_unlocked' macros.
2188         * src/pinky.c: Include stdio.h.
2189         * src/uptime.c: Likewise.
2190         * src/users.c: Likewise.
2191         * src/who.c: Likewise.
2192         * lib/readutmp.c: Include stdio.h here...
2193         * lib/readutmp.h: ...not here.
2194         From Ulrich Drepper.
2195
2196         * Version 1.16f.
2197
2198         * Makefile.maint (my-distcheck): Don't depend on dist, now that this
2199         is hooked up to the distcheck rule.
2200         * Makefile.am (distcheck-hook): New target and rule -- link to shared
2201         rule, my-distcheck, in Makefile.maint.
2202
2203         * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
2204         group-member.m4, and just use this new macro.
2205
2206 1999-01-31  Jim Meyering  <meyering@ascend.com>
2207
2208         * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of
2209         @ifinfo so `makeinfo --html ...' works.  From Karl Berry.
2210
2211         * src/chroot.c (main): Call chdir ("/") after chroot.
2212         Suggestion from James Youngman.
2213
2214         * src/uptime.c (print_uptime): Use the C numeric locale for sscanf
2215         of /proc/uptime data, then restore.
2216         * lib/getloadavg.c: Include locale.h.
2217         [!HAVE_SETLOCALE]: Define-away setlocale.
2218         (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the
2219         `C' numeric locale.  Restore afterwards.
2220         Based on a suggestion from Thomas Quinot.
2221
2222         * lib/strtod.c: Protoize.
2223
2224 1999-01-30  Jim Meyering  <meyering@ascend.com>
2225
2226         * acconfig.h: Remove lots of now-unnecessary #undefs.
2227
2228         * configure.in: Require autoconf 2.13.
2229
2230         * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl.
2231
2232         * configure.in (ALL_LINGUAS): Add Greek (el).
2233         * po/el.po: New file.
2234
2235 1999-01-25  Jim Meyering  <meyering@ascend.com>
2236
2237         * src/date.c (usage): Remove static attribute.
2238         Move function be the first in the file.
2239         * src/env.c: Likewise.
2240         * src/id.c: Likewise.
2241         * src/nice.c: Likewise.
2242         * src/pathchk.c: Likewise.
2243         * src/tty.c: Likewise.
2244         * src/uname.c: Likewise.
2245
2246         * src/*.c (usage): Remove static attribute.
2247
2248 1999-01-14  Jim Meyering  <meyering@ascend.com>
2249
2250         * src/date.c: Include closeout.h.
2251         (main): Use close_stdout_status.
2252         * src/printenv.c: Likewise.
2253         * src/tty.c: Likewise.
2254
2255         * src/hostid.c: Include closeout.h.
2256         (main): Use close_stdout.
2257         * src/tee.c: Likewise.
2258
2259 1999-01-10  Jim Meyering  <meyering@ascend.com>
2260
2261         * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD,
2262         who_DEPENDENCIES): Remove definitions.
2263
2264         * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c.
2265         (lstat.c, stat.c): New rules.
2266
2267         * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver.
2268
2269         * configure.in: Require autoconf-2.13.
2270         Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries
2271         to resolve gethostbyname.
2272
2273 1998-12-22  Jim Meyering  <meyering@ascend.com>
2274
2275         * configure.in (ALL_LINGUAS): Add chinese (zh).
2276
2277 1998-12-13  Jim Meyering  <meyering@ascend.com>
2278
2279         * lib/putenv.c: Don't include stdlib.h and declare malloc and free.
2280         This works around Solaris 5.7's conflicting prototype.
2281         Reported by Karl Berry.
2282
2283         * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
2284         (stat.c): Likewise.
2285         (EXTRA_DIST): Add xstat.in.
2286         * lib/stat.c: Remove file.
2287         * lib/lstat.c: Remove file.
2288         * lib/xstat.in (xstat@): New file.
2289
2290 1998-12-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
2291
2292         * src/date.c (main): Arrange to exit unsuccessfully when stime fails.
2293
2294 1998-12-07  Jim Meyering  <meyering@ascend.com>
2295
2296         * configure.in (ALL_LINGUAS): Add Russian (ru).
2297
2298 1998-10-31  Jim Meyering  <meyering@ascend.com>
2299
2300         * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm.
2301         * tests/Fetish.pm: New file.
2302
2303         * tests/factor/Makefile.am: Rewrite to use new testing framework.
2304         * tests/factor/Test.pm: Remove file.
2305         * tests/factor/factor-tests: Remove file.
2306         * tests/factor/basic: New file (rewrite of Test.pm).
2307
2308         * acconfig.h (stat): New #undef.
2309
2310 1998-10-03  Jim Meyering  <meyering@ascend.com>
2311
2312         * man/Makefile.am: Switch to using help2man.
2313         (EXTRA_DIST): Add Makefile.summ.
2314
2315         * man/help2man: Invoke program with --manhelp option only if
2316         --name=STRING not specified.  Otherwise, this would fail with `yes'.
2317         * man/Makefile.summ: New file.
2318         * man/Makefile.maint: Include it.
2319         * man/help2man: New file.
2320         * man/GNUmakefile: New file.
2321         * man/Makefile.maint: New file.
2322         * man/*.x: New files.
2323         * man/*.1: Remove files.
2324
2325         * src/Makefile.am (install-exec-local): Change comments to use `##'
2326         to avoid automake warning.
2327
2328         * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/
2329         (libsu_a_SOURCES): s/posixtm.y/posixtm.y/
2330         (libsu_a_SOURCES): Remove getdate.c.  Add fnmatch.h.
2331
2332         * src/date.c (main): Update to use new version of posixtime.
2333         * lib/posixtm.c: New file.
2334         * lib/posixtm.h: New file.
2335         * lib/posixtm.y: Remove file.
2336
2337         * lib/fnmatch.c: New file. (unused)
2338         * lib/fnmatch.h: New file. (unused)
2339
2340 1998-09-27  Jim Meyering  <meyering@ascend.com>
2341
2342         * src/seq.c (main): Decrement optind when we find an `option' that
2343         looks like -N.  Reported by Clark Morgan.
2344
2345 1998-09-26  Jim Meyering  <meyering@ascend.com>
2346
2347         * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return
2348         LONGINT_INVALID for strings that begin with `-'.
2349
2350         * tests/factor/Test.pm: Add a test for negative argument.
2351         Tweak postprocessing framework.
2352
2353 1998-09-19  Jim Meyering  <meyering@ascend.com>
2354
2355         * src/stty.c (main): Revamp option processing, again.
2356         stty couldn't parse some of its options.
2357         * tests/stty/basic-1: New test.
2358         * tests/stty/Makefile.am (TESTS): Add basic-1.
2359
2360 1998-08-29  Jim Meyering  <meyering@ascend.com>
2361
2362         * src/su.c (longopts): Use corresponding short-option character
2363         in place of `1', and `NULL' in place of pointer in initialization.
2364
2365 1998-08-11  Jim Meyering  <meyering@ascend.com>
2366
2367         * src/uptime.c (usage): Correct description.  Reported by John Murphy.
2368
2369 1998-07-16  Jim Meyering  <meyering@ascend.com>
2370
2371         * lib/Makefile.am (noinst_HEADERS): Add lchown.h.
2372         * lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
2373         * lib/lchown.c: Include lchown.h.
2374
2375 1998-07-15  Jim Meyering  <meyering@ascend.com>
2376
2377         * src/seq.c (check_format): Add `5' to the list of digits.
2378         Reported by Donni Erpel.
2379
2380 1998-07-12  Jim Meyering  <meyering@ascend.com>
2381
2382         * tests/test: New directory and tests.
2383         * tests/Makefile.am (SUBDIRS): Add test.
2384         * configure.in (AC_OUTPUT): Add tests/test/Makefile.
2385
2386 1998-07-04  Jim Meyering  <meyering@ascend.com>
2387
2388         * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's
2389         automatically discovered by automake.
2390         (noinst_HEADERS): Remove unused safe-read.h.
2391
2392         * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in
2393         DISTCLEANFILES.
2394         (CLEANFILES): Add su, since we build it unconditionally, yet it's
2395         never put in @OPTIONAL_BIN_PROGS@.
2396
2397 1998-06-29  Jim Meyering  <meyering@ascend.com>
2398
2399         * src/uptime.c: Include system.h only after error.h and readutmp.h
2400         so we don't get redefinition warnings about getc, etc.
2401         * src/who.c: Likewise.
2402         * src/users.c: Likewise.
2403
2404 1998-06-28  Jim Meyering  <meyering@ascend.com>
2405
2406         * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
2407
2408 1998-06-06  Jim Meyering  <meyering@ascend.com>
2409
2410         * src/test.c (unary_operator): Fail if the operand to -t is not valid.
2411         (posixtest): Treat `test -t' the same as `test -t 1'.
2412
2413 1998-05-26  Jim Meyering  <meyering@ascend.com>
2414
2415         * src/test.c (two_arguments): Don't test argv[pos][2] if it's
2416         past end of string.
2417
2418 1998-05-25  Jim Meyering  <meyering@ascend.com>
2419
2420         * configure.in (_GNU_SOURCE): AC_DEFINE it here.
2421         * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
2422         [!_GNU_SOURCE]: Add #undef instead.
2423
2424 1998-05-16  Jim Meyering  <meyering@ascend.com>
2425
2426         * lib/readutmp.c (read_utmp): Add variant for systems that have
2427         the utmpname function.
2428         Ansideclify.
2429         * configure.in: Check for utmpname.
2430
2431         * configure.in (jm_MACROS): New wrapper macro.
2432         Remove uses of most jm_* macros.
2433
2434         * acconfig.h (chown): Add undef.
2435         (D_INO_IN_DIRENT): Likewise.
2436         (D_TYPE_IN_DIRENT): Likewise.
2437         (ssize_t): Likewise.
2438
2439         * lib/Makefile.am (EXTRA_DIST): Remove.  Automake groks the `LIBOBJS='
2440         lines from the m4/*.m4 macros, so the hack of including some
2441         custom-replaced C source file names here is no longer needed.
2442
2443 1998-05-03  Jim Meyering  <meyering@ascend.com>
2444
2445         * po/: Update from gettext-0.10.35.
2446         * intl/: Likewise.
2447         * configure.in: Remove use of AC_LINK_FILES.
2448         (AC_OUTPUT): Remove po/Makefile-generating sed command.
2449
2450 1998-05-02  Jim Meyering  <meyering@ascend.com>
2451
2452         * src/seq.c (check_format): Use ISDIGIT, not isdigit.
2453
2454 1998-04-26  Jim Meyering  <meyering@ascend.com>
2455
2456         * configure.in: Use jm_ASSERT.
2457         * acconfig.h: Add NDEBUG.
2458
2459 1998-04-13  Jim Meyering  <meyering@eng.ascend.com>
2460
2461         * lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
2462
2463 1998-04-09  Jim Meyering  <meyering@ascend.com>
2464
2465         * configure.in (AM_MAINTAINER_MODE): Remove it.
2466         No longer use AC_PATH_PROG to check for perl.
2467         (jm_PERL): Use this instead.
2468
2469 1998-04-04  Jim Meyering  <meyering@ascend.com>
2470
2471         * lib/readutmp.h (PARAMS): Define.
2472
2473         * tests/Makefile.am (SUBDIRS): Add stty.
2474         * tests/stty/row-col-1: New file.
2475         * tests/stty: New directory.
2476         * configure.in (AC_OUTPUT): Add tests/stty/Makefile.
2477
2478         * src/stty.c: Use STREQ in place of strcmp everywhere.
2479         (valid_options): Indent.
2480         Parenthesize assignment in while expr.
2481         (main): s/case 'f':/case 'F':/
2482         Tweak error messages to make them consistent.
2483         Remove #if-0'd block.
2484         Move dcl of `fdflags' into scope where it's used.
2485         Remove dcl of unused `cp'.
2486         Use "%s", not device_name, as the format string, in case the
2487         latter contains `%'.
2488
2489         [1998-03-31  Theodore Ts'o  <tytso@rsts-11.mit.edu>]
2490         * src/stty.c (valid_options): New function.
2491         (main): Fix broken options parsing that worked only
2492         by serendipity (getopt_long_only already parsed short options; no
2493         need to parse them again manually!).  Add support for the --file
2494         option, which allows the user to specify the device whose line
2495         settings are to be set.  This is necessary because POSIX ttys will
2496         block waiting for carrier detect to go high if CLOCAL is not set,
2497         unless the device is opened with the O_NONBLOCK flag.
2498         Unfortunately, the shell doesn't use this flag, so users lose.
2499         Opening the device in stty is the easist way to fix this.
2500         (speeds): Add support for 230400 and 460800 line speeds, which are
2501         supported by Linux.
2502
2503         * acconfig.h (uintmax_t): Add #undef.
2504
2505         * configure.in (jm_AC_HEADER_INTTYPES_H): Use it.
2506         (jm_AC_TYPE_UINTMAX_T): Use it.
2507         (jm_PREREQ): Use it.
2508
2509         * src/system.h: Sync with system.c from fileutils.
2510
2511         * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
2512         know about the m4/ subdirectory.
2513         * Makefile.maint (aclocal-files): Remove now-unnecessary (with
2514         automake-1.2h and the above change) aclocal-related rules and includes.
2515
2516 1998-04-03  Jim Meyering  <meyering@eng.ascend.com>
2517
2518         * lib/closeout.c: New file.
2519         * lib/closeout.h: New file.
2520         * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c.
2521         (noinst_HEADERS): Add closeout.h.
2522
2523 1998-03-27  Jim Meyering  <meyering@eng.ascend.com>
2524
2525         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
2526
2527 1998-03-26  Jim Meyering  <meyering@eng.ascend.com>
2528
2529         * src/date.c (batch_convert): Remove spurious space in error message.
2530         Reported by Karl Berry.
2531
2532 1998-03-13  Jim Meyering  <meyering@eng.ascend.com>
2533
2534         * lib/getugroups.c (getugroups): Don't add a group number if it
2535         would be a duplicate.  From Ulrich Drepper.
2536
2537 1998-02-22  Jim Meyering  <meyering@eng.ascend.com>
2538
2539         * tests/Makefile.am (EXTRA_DIST): Add mk-script.
2540         * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl.
2541         (mk_script): Set to ../mk-script.
2542         (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script.
2543         Remove @MAINT@ cruft.
2544         (Makefile.am): Likewise.
2545         Remove @MAINT@ cruft.  Now `missing' will explain the failure
2546         when people don't have Perl yet modify a file whose rebuilding
2547         would lead to the use of Perl.
2548
2549         * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@.
2550         (who_LDADD): Likewise.
2551         (pinky_DEPENDENCIES): Set to $(LDADD)
2552         (who_DEPENDENCIES): Likewise.
2553
2554 1998-02-20  Jim Meyering  <meyering@eng.ascend.com>
2555
2556         * lib/getdate.h: Removed.  Could cause confusion with an
2557         automake-generated `.y.h' rule.
2558         * lib/get-date.h: Renamed from getdate.h.
2559         * lib/getdate.y: s/getdate.h/get-date.h/
2560         * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
2561         * src/date.c: s/getdate.h/get-date.h/
2562
2563 1998-02-16  Jim Meyering  <meyering@eng.ascend.com>
2564
2565         * configure.in (jm_FUNC_LSTAT): Use it.
2566         (jm_FUNC_STAT): Use it.
2567         * acconfig.h: Add lstat.
2568         * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c.
2569
2570 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
2571
2572         * tests/nice: Fail immediately if this test is run with `nice'
2573         level different from zero.  Reported by Philippe De Muyter.
2574
2575 1998-02-03  Philippe De Muyter  <phdm@macqel.be>
2576
2577         * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
2578
2579         * lib/putenv.c (sys/types.h): Include to get size_t on some systems.
2580         (NULL): Define if needed.
2581
2582 1998-01-31  Jim Meyering  <meyering@na-net.ornl.gov>
2583
2584         * configure.in (AC_LFS): Use it.
2585
2586 1998-01-25  Jim Meyering  <meyering@na-net.ornl.gov>
2587
2588         * Makefile.maint: New file.
2589         * Makefile.am: Move rules common to textutils, fileutils, sh-utils
2590         into Makefile.maint.
2591         Include Makefile.maint.
2592         (EXTRA_DIST): Add Makefile.maint.
2593
2594 1998-01-03  Jim Meyering  <meyering@na-net.ornl.gov>
2595
2596         * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr.
2597
2598         * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
2599         those files will be built via the ANSI2KNR-filtering rules if necessary.
2600
2601 1997-12-25  Jim Meyering  <meyering@na-net.ornl.gov>
2602
2603         * configure.in: Remove AC_DEFINE of _GNU_SOURCE.
2604         * acconfig.h (_GNU_SOURCE): Define if not already defined.
2605         Put this code in @TOP@ section.
2606         (_GNU_SOURCE): Remove #undef.
2607
2608 1997-12-22  Jim Meyering  <meyering@na-net.ornl.gov>
2609
2610         * configure.in: AC_DEFINE _GNU_SOURCE.
2611         * acconfig.h: Add _GNU_SOURCE.
2612
2613 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
2614
2615         * src/date.c: s/__P/PARAMS/
2616         * src/env.c: Likewise.
2617         * src/expr.c: Likewise.
2618         * src/id.c: Likewise.
2619         * src/nice.c: Likewise.
2620         * src/pathchk.c: Likewise.
2621         * src/seq.c: Likewise.
2622         * src/sleep.c: Likewise.
2623         * src/stty.c: Likewise.
2624         * src/tee.c: Likewise.
2625         * src/test.c: Likewise.
2626         * src/tty.c: Likewise.
2627         * src/uname.c: Likewise.
2628
2629         * src/system.h: Merge in several things from fileutils' version of
2630         this file.
2631
2632         * src/factor.c: Don't include limits.h.
2633         (UINT_MAX): Don't define.
2634         (INT_MAX): Don't define.
2635         These are all done in system.h now.
2636         * src/hostname.c: Don't include limits.h.
2637         * src/id.c: Don't include limits.h or sys/param.h.
2638         * src/pathchk.c: Don't include limits.h.
2639         * src/su.c: Likewise.
2640
2641 1997-12-10  Jim Meyering  <meyering@na-net.ornl.gov>
2642
2643         * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying
2644         to strdup it.
2645         Patch from Dick Streefland.
2646
2647 1997-11-17  Paul Eggert  <eggert@twinsun.com>
2648
2649         * lib/mktime.c, lib/strftime.c (_REENTRANT): #define,
2650         as some hosts need this to declare localtime_r properly.
2651
2652 1997-11-15  Jim Meyering  <meyering@na-net.ornl.gov>
2653
2654         * intl/Makefile.in (distclean): Don't remove libintl.h here.
2655         * Makefile.am (DISTCLEANFILES): Remove it here instead.
2656
2657         * m4/Makefile.am (EXTRA_DIST): Add mktime.m4.
2658         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake.
2659
2660         * m4/strftime.m4: Check for %F format.
2661
2662 1997-11-14  Jim Meyering  <meyering@na-net.ornl.gov>
2663
2664         * m4/mktime.m4: Temporarily add a copy of this file from the automake
2665         distribution.
2666         (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME.
2667         (irix_6_4_bug): New function based on code from Ariel Faigon.
2668         (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's
2669         infinite looping mktime.
2670         Portability tweaks from Paul Eggert.
2671
2672 1997-11-13  Jim Meyering  <meyering@na-net.ornl.gov>
2673
2674         * lib/mktime.c: Update from FSF.
2675         * lib/strftime.c: Update from FSF.
2676         * m4/strftime.m4: Check for POSIX.2's %f format spec.
2677
2678 1997-11-12  Jim Meyering  <meyering@na-net.ornl.gov>
2679
2680         * configure.in (AC_CHECK_FUNCS): Add mempcpy.
2681         * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define.
2682         * src/date.c (batch_convert): Use mempcpy rather than stpcpy.
2683
2684 1997-11-09  Jim Meyering  <meyering@na-net.ornl.gov>
2685
2686         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r.
2687         * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r.
2688         (jm_FUNC_GNU_STRFTIME): Use new macro.
2689         (jm_FUNC_STRFTIME): New macro.  Likewise.
2690         Reported by Noel Cragg.
2691
2692 1997-11-02  Jim Meyering  <meyering@na-net.ornl.gov>
2693
2694         * acconfig.h: Add malloc and realloc.
2695
2696 1997-10-25  Jim Meyering  <meyering@na-net.ornl.gov>
2697
2698         * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc.
2699         (xcalloc): #ifdef-out unused function.
2700         (xrealloc): Remove code to work around deficient versions of realloc.
2701         Now we have an autoconf-enabled replacement version.
2702         (xmalloc): Remove code to work around deficient versions of malloc.
2703         Now we have an autoconf-enabled replacement version.
2704
2705         * configure.in (jm_FUNC_MALLOC): Use it.
2706         (jm_FUNC_REALLOC): Use it.
2707         * lib/Makefile.am (noinst_HEADERS): Add xalloc.h.
2708         (EXTRA_DIST): Add realloc.c.
2709         (EXTRA_DIST): Add malloc.c.
2710
2711         * lib/malloc.c: New file.
2712         * m4/malloc.m4: New file.
2713         * m4/Makefile.am (EXTRA_DIST): Add malloc.m4.
2714
2715         * lib/xalloc.h: New file.
2716         * lib/xmalloc.c: Updated from textutils.
2717
2718         * src/*.c: Remove old-style xmalloc and xrealloc decls.
2719         * src/system.h: Include xalloc.h.
2720         Remove dcls of xmalloc, xcalloc and xrealloc.
2721
2722 1997-10-23  Jim Meyering  <meyering@na-net.ornl.gov>
2723
2724         * Makefile.am (aclocal-files): Also depend on m4/Makefile.am.
2725
2726         * src/system.h [!HAVE_DECLARATION_FREE]: Declare free.
2727         [!HAVE_DECLARATION_MALLOC]: Declare malloc.
2728         [!HAVE_DECLARATION_REALLOC]: Declare realloc.
2729         [!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
2730         [!HAVE_DECLARATION_STRSTR]: Declare strstr.
2731         [STREQ]: Define.
2732         * src/date.c: Remove stpcpy decl.
2733         * src/expr.c: Remove strstr decl.
2734         * src/test.c [STREQ]: Undef then redefine.
2735         On some systems, strstr and stpcpy are macros, so declaring them
2736         unconditionally gets syntax errors.
2737         Reported by Mark M. Kettenis.
2738
2739         * configure.in: Use jm_CHECK_DECLS.
2740         * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4.
2741
2742 1997-10-22  Jim Meyering  <meyering@na-net.ornl.gov>
2743
2744         * m4/decl.m4: New file.
2745         * m4/check-decl.m4: New file.  New macro, jm_CHECK_DECLS.
2746
2747 1997-10-07  Jim Meyering  <meyering@na-net.ornl.gov>
2748
2749         * src/*.c: Update bug-reporting address.
2750         * src/*.sh: Update bug-reporting address.
2751
2752 1997-10-02  Jim Meyering  <meyering@na-net.ornl.gov>
2753
2754         * tests/date/Test.pm (test_vector): Remove _%Z from test `9'.
2755         The timezone string was too system dependent.
2756
2757 1997-09-25  Jim Meyering  <meyering@na-net.ornl.gov>
2758
2759         * src/echo.c: Make echo conform to POSIX.  By default, don't
2760         interpret backslash escape sequences.
2761         [V9_DEFAULT]: Don't #define.
2762         (usage): Document -e option.
2763         (main): Recognize options iff POSIXLY_CORRECT is not set.
2764         From Bruno Haible.
2765
2766 1997-09-19  Jim Meyering  <meyering@na-net.ornl.gov>
2767
2768         * lib/getusershell.c (IN_CTYPE_DOMAIN): Define.
2769         (ISSPACE): Define.
2770         (readname): Use ISSPACE, not isspace.
2771         * lib/strtod.c (IN_CTYPE_DOMAIN): Define.
2772         (ISSPACE): Define.
2773         (ISDIGIT): Define.
2774         (TOLOWER): Define.
2775         Use upper-case versions of ctype macros.
2776         * lib/strtol.c (IN_CTYPE_DOMAIN): Define.
2777         (ISSPACE): Guard with IN_CTYPE_DOMAIN.
2778         (ISDIGIT): Guard with IN_CTYPE_DOMAIN.
2779         (TOUPPER): Guard with IN_CTYPE_DOMAIN.
2780         From Bruno Haible.
2781
2782 1997-09-17  Jim Meyering  <meyering@na-net.ornl.gov>
2783
2784         * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT
2785         is *not* set.  Reported by Frank T Lofaro.
2786
2787         * src/hostid.c: New file.
2788         * src/Makefile.am (EXTRA_PROGRAMS): Add hostid.
2789         * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid,
2790         and if found add hostid to the list.
2791         * man/hostid.1: New file.
2792         * man/Makefile.am (man_MANS): Add hostid.1.
2793
2794 1997-08-31  Jim Meyering  <meyering@na-net.ornl.gov>
2795
2796         * src/who.c (main): New option --lookup (-l).
2797         (print_entry): Only call canon_host if user explicitly asks for it.
2798         (usage): Describe --lookup.
2799         From Galen Hazelwood.
2800
2801         * configure.in (ALL_LINGUAS): Add Spanish (es).
2802
2803 1997-08-02  Jim Meyering  <meyering@na-net.ornl.gov>
2804
2805         * src/Makefile.am (bin_PROGRAMS): Add pinky.
2806
2807         * src/pinky.c: New file.  From Kaveh Ghazi.
2808         * po/POTFILES.in: Add pinky.c.
2809
2810 1997-07-19  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
2811
2812         * src/date.c (show_date): Don't hang if strftime produces an empty
2813         string.
2814
2815 1997-07-16  Jim Meyering  <meyering@na-net.ornl.gov>
2816
2817         * src/groups.sh: Exit with status from subsidiary `id' command.
2818         Don't print `$name : $groups' if id fails.
2819         Reported by Austin Donnelly.
2820
2821 1997-07-15  Jim Meyering  <meyering@na-net.ornl.gov>
2822
2823         * lib/getloadavg.c: Merge in changes from FSF.
2824
2825 1997-07-13  Jim Meyering  <meyering@na-net.ornl.gov>
2826
2827         * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi.
2828         Now, automake includes it automatically.
2829
2830 1997-07-12  Jim Meyering  <meyering@na-net.ornl.gov>
2831
2832         * po/Makefile.in.in (DISTFILES): Remove ChangeLog.
2833         * po/POTFILES.in: Add who.c, users.c, uptime.c.
2834         Remove who-users.c.
2835
2836         * src/who.c: Rename lots of `this' locals.
2837         Make some parameters `const'.
2838         (who): Update read_utmp caller.
2839         (search_entries): Take additional param: utmp_buf.
2840         Update read_utmp caller.
2841         (who_am_i): Update read_utmp caller.
2842
2843         * src/users.c (users): Update read_utmp caller.
2844         * src/uptime.c (uptime): Update read_utmp caller.
2845
2846         * lib/readutmp.h (PARAMS): Update prototype.
2847         (utmp_contents): Remove dcl.
2848
2849         * lib/readutmp.c (read_utmp): Take new params: count and buffer.
2850         Return boolean indicating failure.
2851         Now, caller must give diagnostic upon failure.
2852
2853 1997-07-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2854
2855         * lib/readutmp.c, lib/readutmp.h: New files implementing shared
2856         functionality from src/who-users.c.
2857
2858         * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c.
2859         (noinst_HEADERS): Add readutmp.h.
2860
2861         * src/who.c, src/users.c, src/uptime.c: Split these so they no
2862         longer derive from the template source file who-users.c.  Use
2863         shared functionality from lib/readutmp.c instead.
2864
2865         * src/Makefile.am: Remove rules to build who.c, users.c and
2866         uptime.c from template source file who-users.c.  Handle these
2867         files as stand-alone sources.
2868
2869         * src/who-users.c: Remove file.  It is no longer used.
2870
2871 1997-07-12  Jim Meyering  <meyering@na-net.ornl.gov>
2872
2873         * src/date.c (MAYBE_SET_TZ_UTC0): New macro.
2874         (set_tz): New function.
2875         (batch_convert): If necessary, save the initial value of TZ and
2876         for each date in the file, restore it before each call to get_date,
2877         then set it to UTC0 before each show_date call.
2878         (main): Don't set TZ before calling get_date.
2879         Set TZ after get_date call and before show_date call.
2880         Reported by Matthew Braun.
2881         * tests/date/Test.pm: Add new tests for this bug.
2882         Add tests based on new examples in documentation.
2883
2884         * stpcpy.c: New file.
2885         * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c
2886
2887 1997-07-05  Jim Meyering  <meyering@na-net.ornl.gov>
2888
2889         * src/Makefile.am (EXTRA_PROGRAMS): Add su here.
2890         (bin_PROGRAMS): Remove su here.
2891         (install-exec-local): Rewrite rule so that su is installed only if
2892         it can be made setuid root.  Before it was always installed and then
2893         removed if it could *not* be made setuid root.  That had the potential
2894         undesirable side effect of removing (and not replacing) a working
2895         version of su.
2896         (all_local): New target.  Dependend on su.  Required now that su is
2897         no longer in bin_PROGRAMS.
2898         (uninstall-local): Remove su only if it comes from the GNU sh-utils.
2899
2900         * src/su.c: Redefine/undef getusershell around inclusion of <unistd.h>
2901         (via system.h) so Cray's int-returning prototype doesn't conflict
2902         with our char*-returning one.  Reported by Johan Danielsson.
2903
2904 1997-07-04  Jim Meyering  <meyering@na-net.ornl.gov>
2905
2906         * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to
2907         generate tests/*/Makefile.am.
2908
2909         * configure.in (ALL_LINGUAS): Add Norwegian (no).
2910
2911         * tests/date/mk-script.pl (validate): Create test files in $(srcdir),
2912         not in build dir.
2913         * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir),
2914         not in build dir.
2915         * Makefile.am (aclocal-files): Look in source directory, not build dir.
2916         From Andreas Schwab.
2917
2918 1997-07-03  Jim Meyering  <meyering@na-net.ornl.gov>
2919
2920         * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment
2921         setting.
2922
2923 Wed Jul  2 11:05:09 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2924
2925         * src/printf.c (STRTOX): Convert function header in macro definition
2926         to K&R-style.  Otherwise, ansi2knr would fail to convert the function
2927         definitions to K&R for old style compilers.  From Kaveh Ghazi.
2928
2929 Tue Jul  1 06:28:00 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2930
2931         * lib/putenv.c [putenv]: Undefine before including system headers.
2932         Otherwise, the declaration of *rpl_putenv* conflicts with the system
2933         prototype on at least Irix5.3.  From Marcus Daniels.
2934
2935 Sun Jun 29 07:18:25 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2936
2937         * lib/putenv.c (rpl_putenv): Renamed from putenv.
2938         [putenv]: Remove definition and subsequent #undef hack that avoided
2939         conflicts with system prototypes.  That didn't let the definition of
2940         putenv to rpl_putenv from config.h get through.
2941         Suggestion from Marcus Daniels.
2942
2943         * configure.in (LIB_CRYPT): AC_SUBST new variable.  Use it to add
2944         crypt-related library (-lufc or -lcrypt) only for the program that
2945         needs it (su), rather than to all executables.
2946         * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'.
2947         Suggestion from Ulrich Drepper.
2948
2949         * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG
2950         so tests get english strings.  From Ulrich Drepper.
2951
2952 Mon Jun 16 11:06:57 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2953
2954         * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro.
2955         * configure.in (jm_FUNC_PUTENV): Use it.
2956         * acconfig.h (putenv): Add #undef.
2957         * lib/Makefile.am (EXTRA_DIST): Add putenv.c.
2958         (libsu_a_SOURCES): Remove putenv.c.
2959         * m4/Makefile.am (EXTRA_DIST): Add putenv.m4.
2960
2961 Thu Jun 12 06:48:23 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2962
2963         * src/expr.c (eval6): Accept new unary operator, quote.
2964         From Karl Heuer.
2965
2966 Wed Jun 11 15:13:56 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2967
2968         * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than
2969         searching for `\(' to determine whether to return 0 or the empty
2970         string.  Before it would improperly return '' if the pattern
2971         contained a substring like this: `\\('.  From Karl Heuer.
2972         For example, running expr c : '\\(' should print `0'.
2973
2974 Sun Jun  1 12:00:10 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2975
2976         * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units.
2977         Patch from Richard Sharman <rsharman@magmacom.com>.
2978         * tests/date/Test.pm: Add tests using `next'.
2979
2980 Tue May 27 06:08:06 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2981
2982         * lib/basename.c: Don't include backupfile.h.
2983
2984         * lib/Makefile.am (noinst_HEADERS): Add backupfile.h.
2985
2986         * src/basename.c: Use base_name, not basename.
2987         * src/su.c: Use base_name, not basename.
2988
2989         * configure.in: Don't replace basename.  Now it's always required.
2990
2991         * lib/Makefile.am (libsu_a_SOURCES): Add basename.c.
2992
2993         * lib/getopt.c: Update from glibc via patch-2.2.93.
2994         * lib/getopt1.c: Likewise.
2995         * lib/getopt.h: Likewise.
2996         * lib/basename.c: Likewise.
2997
2998 Sat May 24 13:26:04 1997  Jim Meyering  <meyering@na-net.ornl.gov>
2999
3000         * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are
3001         distributed.  This seems to be necessary for automake-1.1p.
3002
3003 Thu May  1 00:10:11 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3004
3005         * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c
3006         spline.c test.c uname.c: Indent cpp-directives.
3007
3008         * src/system.h (N_): Define.
3009
3010 Sun Apr 27 18:30:53 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3011
3012         * src/printf.c (cfcc_msg): File-scope constant.
3013         (STRTOX): Use new constant as error message format string in macro.
3014         Suggestion from Andreas Schwab.
3015         (STRTOX): Don't fail because of extra character(s) following a
3016         character constant.  Give the *warning* only if !POSIXLY_CORRECT.
3017
3018 Sun Apr  6 14:29:14 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3019
3020         * src/printf.c: Reorder functions to obviate forward decls.
3021         Change most char* dcls to const char*.
3022         (STRTOX): New macro to eliminate code duplication.
3023         (xstrtod, xstrtol, xstrtoul): Remove functions.
3024         Use the STRTOX instead.
3025
3026         * src/printf.c (STRTOX): Interpret arguments like 'a and "a
3027         as POSIX requires.  Derived from a patch by Dennis Henriksen.
3028
3029 Sun Mar 23 15:20:17 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3030
3031         * configure.in (ALL_LINGUAS): Add polish (pl).
3032
3033 Sat Mar 22 00:03:02 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3034
3035         * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l.
3036         (aclocal.m4): Use aclocal's new -I option.
3037
3038         * missing: New file -- from the automake-1.1m distribution.
3039
3040 Thu Mar 20 21:10:44 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3041
3042         * m4/ccstdc.m4: Remove file.
3043         * m4/init.m4: Likewise.
3044         * m4/sanity.m: Likewise.
3045         * m4/protos.m: Likewise.
3046         * m4/dmalloc.m4: Likewise.
3047         * m4/error.m4: Likewise.
3048         * m4/header.m4: Likewise.
3049         * m4/install.m4: Likewise.
3050         * m4/lispdir.m4: Likewise.
3051         * m4/maintainer.m4: Likewise.
3052         * m4/obstack.m4: Likewise.
3053         * m4/ptrdiff.m4: Likewise.
3054         * m4/regex.m4: Likewise.
3055         * m4/strtod.m4: Likewise.
3056         * m4/termios.m4: Likewise.
3057         * m4/winsz.m4: Likewise.
3058
3059 Tue Mar 18 06:46:54 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3060
3061         * src/su.c: Indent cpp-directives to reflect nesting.
3062         Change a few #ifdef to #if.
3063         Remove 3 spurious #ifdef that were guarding an #undef each.
3064
3065         * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid
3066         shadowing global.
3067         (print_numbers): Likewise.
3068
3069         * src/who-users.c (idle_string): Rename local, IDLE, to avoid
3070         shadowing global.
3071
3072         * src/su.c (log_su): Resort to getpwuid if getlogin fails.
3073         If no tty name is found, use `none' in the log message.
3074         Based on a patch from Galen Hazelwood.
3075
3076 Thu Mar 13 21:27:36 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3077
3078         * lib/mktime.c (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
3079
3080 Wed Feb 19 23:06:46 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3081
3082         * src/factor.c (factor): Rewrite inner loop to be more efficient.
3083         Patch from Torbjorn Granlund.
3084
3085 Tue Feb 18 21:18:04 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3086
3087         * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug
3088         fixed on 1996-03-05.
3089         Remove misleading `-' from leap-1 test.
3090
3091         * tests/Makefile.am (SUBDIRS): Add factor.
3092         * tests/factor: New directory.
3093         * configure.in (AC_OUTPUT): Add tests/factor/Makefile.
3094
3095 Tue Feb  4 22:03:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3096
3097         * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
3098         Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
3099         * configure.in (AC_CHECK_HEADERS): Add termios.h.
3100
3101 Fri Jan 31 21:13:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3102
3103         * src/*.c (usage): Bracket bug-reporting address with <> and append
3104         a period.
3105         * src/*.sh: Likewise.
3106
3107         * src/*.c: Compare getopt_long return value against -1, not EOF.
3108         Use NULL, not `(int *) 0' as last parameter in getopt_long call.
3109
3110 Mon Jan 27 21:43:50 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3111
3112         * src/chroot.c (usage): Remove one space in message to make
3113         colons line up.
3114
3115 Sun Jan 26 12:51:05 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3116
3117         * Version 1.16.
3118
3119         * src/who-users.c (usage): Fix typo (--writeable -> --writable)
3120         in help output.  From Galen Hazelwood.
3121
3122 Sat Jan 25 21:01:13 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3123
3124         * src/factor.c (print_factors): Reflect changes to xstrtoul interface.
3125
3126         * tests/date/mk-script.pl: Generated script now reflects
3127         specification (in Test.pm) of default and per-test environment
3128         settings.
3129
3130 Fri Jan 24 23:36:00 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3131
3132         * lib/long-options.c (parse_long_options): Reset optind to zero
3133         before just returning so that getopt internals get initialized from
3134         the probably-new parameters when/if getopt is called later.
3135         This solves the problem (reintroduced with 1.15) where `stty -tabs'
3136         would not work as advertised but instead act like `stty -a'.
3137         Reported by Arne Juul.
3138         Suggested fix from Ulrich Drepper.
3139
3140 Wed Jan 22 20:12:31 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3141
3142         * lib/getopt.c: Update from GNU C library.
3143         * lib/getopt1.c: Update from GNU C library.
3144         * lib/getopt.h: Update from GNU C library.
3145
3146         * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in.
3147         (SUBDIRS): Set to `date'.
3148
3149         * configure.in: Check for perl.
3150         (AC_OUTPUT): Add tests/date/Makefile.
3151         * tests/date: New directory.
3152
3153         * m4/getgroups.m4: Move the code from configure.in into
3154         this macro that resorts to looking for getgroups in -lbsd.
3155         Set new shell variable, GETGROUPS_LIB (that callers should check),
3156         if it is found there.
3157         * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
3158         (AC_CHECK_FUNCS): Remove getgroups.
3159         Remove code that resorts to looking for getgroups in -lbsd.
3160
3161         * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values
3162         for the TZ environment variable.  Andre Novaes Cunha provided the
3163         hairy TZ setting that exercized the Solaris tzset bug.
3164
3165 1997-01-22  Paul Eggert  <eggert@twinsun.com>
3166
3167         * lib/strftime.c (_strftime_copytm):
3168         New function, to work around Solaris 2.5 tzset bug.
3169
3170         * m4/mktime.m4 (AM_FUNC_MKTIME): Fix bug in mktime test -- don't
3171         test now, test a couple of thousand times.
3172
3173         * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is
3174         specified by Posix.1.
3175
3176 Sat Jan 18 09:32:26 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3177
3178         * lib/getdate.y (get_date): Change prototype to reflect const'ness
3179         of parameters.
3180         Indent cpp-directives to reflect nesting.
3181         Indent with GNU indent.
3182
3183         * lib/getdate.h: New file.
3184         * src/date.c: Include getdate.h.
3185         (<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
3186         (get_date): Don't declare.  getdate.h does it.
3187
3188         * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
3189
3190         1997-01-06  Paul Eggert  <eggert@twinsun.com>
3191
3192         * getdate.y: Rewrite to use mktime.
3193
3194         <sys/timeb.h>: Don't include.
3195         (mktime): Declare.
3196
3197         (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
3198         ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
3199         (ToHour): New function (part of the old ToSeconds fn).
3200         (ToYear): New function (part of the old Convert fn).
3201
3202         (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
3203         yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
3204         Number): Now int instead of time_t.
3205         (HOUR): Don't cast to time_t.
3206
3207         (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
3208         (UnitsTable): Use new units that are closer to the keywords.
3209
3210         (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
3211         (rel, relunit, get_date): Add support for them.
3212
3213         (time): Fix timezone calculations for negative half-hour offsets
3214         when integer division truncates towards minus infinity.
3215
3216         (zone): Incorporiate DST calculation directly.
3217
3218         (get_date): 2nd arg is now time_t *, not struct timeb *.
3219         Use mktime to do most of the work, instead of computing it ourselves.
3220         Guard against falsely reporting errors near the time_t boundaries
3221         when parsing times in other time zones.
3222
3223 Thu Jan 16 20:58:40 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3224
3225         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
3226         * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here.
3227
3228 Tue Jan 14 22:45:36 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3229
3230         * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic.
3231         Alphabetize functions.
3232
3233         * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's
3234         pstat_getdynamic function so we don't need any special privileges
3235         to determine load averages.  Patch from Kaveh Ghazi, based on a
3236         sample implementation from Richard J. Rauenzahn.
3237         Indent cpp-directives to reflect nesting.
3238
3239 Wed Jan  8 16:38:24 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3240
3241         * Version 1.15.
3242
3243         * lib/getopt.c (_getopt_internal): Use `_', rather than the
3244         (sometimes-)expansion `gettext'.
3245
3246 Tue Jan  7 22:10:51 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3247
3248         * src/nice.c (main): Work around failures induced by new version of
3249         getopt.c by not modifying optind before the first getopt_long call
3250         in main.  With suggestions from Ulrich Drepper.
3251
3252         * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
3253         [_]: Define to gettext also if ENABLE_NLS is defined.
3254         This is temporary.
3255
3256 Fri Jan  3 21:08:29 1997  Jim Meyering  <meyering@na-net.ornl.gov>
3257
3258         * acconfig.h (getgroups): Add #undef.
3259         From Marcus Daniels.
3260
3261 Fri Dec 27 17:25:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3262
3263         * src/who-users.c [!WTMP_FILE]: Provide default path.
3264         (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
3265         Patch from Kaveh R. Ghazi.
3266         Indent cpp directives.
3267
3268         * m4/getgroups.m4: Rewrite the test so that systems lacking
3269         getgroups don't try to use the supplied replacement function --
3270         that depends on the existence of such a function.
3271
3272         * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
3273
3274         * configure.in (jm_FUNC_GETGROUPS): Use it.
3275         Reported by Marcus Daniels.
3276         AC_REQUIRE version 2.12 of autoconf.
3277
3278 Sun Dec 22 23:31:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3279
3280         * configure.in: Increment version to 1.14a.
3281
3282         * m4/Makefile.am (EXTRA_DIST): Add README.
3283
3284 Fri Dec 20 19:28:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3285
3286         * src/who-users.c (usage): Say that UTMP_FILE is the default FILE
3287         rather than hard-coding /etc/utmp.  Replace hard-coded /etc/wtmp
3288         with WTMP_FILE.  Suggestion from Eivind.
3289
3290         * src/seq.c (usage): Tweak --help text.
3291
3292         * configure.in (AC_OUTPUT): Add m4/Makefile.
3293
3294         * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
3295
3296         * Makefile.am (SUBDIRS): Add m4.
3297         (aclocal-files): Add rules that rely on (GNU) make's include
3298         directive that computes dependencies for aclocal.m4.
3299         (aclocal.m4): Override automake-generated rule.
3300
3301         * m4/Makefile.am: New file.
3302
3303         * lib/strftime.c: Update from GNU libc.
3304
3305         * m4/getline.m4: New file, extracted from acinclude.m4.
3306         * m4/getloadavg.m4: Likewise.
3307         * m4/jm-mktime.m4: Likewise.
3308         * m4/jm-winsz1.m4: Likewise.
3309         * m4/jm-winsz2.m4: Likewise.
3310         * m4/memcmp.m4: Likewise.
3311         * m4/strftime.m4: Likewise.
3312         * m4/uptime.m4: Likewise.
3313
3314         * m4/ccstdc.m4: Copied from automake-1.1l.
3315         * m4/dmalloc.m4: Likewise.
3316         * m4/error.m4: Likewise.
3317         * m4/gettext.m4: Likewise.
3318         * m4/header.m4: Likewise.
3319         * m4/init.m4: Likewise.
3320         * m4/install.m4: Likewise.
3321         * m4/lcmessage.m4: Likewise.
3322         * m4/lispdir.m4: Likewise.
3323         * m4/maintainer.m4: Likewise.
3324         * m4/mktime.m4: Likewise.
3325         * m4/obstack.m4: Likewise.
3326         * m4/progtest.m4: Likewise.
3327         * m4/protos.m4: Likewise.
3328         * m4/ptrdiff.m4: Likewise.
3329         * m4/regex.m4: Likewise.
3330         * m4/sanity.m4: Likewise.
3331         * m4/strtod.m4: Likewise.
3332         * m4/termios.m4: Likewise.
3333         * m4/winsz.m4: Likewise.
3334
3335         * m4/getgroups.m4: New file.
3336         (jm_FUNC_GETGROUPS): New macro
3337         * lib/getgroups.c: New file.
3338
3339         * m4: New directory.
3340
3341 Wed Dec 18 07:47:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3342
3343         * configure.in (AC_CHECK_HEADERS): Add paths.h.
3344         * src/su.c [HAVE_PATHS_H]: Include <paths.h>.
3345         [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
3346         [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
3347         From Rik Faith.
3348
3349         * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings
3350         outside the quoted test program.  Quote the test program with <<, >>.
3351         Reported by Andreas Schwab.
3352         (AM_FUNC_GETLOADAVG): Likewise.
3353         (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier
3354
3355 Tue Dec 17 18:54:32 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3356
3357         * src/Makefile.am (install-exec-local): Properly redirect stdout
3358         and stderr to /dev/null.  From Eric Backus.
3359
3360         * lib/strftime.c: Update from GNU libc.
3361
3362         * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than
3363         now-obsolete AC_C_CROSS.
3364         (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one
3365         since there's nothing GNU-specific about the replacement.  Contrast
3366         with gnu_ prefix added to strftime.
3367         (jm_FUNC_MEMCMP): New macro.
3368         * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP.
3369         * acconfig.h: Add memcmp.
3370
3371 Sun Dec 15 18:37:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3372
3373         * configure.in (check for 3-argument setpriority function): Complete
3374         partial change made on Dec 12.  From Arne Juul.
3375
3376 Sat Dec 14 14:51:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3377
3378         * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
3379         name for cross compiling.
3380         Remove definitions of gettext-related macros.  The gettext
3381         installation procedure installs corresponding .m4 files so that
3382         aclocal will use them.
3383
3384 Thu Dec 12 06:07:30 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3385
3386         * Version 1.14.
3387
3388         * src/system.h (ISDIGIT): Replace with smaller, faster edition
3389         that yields nonzero only on ASCII digits.
3390         (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
3391         used to have.  From Paul Eggert.
3392
3393         * configure.in: Bump version to 1.14.
3394
3395         * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII.
3396         (ISDIGIT): New definition from Paul Eggert.
3397         This one evaluates its argument exactly once.
3398         (yylex): Move increment out of ISALPHA argument.  Use a
3399         comma-expression instead.
3400
3401         * src/false.sh (usage): Update bug-reporting address.
3402         * src/groups.sh (usage): Likewise.
3403         * src/nohup.sh (usage): Likewise.
3404         * src/true.sh (usage): Likewise.
3405         Reported by Karl Heuer.
3406
3407         * configure.in (check for 3-argument setpriority function): Add nohup
3408         to list of scripts, not the list of programs.
3409         From Karl Heuer.
3410
3411         * POTFILES.in: Add chroot.c.  Reported by Michel Robitaille.
3412
3413 Wed Dec 11 19:33:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3414
3415         * Version 1.13.
3416
3417 Tue Dec 10 06:36:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3418
3419         * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro.  Derived from the
3420         code in configure.in, except now it punts when cross compiling.
3421         Suggestion from Karl Heuer.
3422         * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded
3423         version.
3424
3425         * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
3426         Reported by Thomas Bushnell.
3427
3428         * configure.in: Bump version to 1.12t.
3429
3430         * Regenerate all Makefile.in using a patched version of automake-1.1l.
3431
3432         * acconfig.h (strftime): Add #undef.
3433         From Karl Heuer.
3434
3435         * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX.
3436         From Karl Heuer.
3437
3438 Mon Dec  9 06:58:11 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3439
3440         * configure.in: Bump version to 1.12s.
3441
3442         * lib/getdate.y (Convert): Don't reject all dates in 2038.
3443         Some fit in 31 bits.
3444
3445         * configure.in (jm_FUNC_GNU_STRFTIME): Use it.
3446
3447         * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro.
3448         (jm_FUNC_GNU_STRFTIME): New macro.
3449
3450         * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c.
3451         (EXTRA_DIST): Add strftime.c.
3452
3453         * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo:
3454         Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to
3455         $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h.
3456         Patch from Kaveh R. Ghazi.
3457
3458         * src/stty.c: Include config.h before testing for
3459         TERMIOS_NEEDS_XOPEN_SOURCE.
3460         Patch from Karl Heuer.
3461
3462         * configure.in (AC_ISC_POSIX): Remove kludgy macro.
3463         Use this test instead:
3464         (LIBS): Add -lcposix if it contains strerror.
3465         Patch from Karl Heuer.
3466
3467         * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to
3468         ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation
3469         problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such
3470         space-separated assignments from right to left.  Patch from Karl Heuer.
3471         (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS.
3472         Patch from Karl Heuer.
3473
3474         * lib/strftime.c [HAVE_TZNAME]: Declare tzname.
3475         Patch from Karl Heuer.
3476
3477         * src/Makefile.am (.sh): Also substitute @bindir@.
3478         Reported by Karl Heuer.
3479
3480 Sun Dec  8 07:22:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3481
3482         =========== Update for automake-1.1k.
3483         * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
3484         * configure.in (AM_CONFIG_HEADER): Use it.
3485         (AC_OUTPUT): Remove stamp-h timestamping statement.
3486         Now, AM_CONFIG_HEADER does it automatically.
3487         * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
3488         new automake requirement.
3489         Rename su_* variables to libsu_a_*.
3490
3491 Sun Dec  8 00:08:44 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3492
3493         * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
3494
3495 Sat Dec  7 12:52:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3496
3497         * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
3498         From Michel Robitaille.
3499
3500         * configure.in (ALL_LINGUAS): Add Portuguese (pt).
3501
3502         * lib/getloadavg.c [__SVR4]: Define SVR4.
3503         Remove duplicate `|| defined(SVR4)' disjunct guarding the
3504         #define KERNEL_FILE "/unix" definiton.
3505
3506         * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
3507         of the AM_ prefixed macro.
3508         (check for TIOCGWINSZ in sys/pty): In essence, require
3509         jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
3510         $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
3511         $gwinsz_in_termios_h) is defined.
3512
3513         * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
3514         Correction from Paul Eggert.
3515
3516 Fri Dec  6 20:52:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3517
3518         * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
3519         AM_FUNC_MKTIME, simply AC_REQUIRE it.
3520
3521 Mon Dec  2 20:59:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3522
3523         * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
3524         define WINSIZE_IN_PTEM to precede test that checks whether
3525         `TIOCGWINSZ in sys/pty.h'.  The latter test uses the symbol.
3526         (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
3527
3528 Sun Dec  1 13:07:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3529
3530         * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
3531         if L >= 1000, otherwise as MM/DD/YY.  With this change,
3532         date --date=DATE accepts dates like those in an RCS log listing.
3533
3534 Sat Nov 30 22:08:00 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3535
3536         * lib/strftime.c: Update from GNU libc.
3537
3538 Fri Nov 29 22:16:40 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3539
3540         * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
3541         --processor (-p).  Print processor type.
3542         (usage): Document it.
3543
3544 Thu Nov 28 00:28:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3545
3546         * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
3547         for gettext-0.10.25.
3548         (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
3549
3550 Sun Nov 24 11:02:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3551
3552         * src/system.h [!defined STDIN_FILENO]: Define it.
3553         [!defined STDOUT_FILENO]: Define it.
3554         [!defined STDERR_FILENO]: Define it.
3555
3556         * src/stty.c (get_win_size): Take a FILENO parameter rather than
3557         trying to get a size from both stdin and stdout.
3558         Update callers.
3559         Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
3560
3561         ========== From Karl Heuer =========
3562         * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
3563         i386-pc-isc3.0, needs that in order to cause all of the useful
3564         termios symbols to be defined, instead of just those that are
3565         required by POSIX.  This enables all of: iuclc ixany olcuc ocrnl
3566         onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
3567
3568         [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
3569
3570         [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
3571         termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
3572         POSIX requires that symbol).  Define VSWTCH as a synonym if needed,
3573         so that either one can be used on input.
3574         (display_changed): If the slot for swtch is the same as the one for
3575         susp, display only the setting for susp.
3576         (display_all): Likewise.
3577
3578         (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
3579         On such systems, it's confusing to print both pairs.  So, skip eof and
3580         eol when icanon is unset, and skip min and time when icanon is set.
3581         (display_all): Likewise.
3582
3583         (set_window_size): Check only stdin (the device being queried) for
3584         window size info.  You don't want "stty </dev/foo" to report the size
3585         of your current window when /dev/foo has no size info.
3586         (display_window_size): Likewise.
3587
3588         (screen_columns): Check only stdout for window size info.  You want
3589         "stty </dev/foo" to wrap columns at the right margin of your current
3590         window, not the /dev/foo width.
3591
3592         * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
3593         (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
3594
3595         * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
3596         (whether TIOCGWINSZ is defined in sys/pty.h): New test.
3597
3598 Sat Nov 23 16:15:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3599
3600         * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
3601         isn't mentioned in AC_REPLACE_FUNCS.
3602
3603         * env.c (usage): Alphabetize option descriptions the way sort -f would.
3604         * test.c (usage): Likewise.
3605         * who-users.c (usage): Likewise.
3606         From Karl Berry.
3607
3608 Fri Nov 22 20:33:26 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3609
3610         * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
3611         way.  AM_FUNC_GETLINE does it now.
3612
3613         * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
3614         * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
3615         From Karl Heuer.
3616
3617         * src/printf.c (main): Warn if excess arguments are ignored.
3618         E.g., printf foo bar now warns that it is ignoring the single
3619         non-format argument, bar.
3620
3621 Wed Nov 20 20:37:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3622
3623         * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
3624         gethostname.  Reported by Fletcher Mattox.
3625
3626 Tue Nov 19 23:01:01 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3627
3628         * configure.in (AM_SANITY_CHECK_CC): Remove it.  Autoconf-2.11
3629         has this built-in.
3630         (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
3631         automake-1.1g couldn't deal with the _SCRIPTS suffix.
3632         * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
3633
3634 Sun Nov 17 20:49:37 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3635
3636         * src/id.c (main): Ignore -a, for compatibility with SVR4.
3637         Suggestion from Noah Friedman.
3638
3639 Mon Nov  4 20:24:31 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3640
3641         * configure.in (test for group_member): Handle it separately
3642         so I can keep the hyphen (not the underscore) in the filename.
3643
3644         Thu Oct 31 19:32:32 1996  Miles Bader  <miles@gnu.ai.mit.edu>
3645
3646           * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
3647           returns an error other than buffer overflow, exit with an error
3648           message instead of allocating infinite amounts of space.
3649           [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
3650           <errno.h>: New include.
3651           [!errno] (errno): New declaration.
3652
3653         * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
3654
3655         * configure.in: Check for -linet library before checking for the
3656         gethostbyname function.  Suggested by Karl Heuer.
3657         Use AM_FUNC_GETLINE.
3658
3659         * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
3660         Based on a test from Karl Heuer.
3661
3662 Sun Nov  3 14:57:09 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3663
3664         * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
3665         am_cv_saved_LIBS from LIBS.  From Karl Heuer.
3666
3667         * src/stty.c (recover_mode): Fail also if there are too many fields.
3668         From Karl Heuer.
3669
3670         * lib/canon-host.c: Include sys/types.h for the definitions
3671         (otherwise missing on some systems) of caddr_t (used by
3672         sys/socket.h) and ushort (used by netinet/in.h).  From Karl Heuer.
3673
3674 Sat Nov  2 00:16:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3675
3676         * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
3677         Otherwise, the generated info files have names longer than
3678         the 14-byte max of some old systems.
3679         Reported by Karl Heuer.
3680
3681         * src/date.c (main): Give better diagnostic.
3682         Suggestion from Karl Berry.
3683
3684 Thu Oct 31 18:28:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3685
3686         * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
3687         * lib/getdate.y: Remap yacc globals to have gd_ prefix.
3688         Suggestion to do as in gdb/c-exp.y from Tom Tromey.
3689
3690 Mon Oct 28 17:40:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3691
3692         * src/Makefile.am (install-exec-local): Redirect stderr of chown to
3693         /dev/null and suggest running `make install-root' upon failure to
3694         install su.  Suggestions from François Pinard.
3695
3696         * configure.in: Don't output confusing diagnostic: `checking for
3697         shadow password routines'.  Suggestion from François Pinard.
3698
3699 Thu Oct 24 13:50:46 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
3700
3701         * src/tee.c (main): Ignore SIGPIPE.
3702
3703 Wed Oct 23 23:42:43 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3704
3705         * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
3706         with #if PROTOTYPES rather than with #ifdef __STDC__.  The latter
3707         loses with Dynix/PTX.
3708         (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
3709         Suggestion from Marcus Daniels.
3710
3711 Mon Oct 21 16:49:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3712
3713         * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
3714         defines or includes -- Linux systems simply read /proc/loadavg.
3715         From Ulrich Drepper.
3716
3717         * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
3718
3719         * configure.in: Remove hack that created link from group_member.c
3720         to group-member.c.
3721
3722         * lib/group_member.c: New file.  Renamed from group-member.c.
3723         * lib/group-member.c: Delete.
3724
3725         * src/stty.c (main): Remove TAB from diagnostic, for consistency.
3726
3727 Sun Oct 20 09:03:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3728
3729         * Makefile.am (install-root): Add it here, too.
3730
3731         * lib/Makefile.am (INCLUDES): Add -I../intl.  Reported by Eric Backus.
3732
3733         * src/Makefile.am (install-root): New rule.
3734         Suggestion from François Pinard.
3735
3736         * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
3737         directly.  From Ulrich Drepper.
3738
3739         * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
3740         (EXTRA_DIST): Remove @README_ALPHA@.
3741
3742         * configure.in: Remove README_ALPHA related code.  Automake takes
3743         care of it automatically now when in gnits mode.
3744
3745         * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
3746         #include $srcdir/lib/getloadavg.c.  The latter isn't defined at that
3747         point in configure script.  From Eric Backus.
3748
3749 Fri Oct 18 21:31:58 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3750
3751         * Makefile.am (cvs-dist): Uncomment cvs tag command.
3752         (cvs-dist): Use cvs tag's -c option.
3753
3754 Thu Oct 17 23:48:16 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3755
3756         * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
3757         using YP.  From Arne Juul.
3758
3759 Sun Oct 13 07:34:15 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3760
3761         * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
3762         * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
3763         (by saving and restoring initial value).  Instead, arrange for
3764         substitution of @GETLOADAVG_LIBS@.
3765         * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
3766         not @UPTIME_LIBS@.
3767
3768         * configure.in (ALL_LINGUAS): Add swedish (sv).
3769
3770 Fri Oct 11 22:51:50 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3771
3772         * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
3773         call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
3774         From Kaveh R. Ghazi.
3775
3776         * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
3777
3778         * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
3779         with the following changes:
3780         - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
3781         Reported by Eric Backus.
3782         - Check for Solaris' libkstat.
3783         - Define C_GETLOADAVG if we end up using getloadavg.c.
3784         From Kaveh R. Ghazi.
3785         * acconfig.h (C_GETLOADAVG): Add it.
3786         From Kaveh R. Ghazi.
3787
3788         * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
3789         getloadavg-related libraries only when linking uptime.
3790
3791 Thu Oct 10 23:50:05 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3792
3793         * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
3794         (su_SOURCES): Put them here instead.
3795         Remove rules for building getdate.c and posixtm.c;  now automake
3796         generates those rules.
3797         * lib/ylwrap: New file.
3798         * lib/interlock: New file.
3799
3800 Wed Oct  9 00:26:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3801
3802         * lib/getloadavg.c [__sun]: Define sun.  Reported by Kaveh Ghazi.
3803
3804         * lib/strftime.c (strftime): Accommodate the broken C compiler
3805         that comes with SunOS -- don't initialize aggregates in decls of
3806         automatic variables.  Reported by Kaveh Ghazi.
3807
3808         * tests/: Renamed checks/ directory.
3809         * Makefile.am (SUBDIRS): Rename checks to tests.
3810         * configure.in (AC_OUTPUT): Rename checks to tests.
3811
3812         * configure.in (/proc/uptime check): Guard the read of /proc/uptime
3813         with an existence test to avoid a messy configure-time warning on
3814         systems that lack that special file. Reported by Kaveh R. Ghazi.
3815
3816         * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
3817         not $LIB.  From Kaveh R. Ghazi.
3818
3819         * checks/nice: Protect echoed args with leading `x' so echo doesn't
3820         interpret leading -n on e.g. SunOS systems.
3821
3822 Mon Oct  7 18:46:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3823
3824         * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
3825
3826         * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
3827         (su_SOURCES): Remove memcmp.c.
3828         Automake automatically includes at least these, now.
3829         From François Pinard.
3830
3831         * lib/Makefile.am (su_SOURCES): Remove getline.c.
3832
3833 Sat Oct  5 11:38:23 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3834
3835         * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
3836         it's AC_REPLACE'd and already in EXTRA_DIST.
3837
3838         * configure.in: Use AM_SANITY_CHECK_CC.
3839
3840         * configure.in: Use AM_FUNC_ERROR_AT_LINE.
3841         * lib/Makefile.am (EXTRA_DIST): Put error.c here.
3842         (su_SOURCES): Remove error.c
3843         Suggested by Ulrich Drepper.
3844
3845         * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
3846         * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
3847         in the four installed scripts.
3848         * src/*.sh: Update --version output to conform to the coding standard.
3849
3850         * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
3851         (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
3852         checking... messages don't get nested.
3853
3854         * configure.in (GNU_PACKAGE): New variable.
3855         (PACKAGE_VERSION): Remove it.
3856
3857         * acconfig.h (GNU_PACKAGE): New variable.
3858         (PACKAGE_VERSION): Remove now-unused variable.
3859
3860         * src/*.c: Update --version output to conform to the coding standard.
3861
3862 Sun Sep 22 22:41:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3863
3864         * configure.in (AC_CHECK_HEADERS): Alphabetize.
3865         Update for automake-1.1e.
3866
3867 Thu Sep 19 07:47:18 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3868
3869         * lib/regex.c: Merge with FSF version.
3870         * lib/getloadavg.c: Replace with FSF version.
3871
3872 Mon Sep 16 23:13:04 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3873
3874         * lib/strftime.c (strftime): New version, from GNU libc.
3875
3876 Sun Sep 15 23:08:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3877
3878         * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
3879
3880 Mon Sep  9 22:10:45 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3881
3882         * configure.in: Improve handling of math library so -lm is used
3883         only when it's actually required.  That makes a difference when
3884         using dynamic linking.
3885         Remove check that added -lm to LIBS.
3886         (SQRT_LIBM): Test for and AC_SUBST it.
3887         (POW_LIBM): Likewise.
3888         (SEQ_LIBM): Likewise.
3889         Motivation and suggestions from Ulrich Drepper.
3890
3891         * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
3892         Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
3893         Also set corresponding _DEPENDENCIES variables.
3894
3895 Sat Sep  7 12:41:39 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3896
3897         * src/system.h: Add comments justifying IS* versions of ctype.h macros.
3898
3899         * lib/getdate.y: Define and use upper case variants of ctype.h
3900         is* macros.  From Bruno Haible.
3901
3902 Thu Sep  5 22:12:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3903
3904         * lib/strftime.c: New version from glibc.
3905
3906 Wed Sep  4 23:39:51 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3907
3908         * configure.in (ALL_LINGUAS): Add dutch (nl).
3909
3910 Mon Sep  2 10:52:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3911
3912         * src/*.c (usage): Tell where to report bugs.
3913
3914 Sun Sep  1 07:56:07 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3915
3916         * configure.in (AM_FUNC_MKTIME): Use it.
3917         (AC_REPLACE_FUNCS): Remove mktime.
3918         (AM_INIT_AUTOMAKE): Use it.
3919         (AM_PROG_INSTALL): Remove.  AM_INIT_AUTOMAKE does this.
3920         (AC_PROG_MAKE_SET): Likewise.
3921         (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
3922         AM_ prefix for latest automake/aclocal.
3923
3924         * Makefile.am (EXTRA_DIST): Add acinclude.m4.
3925
3926         * acinclude.m4: New file -- derived from aclocal.m4.
3927         * aclocal.m4: This file is now generated by the aclocal program
3928         (which comes with the automake package.)
3929
3930 Sat Aug 17 00:14:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3931
3932         * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
3933         formats and reverts to old behavior where unrecognized format like
3934         %E is treated as eqivalent to `E'.
3935
3936 Sun Aug  4 09:14:28 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3937
3938         * checks/: New directory.
3939         * checks/Makefile.am: New file.
3940         * checks/nice: New file.  Derived from tests from Eric Backus.
3941         * configure.in (AC_OUTPUT): Add new directory: checks.
3942         * Makefile.am (SUBDIRS): Likewise.
3943
3944         * src/nice.c (main): Allow `+' in options like -+8 and -+13.
3945
3946 Fri Aug  2 21:45:06 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3947
3948         * src/nice.c (main): Set minus_flag to zero in two places.
3949         Otherwise, `nice --1 -3' would mistakenly do the equivalent of
3950         `nice --3'.  Thanks to Eric Backus <ericb@lsid.hp.com> for the
3951         test cases.
3952
3953         * configure.in (check for /proc/uptime): New check.
3954         * acconfig.h (SAVE_PROC_UPTIME): #undef it.  Reorder so symbols
3955         are sorted again.
3956         *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
3957         /proc/uptime.
3958         From Ulrich Drepper.
3959
3960 Thu Aug  1 22:38:38 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3961
3962         * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
3963         It isn't necessary because the cpp-time checks of getopt.c and
3964         getopt1.c are at least as good.
3965         * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
3966         (su_SOURCES): Add getopt.c and getopt1.c
3967         This reverts much of the April 23 change.
3968
3969 Sat Jul 27 17:22:14 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3970
3971         * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
3972         redefinition warnings on solaris.
3973         (textdomain) [!ENABLE_NLS]: Likewise.
3974
3975 Sun Jul 21 09:47:55 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3976
3977         * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
3978         Add related check for the getdelim function.
3979         From Ulrich Drepper -- as done in gettext.
3980
3981         * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
3982         From Thomas Olsson <d95to@efd.lth.se>.
3983
3984 Sat Jul 20 17:01:56 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3985
3986         * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
3987         separate PACKAGE and VERSION.
3988
3989 Wed Jul 17 23:13:19 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3990
3991         * src/chroot.c: Include <sys/types.h> before system.h.
3992         * src/seq.c: Likewise.
3993         * src/yes.c: Likewise.
3994         From Arne Juul.
3995
3996 Tue Jul 16 00:06:33 1996  Jim Meyering  <meyering@na-net.ornl.gov>
3997
3998         * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
3999         Omitting that second arg made some HPUX C compiler report an error.
4000         From Kaveh R. Ghazi.
4001
4002 Mon Jul 15 23:42:57 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4003
4004         * src/who-users.c (print_uptime): Reverse `days' and `day' in
4005         uptime message.  From Kaveh R. Ghazi.
4006
4007         * Many files: Update FSF address.
4008
4009 Sun Jul 14 20:05:34 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4010
4011         * src/who-users.c (print_uptime): Use 0, not undefined errno in
4012         couldn't-get-boot-time diagnostic.  From Ulrich Drepper.
4013
4014 Sat Jul 13 14:22:54 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4015
4016         * src/chroot.c (usage): Add a `\' after `\n' in usage message.
4017         Otherwise, SunOS's /bin/cc chokes.
4018
4019         * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
4020         GWINSZ_BROKEN can't be defined anymore.
4021
4022         * configure.in (boot time test): Use AC_EGREP_CPP instead of
4023         AC_EGREP_HEADER; #endif, instead of #fi.
4024         (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
4025         these macros instead of the tests from which they were derived.
4026         ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
4027
4028 Wed Jul 10 22:57:29 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4029
4030         * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
4031         so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
4032         those options on that system, sys/stat.h gets compile errors.
4033         With help from Marcus Daniels.
4034
4035         * getopt.c: Update from gettext-0.10.23.
4036         * getopt1.c: Likewise.
4037         * getopt.h: Likewise.
4038
4039 Sun Jul  7 22:40:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4040
4041         * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
4042         in configure.in.
4043         (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4044
4045 Sat Jul  6 12:47:48 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4046
4047         * configure.in (AC_REPLACE_FUNCS): Add group_member.
4048         (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
4049         * lib/Makefile.am (su_SOURCES): Remove group-member.c.
4050         (EXTRA_DIST): Add group-member.c here.
4051
4052 Thu Jul  4 22:40:06 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4053
4054         * src/expr.c (docolon): Remove space before newline in usage message.
4055
4056 Sat Jun 29 18:58:20 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4057
4058         * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
4059         it in the output of --version.  Reported by RMS.
4060
4061 Tue Jun 18 22:14:42 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4062
4063         * aclocal.m4: Update from gettext-0.10.20.
4064         * ABOUT-NLS: Likewise.
4065         * intl/*: Likewise.
4066
4067 Sun Jun 16 13:44:36 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4068
4069         * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
4070
4071 Thu Jun  6 21:57:08 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4072
4073         * po/Makefile.in.in: Update from gettext-0.10.16.
4074         * intl/*: Likewise.
4075         * ABOUT-NLS: Likewise.
4076         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
4077         gettext-related ones.
4078         Update from gettext-0.10.16.
4079
4080 Wed May 29 21:28:53 1996  Jim Meyering  <meyering@na-net.ornl.gov>
4081
4082         * expr.c (docolon): Give a warning when the first character
4083         of the basic regular expression is `^'.
4084
4085 Mon May 20 22:56:06 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4086
4087         * id.c (xgetgroups): New function, factored out of
4088         print_group_list and print_full_info.
4089         (print_group_list): Call it.
4090         (print_full_info): Call it.
4091
4092         * lib/Makefile.am (getdate.c): Disable dependencies that can
4093         require rerunning YACC when not in maintainer mode.
4094         (posixtm.c): Likewise.
4095
4096 Tue May 14 18:47:35 1996  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4097
4098         * id.c (print_group_list): When USERNAME is specified use
4099         getugroups to get the number of groups.
4100         (print_full_info): Likewise.
4101
4102 Sun May 19 21:45:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4103
4104         * seq.c (usage): Make it clearer.
4105
4106 Sat May 18 13:29:46 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4107
4108         * expr.c (main): Don't recognize --help, --h, --he, --version,
4109         --v, etc. if the POSIXLY_CORRECT environment variable is set.
4110         * echo.c (main): Likewise.
4111         * printf.c (main): Likewise.
4112         * test.c (main): Likewise.
4113
4114         * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
4115
4116 Tue May  7 22:10:20 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4117
4118         * configure.in: Require autoconf-2.10.
4119
4120         * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
4121         * configure.in (jm_MAINTAINER_MODE): Use it.
4122
4123 Mon May  6 22:40:54 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4124
4125         * lib/strftime.c: Update from GNU libc.
4126
4127 Sat May  4 20:54:32 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4128
4129         * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
4130         * seq.c: Remove useless void casts of *printf return values.
4131
4132 Mon Apr 29 22:23:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4133
4134         * basename.c (usage): Mark translatable strings.
4135         * chroot.c (main): Likewise.
4136         * basename.c (main): Separate messages about `too few' and `too many'
4137         arguments to ease translation.
4138         * dirname.c (main): Likewise.
4139         * date.c (usage): Change TAB in message to spaces.  Doing that seems
4140         to have worked around a problem with something in gettext that was
4141         producing a truncated usage message for date's usage.
4142         From François Pinard.
4143
4144 Sun Apr 28 17:10:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4145
4146         * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
4147         Otherwise, some systems lose because the value AC_C_INLINE choses
4148         with plain `cc' is different from that chosen when using the ANSI-mode
4149         C compiler.  From Kaveh Ghazi.
4150
4151 Tue Apr 23 22:05:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4152
4153         * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
4154         * configure.in: Use it.
4155         * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
4156         (EXTRA_DIST): Add getopt.c and getopt1.c
4157
4158         * whoami.c (main): Declare to return int, not void.
4159         * who-users.c (main): Likewise.
4160         * yes.c (main): Likewise.
4161
4162         * src/*.c, src/*.h: Update Copyright years to include 1996.
4163
4164 Sun Apr 21 08:04:51 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4165
4166         * date.c (usage): Describe new %V format.  From Karl Berry.
4167
4168         * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
4169
4170 Sat Apr 20 22:22:01 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4171
4172         * chroot.c (usage): Improve help message.
4173         Enclose message strings in _().
4174         * seq.c (usage): Improve help message.
4175         * factor.c (usage): Likewise.
4176         From Karl Berry.
4177
4178 Fri Apr 19 23:48:53 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4179
4180         * Makefile.am (cvs-dist): New rule.  Based on the one from
4181         Tom Tromey's automake.
4182
4183 Thu Apr 18 23:16:41 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4184
4185         * basename.c (basename): Rewrite so it doesn't rely on strrchr,
4186         and hence doesn't need to include string.h -- on some alpha-based
4187         OSF systems, there's a conflicting prototype for basename in string.h.
4188         Reported by Kaveh Ghazi.
4189
4190         * configure.in (AC_REPLACE_FUNCS): Add basename.
4191         * lib/Makefile.am (EXTRA_DIST): Add basename.c.
4192         (su_SOURCES): Remove basename.c.
4193         From Kaveh Ghazi.
4194
4195 Tue Apr 16 20:24:44 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4196
4197         * src/Makefile.am (who.c): Qualify who-users.c reference with
4198         $(srcdir)/ prefix.
4199         (users.c): Likewise.
4200         (uptime.c): Likewise.
4201         From François Pinard.
4202
4203         * configure.in: Always invoke AC_GETLOADAVG, not just if we're
4204         building uptime.
4205
4206 Sat Apr 13 13:24:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4207
4208         * getloadavg.c: Test cpp-defined __sun as well as sun, because
4209         in strict ANSI mode, only __sun is defined.  From Kaveh Ghazi.
4210
4211         * date.c (usage): Add missing `\n\' at the end of newly added
4212         lines for %e and %z.
4213
4214         * who-users.c (print_uptime): Call getloadavg only if we have it.
4215
4216 Fri Apr 12 22:03:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4217
4218         * configure.in (LINGUAS): Add de.
4219
4220         * date.c (usage): Describe %e and %z.  Reported by Karl Berry.
4221
4222         * who-users.c: Mark translatable strings in new code.
4223
4224 Wed Apr 10 21:26:30 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4225
4226         * configure.in: Add test for boot_time.
4227         From Kaveh Ghazi.
4228
4229         * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
4230
4231         * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
4232         (BUILT_SOURCES): Add uptime.c.
4233         (MOSTLYCLEANFILES): Add uptime.c.
4234         (uptime.c): Add rule to build it from who-users.c.
4235
4236         * who-users.c: Reindent.
4237         (UT_TIME_MEMBER): New macro.
4238         (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
4239         (print_entry): Likewise.
4240
4241 Tue Apr  9 23:57:19 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4242
4243         * who-users.c (print_uptime) [UPTIME]: New function.  From Kaveh Ghazi.
4244
4245 Sun Apr  7 11:58:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4246
4247         * seq.c (print_numbers): Rearrange loops to get it right.
4248         Reported by Karl Eichwalder <ke@ke.Central.DE>.
4249
4250         * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
4251         is inconsistent with START and LIMIT.
4252         (usage): Clean up help message.
4253
4254         * factor.c (usage): Give minimal description of the program.
4255         (print_factors): Give a better diagnostic.
4256         (main): Suggest --help upon failure.
4257         Reported by Karl Eichwalder <ke@ke.Central.DE>.
4258
4259         * seq.c (print_numbers): Fix off-by-one error in
4260         backwards-counting loop.  Reported by Karl Eichwalder.
4261
4262         * strftime.c (mon_week_ISO): New function to implement new %V format.
4263         (sun_week): Make TM parameter `const'.
4264         (mon_week): Likewise.
4265         (mon_week): Rewrite to implement %W format correctly.
4266         (strftime): Handle %V format.
4267         Reported by Arne Juul.
4268
4269 Fri Apr  5 07:33:00 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4270
4271         * strftime.c (sun_week): Make %U work properly.
4272         Before, `date -d '1 Jan 1995' +%U' output `00'.  Now it prints `01'.
4273
4274         * nice.c (main): Simplify option handling.  Before, `nice -18 -- nice'
4275         improperly printed `8'.  Patch from Frank Korz.
4276         (main): Use `if' stmt, not while loop, around getopt invocation.
4277         Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
4278         follows a long option) gets an error.
4279
4280 Thu Apr  4 20:14:02 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4281
4282         * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
4283         `-Xc -D__EXTENSIONS__' because of problems with Solaris header
4284         files.  Suggested by Kaveh Ghazi.
4285
4286 Wed Apr  3 07:08:57 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4287
4288         * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
4289         when srcdir != builddir.  From Kaveh Ghazi.
4290
4291         * lib/getugroups.c: Include stdio.h before grp.h.  Because
4292         <grp.h> on alpha OSF1 V2.0 uses "FILE *".  From Kaveh Ghazi.
4293
4294 Sun Mar 31 16:26:06 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4295
4296         * configure.in: Simplify checking for math library.
4297         This also eliminates some confusing output from configure.
4298         Suggested by François Pinard.
4299
4300 Fri Mar 29 22:13:10 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4301
4302         * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
4303         -I../intl.  With the former, compiles didn't find libintl.h when
4304         configured with `--srcdir=..'.  Reported by Marcus Daniels
4305         <marcus@sysc.pdx.edu>.
4306
4307         * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
4308         gets distributed.
4309
4310         * src/Makefile.am (EXTRAdir): Set to $(bindir).
4311
4312 Thu Mar 28 23:01:48 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4313
4314         * ChangeLog.0: New file.
4315         * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
4316
4317 Thu Mar 28 00:06:28 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4318
4319         * man/Makefile.am (man_MANS): Add chroot.1.
4320         * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
4321
4322 Sun Dec 24 10:55:34 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>
4323
4324         * configure.in: Check for chroot a la uname.
4325         * src/chroot.c, man/chroot.1: New files.
4326
4327 Sun Mar 24 11:44:35 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4328
4329         * su.c: Protoize and reorder functions to obviate forward decls.
4330
4331         * seq.c: Make parameters const where appropriate.
4332         Rename global FROM to START.
4333         (print_numbers): Rewrite loops to avoid incrementing.  Instead,
4334         use `x = first + i * increment' paradigm.  Otherwise, with inexact
4335         increment, you could miss the last value.
4336
4337         * xstrtod.c: New file.
4338         * xstrtod.h: New file.
4339         * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
4340         * seq.c: Include xstrtod.h.
4341         (scan_double_arg): Use xstrtod rather than strtod directly.
4342
4343         * src/*: Update FSF's address.
4344
4345 Thu Mar 21 16:43:13 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4346
4347         * src/*.c (main): Declare to be of type int, not void.
4348
4349 Sat Mar 16 10:07:49 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4350
4351         * configure.in (PACKAGE_VERSION): New macro.
4352         (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
4353         * acconfig.h (PACKAGE_VERSION): Add it.
4354         * src/Makefile.am: Remove rules for generating version.c.
4355         Remove references to version.o, version.h, and stamp-v.
4356         [.sh]: Change @VERSION@ to @PKG_VERSION@.
4357         On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
4358         (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
4359         (install-exec-local): New target/rules to make the installed su
4360         binary setuid root or failing that, to delete it.
4361         * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
4362         not @VERSION@.
4363         * version.c: Remove file.
4364         * version.h: Remove file.
4365         * basename.c date.c dirname.c echo.c env.c expr.c factor.c
4366         hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
4367         pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
4368         who-users.c whoami.c yes.c: Don't include version.h.
4369         (main): Use PACKAGE_VERSION instead of version_string.
4370
4371 Fri Mar 15 23:42:29 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4372
4373         * basename.c: Remove __P-protected prototype for basename.
4374         Reported by François Pinard.
4375         (remove_suffix): Move to precede use.  Remove prototype.
4376         Declare formal parameter SUFFIX to be const.
4377
4378         * pathchk.c (validate_path): Cast path_max to size_t before
4379         comparing with strlen(path).
4380
4381         * who-users.c (read_utmp): Declare n_read to be of type size_t
4382         rather than int.
4383
4384 Tue Mar 12 17:52:05 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4385
4386         * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
4387         id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
4388         sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
4389         yes.c (main): Initialize for internationalized message support:
4390         call setlocale, bindtextdomain, and textdomain.
4391         * system.h: Add definitions and includes for NLS.
4392         * Makefile.am (SUBDIRS): Add intl and po.
4393         * src/Makefile.am (datadir): Define.
4394         (localedir): Define.
4395         (DEFS): Add LOCALEDIR definition.
4396         (LDADD): Add @INTLLIBS@.
4397         * aclocal.m4: Add NLS-related macro definitions from
4398         gettext distribution.
4399         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
4400         HAVE_STPCPY): New macros.
4401         Add PACKAGE and VERSION.
4402         * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
4403         (VERSION): Likewise.
4404         (ALL_LINGUAS): Define.
4405         (ud_GNU_GETTEXT): Use it.
4406         Link an nls file.
4407         (AC_OUTPUT): Reflect addition of two new directories, intl and po.
4408         Create po/Makefile.
4409         Mostly from François Pinard.
4410
4411 Wed Mar  6 21:40:34 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4412
4413         * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
4414         declare formal parameter.
4415
4416 Tue Mar  5 22:49:33 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4417
4418         * getdate.y (RelativeMonth): Add 1900 to the year so that relative
4419         date specs that push the year through the end of the century work.
4420         For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
4421         From Peter Dalgaard (pd@kubism.ku.dk).
4422
4423 Mon Mar  4 23:46:43 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4424
4425         * seq.c (main): Exit after processing --version.
4426         Reported by François Pinard.
4427
4428 Fri Mar  1 23:46:32 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4429
4430         * expr.c (docolon): Don't initialize re_syntax_options to
4431         deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
4432         \?, \+, and \|.  Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
4433
4434         * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
4435         (skip) [_WIN32 && _O_BINARY]: Use it.
4436         (read_char): Likewise.
4437         (read_block): Likewise.
4438         [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
4439         Based on changes by Gary Newman <gnewman@shore.net>.
4440
4441 Wed Feb 28 21:48:07 1996  Paul Eggert  <eggert@twinsun.com>
4442
4443         * configure.in (LOCALTIME_CACHE):
4444         Also define if localtime mishandles unsetting TZ.
4445         This works around a localtime bug in mips-dec-ultrix.
4446
4447 Wed Feb 28 23:08:24 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4448
4449         * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
4450         (noinst_HEADERS): Add xstrtoul.h.
4451
4452         * factor.c: General cleanup.  Use xstrtoul, not atoi.
4453         Change output format.  Allow inputs as large as ULONG_MAX.
4454         Allow more than one command line argument.
4455
4456         * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
4457         of the pre-ANSI function definition so ansi2knr doesn't munge it.
4458
4459         * src/Makefile.am: Adapt for automake-0.30.
4460         * lib/Makefile.am: Likewise.
4461
4462         * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
4463
4464 Sun Feb 25 22:19:52 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4465
4466         * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
4467         (MOSTLYCLEANFILES): Add who.c and users.c.
4468         (who.c): New rule to create this file.  Concatenate definition of
4469         WHO and contents of who-users.c.
4470         (users.c): New rule to create this file.  Concatenate definition of
4471         USERS and contents of who-users.c.
4472
4473 Sat Feb 24 12:20:58 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4474
4475         * readtokens.c: Unprotoize.
4476
4477         * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
4478         for function dcls and munge them.
4479         (arithf): Likewise.
4480         (arithdivf): Likewise.
4481
4482         * test.c: __P-protect forward declarations.
4483         (main): Protoize function definition.
4484
4485         * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
4486         not int.
4487
4488         * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
4489         so expr's pattern matching uses BASIC (not GNU-extended) REs.
4490         Reported by Jim Kingdon.
4491
4492         * who-users.c (print_entry): Use strchr, not index.
4493
4494         * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
4495         * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
4496         definition of AF_INET on at least SunOS 4.
4497
4498 Tue Feb 13 23:49:16 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4499
4500         * who-users.c (main): When failing because there were
4501         `too many arguments,' say so.
4502
4503 Mon Feb 12 23:26:05 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4504
4505         * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
4506         and inet_ntoa.
4507         (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
4508         * lib/canon-host.c: New file.
4509         * lib/Makefile.am (su_SOURCES): Add canon-host.c.
4510         * src/who.c (print_entry): If possible, canonicalize the host hame.
4511         From Miles Bader (miles@gnu.ai.mit.edu).
4512
4513         Update for automake-0.29.
4514         * Makefile.am (CONFIG_HEADER): Don't define.  Automake now does it.
4515         * src/Makefile.am: Likewise.
4516         * lib/Makefile.am: Likewise.
4517         * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
4518         * man/Makefile.am (man_MANS): Renamed from MANS.
4519
4520 Wed Jan 31 23:40:50 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4521
4522         * lib/strftime.c (add_num_tz): New function.
4523         (strftime): Handle new %z format.
4524         * date.c (main): Accept new option, --rfc-822 (-R).
4525         (show_date): Use RFC822-mandated strftime format.
4526         From H. Peter Anvin (hpa@storm.net).
4527         (usage): Add a line describing the new option.
4528
4529         * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
4530         before it's defined.
4531
4532 Mon Jan 29 19:24:04 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4533
4534         * acconfig.h (PROTOTYPES): Define it.
4535
4536 Fri Jan 19 22:00:08 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4537
4538         * aclocal.m4 (fp_PROG_INSTALL): New macro.
4539         * configure.in: Use it instead of AC_PROG_INSTALL.
4540
4541         * who-users.c: Protoize.
4542
4543 Wed Jan 17 23:37:59 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4544
4545         * stty.c: Protoize and __P-protect forward dcls.
4546         (visible): Change parameter type to unsigned int from unsigned char.
4547         (integer_arg): Use xstrtol instead of open-coding this.
4548
4549         * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
4550         (HEADERS): Add xstrtol.h.
4551
4552         * test.c (advance): Protoize function.
4553
4554         * sleep.c (argdecode): Declare parameter const.
4555
4556 Sat Jan 13 22:31:23 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4557
4558         * stty.c: Indent cpp directives.
4559
4560 Sun Jan  7 23:56:03 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4561
4562         Use automake to generate Makefile.in files.
4563         * Makefile.am: New file.
4564         * doc/Makefile.am: New file.
4565         * lib/Makefile.am: New file.
4566         * man/Makefile.am: New file.
4567         * src/Makefile.am: New file.
4568
4569         * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
4570         used in place of PROGS.
4571
4572 Sat Jan  6 05:13:40 1996  Jim Meyering  (meyering@na-net.ornl.gov)
4573
4574         * configure.in (PACKAGE, VERSION): New variables.
4575         (fp_C_PROTOTYPES): Use it.
4576
4577         * printf.c (print_esc_char): Change type of argument from char
4578         to int to avoid potential promotion problem.
4579         * uname.c (print_element): Likewise.
4580
4581         * system.h [__P]: New macro.
4582
4583         * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
4584         hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
4585         printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
4586         whoami.c, yes.c: Protoize and __P-protect forward dcls.
4587
4588         * who-users.c: New file.  Renamed from who.c.
4589         * who.c: Define WHO and include who-users.c.
4590         * uses.c: Define USERS and include who-users.c.
4591
4592         * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
4593         (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
4594         getgroups (0, NULL) to compute number of groups at run time
4595         rather than relying on NGROUPS_MAX at compile time.
4596         (print_full_info) [HAVE_GETGROUPS]: Likewise.
4597         Suggestion from Roland McGrath.
4598
4599         * su.c: Remove NGROUPS_MAX junk.  It wasn't being used.
4600
4601 Wed Jan  3 19:03:26 1996  Paul Eggert  <eggert@twinsun.com>
4602
4603         * configure.in (LOCALTIME_CACHE): Define if tzset exists and
4604         if localtime caches TZ.  Check for tzset.
4605         * acconfig.h (LOCALTIME_CACHE): New macro.
4606         * date.c (putenv): Declare.
4607         (universal_time): Remove.
4608         (main): If -u is given, set TZ to "UTC0"; this causes date to use
4609         UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
4610         (show_date): Just use localtime and a single format, since TZ will
4611         be set properly if -u is given.
4612
4613 Fri Dec 22 21:34:55 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
4614
4615         * configure.in: Touch stamp-h only if config.h is remade.
4616
4617 Sun Nov 26 16:09:33 1995  Jim Meyering  (meyering@comco.com)
4618
4619         * test.c (usage): Clarify usage.  From Karl Berry.
4620
4621 Wed Nov 22 23:12:47 1995  Jim Meyering  (meyering@comco.com)
4622
4623         * Makefile.in (all et. al.): If make was invoked with -k and a
4624         sub-make fails, fail after the loop rather than exiting right away.
4625         Otherwise, make's -k option could be ineffective.
4626
4627 Thu Nov 16 21:25:45 1995  Jim Meyering  (meyering@comco.com)
4628
4629         * Makefile.in (default): New default target.  Depend on `all' to work
4630         around bug in AIX-3.2.5's /bin/make.  Reported by Andreas Luik
4631         <luik@isa.de>.
4632
4633 Tue Nov  7 23:53:20 1995  Jim Meyering  (meyering@comco.com)
4634
4635         * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
4636         From Theodore Ts'o and Ulrich Windl.
4637
4638 Sun Oct 29 08:47:50 1995  Jim Meyering  (meyering@comco.com)
4639
4640         * test.c [TEST_STANDALONE]: Define.
4641         * src/Makefile.in (test.o): Remove special rule.
4642
4643 Sat Oct 28 00:49:13 1995  Jim Meyering  (meyering@comco.com)
4644
4645         * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
4646         * configure.in: Use it.
4647
4648         * lib/Makefile.in (INCLUDE, COMPILE): New variables.
4649         (.c.o): Rewrite to be more like src/Makefile.in.
4650         Add line that (--with-autodeps) will include mkdep-Makefile.
4651         (distclean): Remove .deps.
4652         * src/Makefile.in: Likewise.
4653
4654         * mkdep-Makefile: New file.
4655         * Makefile.in (DISTFILES): Add mkdep-Makefile.
4656
4657         * doc/Makefile.in (mostlyclean): Remove *.info.
4658
4659         * date.c: New option --reference=FILE (-r FILE) analogous to the
4660         like-named touch option.
4661         (main): Recognize it and give diagnostic for misuse.
4662         (usage): Describe briefly.
4663         From Franc,ois Pinard.
4664
4665         * date.c (batch_convert): Close input stream also when it's not stdin.
4666         (main): Reorganize to do option-consistency checks before all else.
4667
4668 Tue Sep 26 23:05:01 1995  Jim Meyering  (meyering@comco.com)
4669
4670         * man/Makefile.in (install-data, uninstall): Use sed not basename.
4671         The GNU Coding Standard suggests that only a select set of
4672         relatively standard utilities be used in Makefiles.  basename is
4673         not among them.  Suggested by Ulrich Drepper.
4674
4675 Tue Aug  8 22:57:34 1995  Jim Meyering  (meyering@comco.com)
4676
4677         * yes.c: Include system.h to get definition of _.
4678
4679 Mon Aug  7 23:27:54 1995  Jim Meyering  (meyering@comco.com)
4680
4681         * system.h (_): Define macro -- as empty for now.
4682         * src/*.c: Annotate localizable strings with _(...).  From Franc,ois.
4683
4684         * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
4685         From Franc,ois.
4686
4687 Fri Jun 23 23:04 1995  Jim Meyering  (meyering@comco.com)
4688
4689         * configure.in (AC_REPLACE_FUNCS): Add memcpy and memset.
4690         Add checks for floor, modf, and rint -- all used by seq.c.
4691
4692 Mon Jun 12 00:26:54 1995  Jim Meyering  (meyering@comco.com)
4693
4694         * getdate.y (Convert): Use 2037 as threshold, not 1999.
4695         Before years after 1999 were treated as invalid.
4696         From Andreas Schwab.
4697
4698 Sat May 27 00:35:47 1995  Jim Meyering  (meyering@comco.com)
4699
4700         * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
4701         Without this, SunOS doesn't get type for memchr.
4702         Reported by Kaveh Ghazi.
4703
4704 Sun May 21 07:20:55 1995  Jim Meyering  (meyering@comco.com)
4705
4706         * Makefile.in (.PHONY): TAGS is not a phony target.  From Franc,ois.
4707
4708         * All Makefile.in (install-exec, install-exec): New targets.
4709         From Karl Berry.
4710
4711         * all Makefile.in (maintainer-clean): Renamed from realclean
4712         per GNU Standards.
4713
4714 Mon May 15 01:00:08 1995  Jim Meyering  (meyering@comco.com)
4715
4716         * all source files (usage): Include one- or two-line synopsis
4717         in --help output.  From Karl Berry.
4718
4719 Sat May 13 08:57:20 1995  Jim Meyering  (meyering@comco.com)
4720
4721         * lib/Makefile.in (maintainer-clean): Rename from realclean.
4722         (.PHONY): New dependencies.
4723         [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
4724
4725 Fri May 12 21:25:50 1995  Jim Meyering  (meyering@comco.com)
4726
4727         * test.c (usage): Remove duplicate descriptions of --help
4728         and --version.  From Karl Berry.
4729
4730         * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
4731         * test.c: Likewise.
4732         * who.c: Likewise.
4733
4734         * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
4735         Remove all reference to (now unused) safe-xstat.hin.
4736
4737 Tue Apr 18 22:57:43 1995  Jim Meyering  (meyering@comco.com)
4738
4739         * configure.in (AC_OUTPUT): Use echo, not date, to avoid creating
4740         unnecessary conflicts for people using version control software
4741         like RCS and CVS.
4742         (AC_ARG_PROGRAM): Use it.
4743
4744 Fri Mar 10 21:14:11 1995  Jim Meyering  (meyering@comco.com)
4745
4746         * src/*.c: Update Copyright dates.
4747
4748 Mon Feb 27 08:05:25 1995  Jim Meyering  (meyering@comco.com)
4749
4750         * system.h: Separate errno declaration from STDC_HEADERS.
4751         Remove bcopy, bzero, strchr, strrchr definitions.
4752
4753         * stty.c (main, set_window_size): Use memset instead of bzero.
4754         * su.c (correct_password): Likewise.
4755
4756         * seq.c Remove \n's from error format strings.
4757         (main): Let `seq 1 1' work.
4758         Invoke usage always with 1 when failing.
4759
4760 Sat Feb 11 08:27:12 1995  Jim Meyering  (meyering@comco.com)
4761
4762         * src/Makefile.in (install): Fix rules for su to avoid relying on
4763         just-built `id' executable.  That would lose when cross-compiling and
4764         on systems like GNU in which a user may have several effective IDs.
4765         (SOURCES, OBJECTS, PROGS): Add seq.
4766         * Makefile.in (PROGS): Add seq.
4767
4768         * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
4769         (AC_CHECK_FUNCS): Add strchr and strrchr.
4770         * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
4771
4772         * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
4773         Separate errno declaration from STDC_HEADERS.
4774
4775 Thu Jan 26 23:38:04 1995  Jim Meyering  (meyering@comco.com)
4776
4777         * getdate.y (ToSeconds): Properly convert 12am and 12pm.
4778         From Takeshi Sone <ts1@tsn.or.jp>.
4779
4780         * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
4781         (all): Depend on safe-stat.h and safe-lstat.h.
4782
4783         * date.c (batch_convert): Remove any trailing newline from offending
4784         line before including it in the `invalid date' error from `date -f'.
4785         Reported by Franc,ois Pinard.
4786
4787 Sat Dec 31 09:25:09 1994  Jim Meyering  (meyering@comco.com)
4788
4789         * factor.c: New file.
4790         * Makefile.in (PROGS): Add factor.
4791         * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
4792         (factor): New rule.
4793
4794 Mon Dec 26 18:31:08 1994  Jim Meyering  (meyering@comco.com)
4795
4796         * test.c (term): Running `./test \( a -o b' got a seg fault.
4797         From from Klaus.Reichl@aut.alcatel.at.
4798
4799 Mon Dec 19 22:05:12 1994  Jim Meyering  (meyering@comco.com)
4800
4801         * src/*.c: Include "error.h" rather than simply declaring
4802         `void error ();'.
4803         * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
4804
4805         * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
4806         (distclean): Remove references to safe-l?stat.c.
4807         Remove all related rules and dependencies.
4808
4809         * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
4810         Now that we always define the functions, these are no longer needed.
4811
4812         * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
4813         * who.c (print_entry): Likewise.
4814         * test.c (test_stat, binary_operator): Likewise.
4815         (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
4816
4817 Mon Dec 12 22:42:09 1994  Jim Meyering  (meyering@comco.com)
4818
4819         * expr.c (docolon): Zero out re_buffer and re_regs before using them.
4820         From H.J. Lu <hjl@nynexst.com>.
4821
4822 Sun Dec  4 14:53:12 1994  Jim Meyering  (meyering@comco.com)
4823
4824         * dirname.c (main): Use strchr and strrchr instead of index and rindex.
4825         * echo.c (main): Likewise.
4826         * env.c (main): Likewise.
4827         * pathchk.c (validate_path): Likewise.
4828         * printf.c (print_formatted, print_esc): Likewise.
4829         * test.c [member]: Likewise.
4830         * who.c (extract_trimmed_name): Likewise.
4831         * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
4832         rindex instead of the other way around.
4833
4834         * doc/Makefile.in (DISTFILES): Add getdate.texi.
4835
4836 Sat Dec  3 07:59:55 1994  Jim Meyering  (meyering@comco.com)
4837
4838         * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
4839         (AC_CHECK_HEADERS): Add stdlib.h.
4840         (LIBS): If the strtod replacement is required, check for pow in -lm.
4841         * src/Makefile.in (printf): Remove hard-coded -lm.  Not every
4842         system has it.
4843
4844 Thu Nov 17 23:47:26 1994  Jim Meyering  (meyering@comco.com)
4845
4846         * who.c (list_entries): Delete.  Split in two actually...
4847         (list_entries_users, list_entries_who, userid_compare): New functions.
4848         (list_entries_users): Sort the user names.  Reported by
4849         Michael I Bushnell.
4850         Topologically sort the functions and remove fwd declarations.