1 2001-01-20 Jim Meyering <meyering@lucent.com>
3 * configure.in: Remove jm_CHECK_ALL_TYPES.
4 Now it's invoked by jm_MACROS.
6 2001-01-04 Jim Meyering <meyering@lucent.com>
8 * src/date.c (main): Fail when --rfc-822 (-R) is specified along
9 with a format string. Reported by Jochen Hein.
11 2000-12-17 Jim Meyering <meyering@lucent.com>
13 * doc/texinfo.tex: Update from master repository.
14 * config.sub: Likewise.
15 * config.guess: Likewise.
17 * djgpp: New directory.
19 * Makefile.am (SUBDIRS): Add djgpp.
20 * configure.in (AC_OUTPUT): Add djgpp/Makefile.
23 2000-12-08 Jim Meyering <meyering@lucent.com>
25 * src/dirname.c: Include xalloc.h.
26 (main): Use dir_name rather than the underlying dir_name_r.
27 The former now handles cwd-relative names with drive-letter prefixes.
29 2000-12-02 Jim Meyering <meyering@lucent.com>
31 * src/seq.c (valid_format): Move pre-increment to a separate statement
34 * src/id.c: Move dcls of globals used only in main...
36 (usage): Clarify option descriptions.
38 2000-11-18 Jim Meyering <meyering@lucent.com>
40 * po/Makefile.in.in: Sync with the one from fileutils.
42 * configure, config.h.in, Makefile.in, etc.: Regenerate using the
43 very latest version (in CVS) of autoconf.
45 2000-11-17 Jim Meyering <meyering@lucent.com>
47 * GNUmakefile (.NOTPARALLEL): New target. Prevent unwanted parallelism.
48 Suggestion from Ulrich Drepper.
50 * src/pinky.c: Explicitly include sys/types.h before including system.h.
51 * src/uptime.c: Likewise.
52 * src/users.c: Likewise.
53 * src/who.c: Likewise.
55 2000-11-13 Paul Eggert <eggert@twinsun.com>
57 * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
58 be tested with #ifdef, not with #if.
60 2000-11-12 Jim Meyering <meyering@lucent.com>
62 * src/date.c (show_date): Add a comment explaining why the
63 format string must not be translatable via _(). From Paul Eggert.
65 2000-10-31 Jim Meyering <meyering@lucent.com>
67 * doc/sh-utils.texi: Clean up indentation and punctuation.
68 Fix a couple typos. From Brian Youmans.
70 2000-10-30 Jim Meyering <meyering@lucent.com>
72 * configure, config.h.in, Makefile.in, etc.: Regenerate using the
73 very latest version (in CVS) of autoconf.
75 2000-10-29 Jim Meyering <meyering@lucent.com>
79 2000-10-27 Jim Meyering <meyering@lucent.com>
81 * src/date.c (usage): Mention the time zone, UTC, and write the date
82 in ISO format in the description of %s. Suggestion from Karl Berry.
84 2000-10-25 Jim Meyering <meyering@lucent.com>
86 * src/dirname.c: Include dirname.h.
87 (main): Use dir_name_r rather than open-coding it.
89 2000-10-23 Jim Meyering <meyering@lucent.com>
91 * Makefile.am (EXTRA_DIST): Add .prev-version.
93 2000-10-18 Paul Eggert <eggert@twinsun.com>
95 * src/date.c (universal_time): Remove; it's just a temptation to
97 (main): The -u option now just sets TZ; it doesn't do anything else.
98 (show_date): Do not do anything special if -u is set.
99 This affects the behavior of the -I and -R options.
100 * doc/sh-utils.texi: Document the above.
102 2000-10-18 Jim Meyering <meyering@lucent.com>
104 * doc/sh-utils.texi (Examples of date): Fix a typo.
106 2000-10-11 Jim Meyering <meyering@lucent.com>
108 * doc/sh-utils.texi (Time directives) [%S]: Range is 0..60, not 0..61.
110 2000-10-06 Paul Eggert <eggert@twinsun.com>
112 Undo the effect of the 1997-07-12 change to date.c; it
113 broke "date -u MMDDhhmm" and it wasn't documented.
114 This reverts to the behavior of the 1996-01-03 patch.
116 * src/date.c (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
117 (batch_convert): Don't futz with TZ.
118 (main): -u now parses all dates as UTC, not just some.
119 Reported by Karl-Michael Schneider.
120 * tests/date/Test.pm (utc-0, utc-1, relative-2): Adjust to
123 2000-09-29 Jim Meyering <meyering@lucent.com>
125 * src/yes.c (usage): Add a separate usage line, just for `OPTION'.
126 Suggestion from M. P. Suzuki.
128 2000-09-09 Jim Meyering <meyering@lucent.com>
130 * src/date.c (usage): Make the second `Usage' line more precise
131 (also making it match the texinfo documentation).
132 From Karl Eichwalder.
134 * doc/sh-utils.texi (Setting the time): Correct the capitalization of
135 `HHMM' in the info-rendering of the texinfo documentation.
136 Reported by Karl Eichwalder.
138 2000-08-14 Jim Meyering <meyering@lucent.com>
140 * src/tee.c (main): Remove incorrect `FIXME' comment.
142 2000-08-07 Paul Eggert <eggert@twinsun.com>
144 * src/su.c (xputenv): Invoke xalloc_die instead of printing
147 2000-07-30 Jim Meyering <meyering@lucent.com>
149 * src/tee.c (tee): Use SET_BINARY and SET_BINARY2.
152 * src/help-version: Remove file. Move it to ...
153 * tests/help-version: ...here
154 * tests/Makefile.am (TESTS): Add help-version.
155 (TESTS_ENVIRONMENT): Define.
156 * src/Makefile.am (EXTRA_DIST): Remove help-version.
157 (TESTS): Remove definition.
158 (TESTS_ENVIRONMENT): Remove definition.
160 2000-07-23 Jim Meyering <meyering@lucent.com>
162 * src/help-version (su_args): Punt, so we don't try to start a shell.
164 * src/su.c: Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
165 rather than if _POSIX_VERSION is defined. Remove declarations of
166 getpwuid, getgrgid, and getuid, now that they're in sys2.h.
167 Prompted by a report from John David Anglin.
169 * src/sys2.h [!HAVE_DECL_GETPWUID]: Declare getpwuid.
170 [!HAVE_DECL_GETGRGID]: Declare getgrgid.
171 [!HAVE_DECL_GETUID]: Declare getuid.
173 2000-07-19 Jim Meyering <meyering@lucent.com>
175 * src/date.c (batch_convert): Free `initial_TZ' only if it was set.
176 Reported by Michael Hohn.
178 2000-07-17 Jim Meyering <meyering@lucent.com>
180 * src/stty.c (visible): Don't mark `<undef>' for translation.
181 The standard requires that exact string.
183 2000-07-09 Jim Meyering <meyering@lucent.com>
185 * config.guess: Update from FSF.
186 * config.sub: Likewise.
188 * src/Makefile.am (seq_LDADD): Don't hard-code `-lm' -- some systems
189 don't have/need it. From Bruno Haible.
191 2000-07-06 Jim Meyering <meyering@lucent.com>
193 * src/help-version: Punt on `groups' test, since all it does
194 is run `id -Gn', and groups fails if GNU id is not installed.
195 Reported by Christian Krackowizer.
197 2000-07-05 Bruno Haible <haible@clisp.cons.org>
199 * tests/nice: Avoid syntax error in "test" when `nice` generates
202 2000-07-04 Jim Meyering <meyering@lucent.com>
206 * tests/date/Test.pm (test_vector): Disable test #2 for all systems,
207 even though it fails only on SunOS4.
209 2000-07-01 Jim Meyering <meyering@lucent.com>
211 * configure.in (jm_DUMMY_1): Wrap a snippet in a macro definition
212 so we can use AC_REQUIRE.
213 (jm_BOOT_TIME): Likewise.
215 2000-06-17 Bruno Haible <haible@clisp.cons.org>
217 * configure.in: Add pinky, users, who to OPTIONAL_BIN_PROGS if either
218 <utmp.h> or <utmpx.h> exists. Add uptime only if either <utmp.h> or
220 * src/Makefile.am (bin_PROGRAMS): Remove pinky, users, who from here...
221 (EXTRA_PROGRAMS): ... and add them here.
223 2000-06-26 Jim Meyering <meyering@lucent.com>
225 `id -Gn' (invoked by groups) would fail without giving a diagnostic
226 on malconfigured systems.
227 * src/id.c (print_user): Give a diagnostic if number->name lookup fails.
228 (print_group): Likewise.
230 2000-06-25 Jim Meyering <meyering@lucent.com>
232 * configure.in (ALL_LINGUAS): Add Danish (da).
234 2000-06-21 Jim Meyering <meyering@lucent.com>
236 * tests/stty/basic-1: New test for that.
237 * src/stty.c (valid_options): Don't segfault on `stty erase -'.
238 Patch from Harry Liu.
240 2000-06-15 Jim Meyering <meyering@lucent.com>
242 * tests/date/Test.pm: Add tests for getdate.y fix.
244 2000-06-14 Jim Meyering <meyering@lucent.com>
246 * src/help-version: Punt on nohup; give it --version.
248 2000-06-10 Jim Meyering <meyering@lucent.com>
250 * doc/sh-utils.texi: Typo-fixes and some clean-up from Brian Youmans.
252 2000-05-29 Jim Meyering <meyering@lucent.com>
254 * tests/nice: Remove now-unused reference to srcdir.
256 * src/help-version: Use `WARNING', not just `Warning' in the
257 broken-/bin/sh diagnostic, to be consistent with other such warnings.
259 2000-05-21 Jim Meyering <meyering@lucent.com>
261 * tests/nice: Disable test on djgpp.
263 2000-05-15 Jim Meyering <meyering@lucent.com>
265 * tests/date/Test.pm (test_vector): Skip the %c test on SunOS4 systems.
266 Suggested by Paul Eggert. Reported by Volker Borchert.
268 2000-05-13 Jim Meyering <meyering@lucent.com>
270 * src/groups.sh: Detect and report write failure of --help/--version.
271 * src/nohup.sh: Likewise.
273 2000-05-11 Jim Meyering <meyering@lucent.com>
275 * src/date.c (usage): Don't call close_stdout_status directly,
276 since that didn't cover --version output.
277 (main): Instead, call close_stdout_set_status and arrange to
278 call close_stdout via atexit.
279 * src/printenv.c: Likewise.
280 * src/tty.c: Likewise.
282 * src/true.c (usage): Don't call close_stdout directly, since that
283 didn't cover --version output.
284 (main): Arrange to call close_stdout via atexit, instead.
285 * src/yes.c: Likewise.
286 * src/sleep.c: Likewise.
288 2000-05-09 Jim Meyering <meyering@lucent.com>
290 * src/sys2.h (case_GETOPT_VERSION_CHAR): Don't call close_stdout.
291 * src/help-version: New test.
292 * src/Makefile.am (TESTS): Define.
293 (TESTS_ENVIRONMENT): Likewise.
294 (EXTRA_DIST): Add help-version.
296 2000-05-08 Jim Meyering <meyering@lucent.com>
300 2000-05-07 Jim Meyering <meyering@lucent.com>
304 * src/basename.c: Include "closeout.h".
305 (main): Call atexit with close_stdout.
306 * src/chroot.c: Likewise.
307 * src/dirname.c: Likewise.
308 * src/echo.c: Likewise.
309 * src/env.c: Likewise.
310 * src/expr.c: Likewise.
311 * src/factor.c: Likewise.
312 * src/hostid.c: Likewise.
313 * src/hostname.c: Likewise.
314 * src/id.c: Likewise.
315 * src/logname.c: Likewise.
316 * src/nice.c: Likewise.
317 * src/pathchk.c: Likewise.
318 * src/pinky.c: Likewise.
319 * src/printf.c: Likewise.
320 * src/pwd.c: Likewise.
321 * src/seq.c: Likewise.
322 * src/stty.c: Likewise.
323 * src/su.c: Likewise.
324 * src/test.c: Likewise.
325 * src/uname.c: Likewise.
326 * src/uptime.c: Likewise.
327 * src/users.c: Likewise.
328 * src/who.c: Likewise.
329 * src/whoami.c: Likewise.
330 * src/tee.c: Likewise. Remove explicit close_stdout.
332 * src/yes.c Include "closeout.h".
333 (usage): Call close_stdout just before exit.
334 * src/sleep.c: Likewise.
335 * src/true.c: Likewise.
336 * src/date.c (usage): Call close_stdout_status.
337 * src/printenv.c (usage): Likewise.
339 * tests/date/Test.pm ($Test::env{'rfc822-1'}): Add TZ=UTC0.
341 2000-05-06 Jim Meyering <meyering@lucent.com>
343 * src/Makefile.am (sleep_LDADD): Add @LIB_CLOCK_GETTIME@ and
346 * src/tty.c (main): Warn about arguments, don't fail.
347 (usage): Call close_stdout_status from here as well as from main.
349 2000-05-05 Jim Meyering <meyering@lucent.com>
351 Exit nonzero upon write failure.
352 * src/printf.c: Include "closeout.h".
353 (main): Call close_stdout.
354 Reported by Ian Jackson via Michael Stone.
356 2000-05-04 Jim Meyering <meyering@lucent.com>
358 * Makefile.maint (my-distcheck): Remove spurious blank line.
359 Remove $(DEPDIR) *after* making distclean, not before.
361 2000-04-30 Jim Meyering <meyering@lucent.com>
363 * src/yes.c: Detect and terminate upon write failure.
365 2000-04-14 Jim Meyering <meyering@lucent.com>
367 * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and
368 remove unnecessary uses of `defined' (aesthetics).
370 2000-04-12 Jim Meyering <meyering@lucent.com>
372 Move some code into m4/.
373 * configure.in (_GNU_SOURCE): Don't define here.
374 (AC_SYS_LARGEFILE): Don't use here.
375 (AM_C_PROTOTYPES): Don't use here.
376 (AC_DEFINE): Use 3-arg form.
377 * acconfig.h: Remove now-unused file.
379 2000-04-09 Jim Meyering <meyering@lucent.com>
381 * configure.in (ALL_LINGUAS): Add Estonian (et).
383 2000-04-01 Jochen Hein <jochen@jochen.org>
385 * src/date.c: Use the "C" locale when using --rfc-822 (-R), as
386 required by rfc822. Before, in the de_DE locale, date would
387 print the German weekday and month abbreviations.
389 * tests/date/Test.pm: Add test for rfc822 format and foreign
392 2000-04-04 Jim Meyering <meyering@lucent.com>
394 * man/Makefile.am (man_MANS): Add uptime.1.
395 * man/uptime.x: New file.
397 * man/Makefile.am (man_MANS): Add factor.1.
398 * man/factor.x: New file.
400 * tests/seq/basic: Split a long line and tweak for font-lock mode.
401 * tests/factor/basic: Likewise.
402 * tests/basename/basic: Likewise.
404 2000-03-29 Paul Eggert <eggert@twinsun.com>
406 * src/date.c: Include <langinfo.h> if it exists.
407 (DATE_FMT_LANGINFO): New macro.
408 (show_date): Use it to get the locale-specific default format for
411 2000-03-19 Jim Meyering <meyering@lucent.com>
415 * doc/sh-utils.texi (chroot invocation): Include a couple tips and
418 * doc/getdate.texi (Calendar date item): Fix typos.
421 2000-03-18 Jim Meyering <meyering@lucent.com>
423 * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds.
425 2000-03-12 Jim Meyering <meyering@lucent.com>
427 Merge from textutils.
428 * src/system.h: (O_BINARY, O_TEXT): Define if necessary.
429 (SET_BINARY, SET_BINARY2): Define.
430 (DEV_BSIZE): Define to BBSIZE if appropriate.
432 2000-03-11 Jim Meyering <meyering@lucent.com>
434 * tests/date/Test.pm: Set the default TZ value to UTC0, not UTC.
435 The latter didn't have any effect on alphaev56-dec-osf4.0f.
437 Final merge with fileutils.
438 * src/system.h: Use standard `#if TIME_WITH_SYS_TIME...' block
439 rather than `#if TM_IN_SYS_TIME' one.
441 2000-02-02 Bruno Haible <haible@clisp.cons.org>
443 * printf.c: Include "unicodeio.h".
444 (usage): Mention \u and \U directives. \x outputs a byte, not a
446 (print_esc): Implement \u and \U.
447 * Makefile.am (printf_LDADD): Add @LIBICONV@.
449 2000-03-03 Jim Meyering <meyering@lucent.com>
451 Make it so stty's rprnt attribute works on HPUX 10.20.
452 * src/stty.c [CREPRINT && !CRPRNT] (CRPRNT): Define.
453 (control_info): Recognize HPUX's CREPRINT.
455 2000-03-02 Jim Meyering <meyering@lucent.com>
457 * doc/sh-utils.texi (printf invocation): Describe new unicode syntax.
460 Unify with fileutils/src/system.h.
461 * src/system.h (ST_NBLOCKS): Sync with recent changes in fileutils.
462 [!_POSIX_VERSION]: Remove declarations of getlogin, ttyname, geteuid.
463 * src/sys2.h: Declare them here, if needed.
465 2000-03-01 Jim Meyering <meyering@lucent.com>
467 * Makefile.am (EXTRA_DIST): Include GNUmakefile.
469 * src/seq.c (get_width_format): Fix portability problem with
472 2000-02-22 Jim Meyering <meyering@lucent.com>
474 * tests/date/Test.pm (datevtime-1): New test.
477 2000-02-15 Jim Meyering <meyering@lucent.com>
479 * man/Makefile.maint ($(man_MANS)): Remove $@-t1.
481 2000-02-13 Jim Meyering <meyering@lucent.com>
483 * tests/Fetish.pm (run_tests): Discard stderr.
484 Reverse diff args, so `expected' is last, as in mk-script.
486 2000-02-12 Jim Meyering <meyering@lucent.com>
488 * tests/mk-script: Invoke `diff' when differences are found.
489 * tests/Fetish.pm (run_tests): Likewise.
491 2000-02-09 Jim Meyering <meyering@lucent.com>
493 * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard
494 to go along with corrected autoconf test: Reported by Gaël Quéri.
496 2000-02-05 Jim Meyering <meyering@lucent.com>
500 * src/who.c: Use UT_USER in place of hard-coded `->ut_name' here, too.
501 * src/pinky.c: Likewise.
502 Reported by Tom Tromey and Andreas Schwab.
503 * src/uptime.c (print_uptime): Likewise.
504 * src/users.c (list_entries_users): Likewise.
506 2000-01-30 Jim Meyering <meyering@lucent.com>
510 * src/su.c (correct_password): Guard with `HAVE_GETSPNAM &&
511 HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'.
513 * po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c,
516 2000-01-29 Jim Meyering <meyering@lucent.com>
518 * configure.in: Move library-related tests into m4/lib-check.m4.
519 Remove lib-check for cposix now that we use m4/isc-posix.m4.
521 * src/seq.c: Back out most of the 2000-01-21 and 01-22 changes.
522 [Instead, merely give examples showing how to accomplish the same
523 task with fewer limitations using existing tools. ]
524 Suggestion from Bruno Haible.
525 (valid_format): Rename from check_format.
526 * tests/seq/basic: Remove associated tests and add two equal-width ones.
528 * tests/stty/row-col-1: Set COLUMNS envvar, just to be safe.
530 2000-01-28 Jim Meyering <meyering@lucent.com>
532 * src/stty.c (wrapf): Emit a newline only if 0 < current_col.
533 (screen_columns): Use xstrtol, not atoi.
534 If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.
536 2000-01-23 Jim Meyering <meyering@lucent.com>
538 * configure.in (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
539 AC_SUBST these not here, but rather in m4/, so that the now-shared
540 lib/Makefile.am are all the same.
541 (AC_CHECK_FUNCS): Remove check for utmpname, since it's already
543 Remove many function checks (moved to m4/.)
545 * configure.in (AM_FUNC_STRTOD): Move to m4/.
546 (AC_SUBST(POW_LIBM)): Likewise.
548 * configure.in (SEQ_LIBM): Remove AC_SUBST of a constant.
549 * src/Makefile.am (seq_LDADD): Add -lm rather than constant $(SEQ_LIBM).
551 2000-01-22 Jim Meyering <meyering@lucent.com>
553 * src/sys2.h [! HAVE_DECL_STRTOUL]: Declare strtoul.
554 [! HAVE_DECL_STRTOULL]: Declare strtoull.
555 Required for some AIX systems. Reported by Christian Krackowizer.
557 * configure.in (ALL_LINGUAS): Add Slovenian (sl).
558 (AC_CHECK_HEADERS): Move these checks into m4/.
560 * src/seq.c (enum Format_type): Declare.
561 (format_type): New global to take place of intconv.
562 (format_str): Move global declaration...
564 (check_format): Rename parameter to avoid shadowing global.
565 (DO_printf): New macro.
567 Topologically sort the functions and remove fwd declarations.
569 2000-01-21 Bruno Haible <haible@linuix.math.u-bordeaux.fr>
571 Add support for octal and hexadecimal output.
572 * seq.c (intconv): New variable.
574 (main): Call scan_arg instead of scan_double_arg. Call check_format
576 (scan_int_arg, scan_arg): New functions.
577 (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
578 (print_numbers): If intconv is true, pass an int argument to printf.
580 2000-01-21 Jim Meyering <meyering@lucent.com>
582 * configure.in (ALL_LINGUAS): Add Galician (gl).
584 2000-01-16 Jim Meyering <meyering@lucent.com>
586 * lib/Makefile.am: Sync with fileutils/lib/Makefile.am.
588 * src/date.c (usage): Correct error in %V description.
591 * configure.in: Remove jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
592 AM_FUNC_GETLOADAVG, jm_SYS_PROC_UPTIME, AM_SYS_POSIX_TERMIOS,
593 jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.
595 2000-01-15 Jim Meyering <meyering@lucent.com>
597 * configure.in (AC_REPLACE_FUNCS): Remove gethostname, getusershell,
598 memcpy, and memset. Now that's done in m4/.
599 Remove these, too: stime strcspn stpcpy strstr strtol strtoul.
601 2000-01-12 Jim Meyering <meyering@lucent.com>
603 * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST.
605 2000-01-11 Jim Meyering <meyering@lucent.com>
607 Sync lib/ directories of sh-utils, and textutils.
609 * lib/Makefile.am (libfetish_a_SOURCES): Add diacrit.c, hard-locale.c,
610 linebuffer.c, md5.c, memcasecmp.c, memcoll.c, obstack.c, safe-read.c
611 (noinst_HEADERS): Add bumpalloc.h, diacrit.h, hard-locale.h,
612 linebuffer.h, md5.h, memcasecmp.h, memcoll.h, obstack.h, safe-read.h.
614 * lib/Makefile.am: s/su/fetish/
615 * src/Makefile.am: s/libsu/libfetish/
617 2000-01-10 Jim Meyering <meyering@lucent.com>
621 * src/Makefile.am (sleep_LDADD): Add @POW_LIBM@, for systems that use
622 lib/strtod.c and need -lm to resolve its pow reference.
624 2000-01-07 Jim Meyering <meyering@ascend.com>
628 * tests/basename/Makefile.am (TESTS_ENVIRONMENT): Add `pwd`/ prefix
629 to exported PATH value (though not strictly necessary, here).
630 * tests/factor/Makefile.am (TESTS_ENVIRONMENT): Likewise.
631 * tests/seq/Makefile.am (TESTS_ENVIRONMENT): Likewise.
632 * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Likewise.
634 2000-01-06 Paul Eggert <eggert@set.twinsun.com>
636 * tar/lib/getdate.y: Sync tm_diff with the GNU C Library.
637 (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
638 (tm_diff): Renamed from difftm. All uses changed.
639 Replace body with that taken from GNU C Library 2.1.3pre1.
640 (get_date): Prefer tm_gmtoff to tm_diff if available.
642 2000-01-05 Paul Eggert <eggert@twinsun.com>
645 * src/sleep.c (clock_get_realtime): Return argument, for convenience.
646 (main): Use this to simplify main sleep loop.
648 2000-01-05 Jim Meyering <meyering@ascend.com>
650 Some systems lack a definition of struct timespec (AIX, Ultrix)
651 Reported by Christian Krackowizer.
652 * lib/Makefile.am (noinst_HEADERS): Add nanosleep.h.
653 * lib/nanosleep.h: New file.
654 * lib/nanosleep.c: Include it.
655 Don't include time.h or sys/time.h here.
656 * src/sleep.c: Include it.
657 (AUTHORS): Add Paul Eggert.
659 2000-01-04 Jim Meyering <meyering@ascend.com>
661 * lib/nanosleep.c: Include both time.h and sys/time.h only
662 #if TIME_WITH_SYS_TIME.
664 2000-01-03 Paul Eggert <eggert@twinsun.com>
666 Fix some porting and rounding problems with the new `sleep' code.
668 * configure.in (AC_CHECK_HEADERS): Add fenv.h.
669 (FESETROUND_LIBM): New macro.
671 * lib/xstrtod.c: Add #pragma STDC FENV_ACCESS ON if C99.
672 * src/sleep.c: Likewise.
674 * src/Makefile.am (sleep_LDADD, sleep_DEPENDENCIES): New macros.
676 * src/sleep.c (<fenv.h>): Include if available.
677 (main): Always round floating-point interval calculations upwards,
678 as we must sleep for at least the specified time.
679 Do the right thing with NaNs.
681 (main): Sleep forever if the time calculations overflow.
682 (apply_suffix): Don't assert that *s <= TIME_T_MAX.
684 (clock_get_realtime): Fix typo; address was improperly taken.
686 2000-01-02 Jim Meyering <meyering@ascend.com>
690 * lib/Makefile.in: Regenerate.
694 1999-12-26 Jim Meyering <meyering@ascend.com>
696 * lib/nanosleep.c (nanosleep): New file.
698 1999-12-23 Jim Meyering <meyering@ascend.com>
700 * src/sleep.c (USE_CLOCK_GETTIME): Define.
701 [USE_CLOCK_GETTIME]: Include sys/time.h.
702 (timespec_subtract): New function.
703 (clock_get_realtime): New function.
704 (sighandler): Remove function.
705 (main): Reimplement again, using nanosleep and clock_gettime.
707 * configure.in: Remove check for gettimeofday.
708 Now it's in m4/jm-macros.m4
710 * man/Makefile.summ: Remove now-unused summaries.
712 1999-12-22 Jim Meyering <meyering@ascend.com>
714 * lib/getdate.y (get_date): Fix typo in time_t overflow test.
717 * tests/date/Test.pm (regress-1): New test for the above.
719 1999-12-18 Jim Meyering <meyering@ascend.com>
721 * src/who.c (print_entry): Correct do_lookup test so that who
722 prints whatever host information it has, even without --lookup.
723 Reported by Bill Peters.
725 1999-12-12 Jim Meyering <meyering@ascend.com>
727 Move 120+ lines of stat.h-related macros from system.h (not shared)
728 to sys2.h, which is shared between fileutils, sh-utils, textutils.
729 * src/system.h: Move them from here...
730 * src/sys2.h: ... to here.
732 1999-11-27 Jim Meyering <meyering@ascend.com>
734 Rewrite to allow fractional seconds and to handle SIGCONT.
735 * src/sleep.c (main): Rewrite.
736 (sighandler): New function.
737 (apply_suffix): New function.
738 (timeval_subtract): New function.
739 Reported by Raul Miller.
741 * src/sleep.c (argdecode): Move definition to precede use.
743 (usage): Add elipses to show that sleep allows more than one argument.
745 1999-11-22 Jim Meyering <meyering@ascend.com>
747 * lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c.
749 1999-11-09 Jim Meyering <meyering@ascend.com>
751 * src/expr.c (NEW): Undefine to avoid warning about redefinition.
752 (NEW): Redefine in terms of XMALLOC.
754 * lib/xalloc.h (XMALLOC): Correct misnamed macro parameter name:
757 (XREALLOC): Likewise.
759 1999-11-05 Jim Meyering <meyering@ascend.com>
761 * src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated
764 * configure.in: Move some type/header/member tests into
765 m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of
766 fileutils, textutils, and sh-utils.
768 1999-11-01 Jim Meyering <meyering@ascend.com>
770 * lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
772 1999-10-07 Jim Meyering <meyering@ascend.com>
774 * configure.in (ALL_LINGUAS): Add Japanese (ja).
776 1999-10-04 Jim Meyering <meyering@ascend.com>
778 * depcomp: New file, for automake's new dependency support.
779 * missing: New version, from automake's user-dep-gen-branch.
781 1999-09-28 Jim Meyering <meyering@ascend.com>
783 * src/system.h: Update from the system.h from fileutils.
784 Now they're finally almost identical...
786 1999-09-09 Jim Meyering <meyering@ascend.com>
788 * src/Makefile.am (EXTRAdir): Remove unused variable.
789 (installed_su): Use `$(DESTDIR)$(bindir)' in place of $(bindir).
790 (install-exec-local): Likewise.
791 (.sh): Substitute `$(bindir)' rather than @bindir@.
792 Based on a patch from Andreas Schwab.
794 1999-09-08 Andreas Schwab <schwab@suse.de>
796 * tests/nice: Instead of failing, exit with 77 if running niced.
798 1999-09-08 Jim Meyering <meyering@ascend.com>
800 * src/su.c: Remove declaration of xstrdup.
802 1999-09-02 Jim Meyering <meyering@ascend.com>
804 * src/expr.c: Remove xstrdup declaration.
805 * src/date.c: Likewise.
806 * src/pathchk.c: Likewise.
807 * src/su.c: Likewise.
809 1999-08-29 Jim Meyering <meyering@ascend.com>
811 * tests/nice: Use `nice' instead of $nice.
812 * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend ../src to PATH so
815 * src/env.c (main): Call exit explicitly to avoid warning from gcc.
816 * src/nice.c (main): Likewise.
818 (isinteger): Remove function and prototype.
819 (main): Use xstrtol in place of atoi. Remove associated FIXME comments.
821 * configure.in (AC_YACC): Remove use, now that we require bison.
823 * tests/date/Test.pm (test_vector): Add a test for the Risks-reported
824 problem with syntax like this: Nov 11 1996.
826 * lib/getdate.y (get_date): Rename outermost local `probe' to `quarter'.
827 (get_date): Rename latter local `tm' to probe_tm.
829 * lib/getdate.y (relative_time_table): Change `type' of `THIS' from
830 tMINUTE_UNIT to tUNUMBER. From Urs Thuermann.
831 * tests/date/Test.pm (test_vector): Add tests for use of `this'.
833 1999-08-25 Jim Meyering <meyering@ascend.com>
835 * man/Makefile.summ (seq-summary): Define.
836 * man/Makefile.am (man_MANS): Add seq.1.
837 Reported by Dirk-Jan Faber.
839 1999-08-23 Jim Meyering <meyering@ascend.com>
841 * src/pathchk.c (longopts): Restore accidentally-removed entry for
842 `--portability' long option.
843 * src/chroot.c (usage): Correct --help message.
844 * src/hostid.c (usage): Likewise.
845 * src/hostname.c (usage): Likewise.
846 * src/logname.c (usage): Likewise.
847 * src/nice.c (usage): Likewise.
848 * src/printenv.c (usage): Likewise.
849 * src/sleep.c (usage): Likewise.
850 * src/stty.c (usage): Likewise.
851 Reported by Daniel Bergstrom.
853 1999-08-22 Jim Meyering <meyering@ascend.com>
855 * src/sys2.h (ATTRIBUTE_NORETURN): Define.
856 * src/test.c: Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.
857 (NO_RETURN_ATTRIBUTE): Remove definition.
859 * src/su.c (run_shell): Declare with gcc's noreturn attribute.
860 Use an explicit exit(1) rather than doing that through error.
862 * src/sys2.h (IF_LINT): Define new macro.
863 * src/date.c (batch_convert): Use IF_LINT macro instead of #ifdef lint.
864 * src/pathchk.c (validate_path): Likewise.
866 1999-08-21 Jim Meyering <meyering@ascend.com>
868 * src/hostid.c (usage): Remove the ` [-v]' from the Usage: line.
869 Reported by Daniel Bergstrom.
871 1999-08-17 Jim Meyering <meyering@ascend.com>
873 * tests/stty/input-tty: New file, containing code factored out of
874 the two test scripts. Mention `at' and `batch' in addition to `rsh'.
875 * tests/stty/basic-1: Source it.
876 * tests/stty/row-col-1: Source it.
877 * tests/stty/Makefile.am (EXTRA_DIST): Add input-tty.
879 1999-08-14 Jim Meyering <meyering@ascend.com>
883 * tests/stty/basic-1: Fail-77 if stdin is not a tty.
884 * tests/stty/row-col-1: Likewise.
885 Suggestion from Volker Borchert.
887 1999-08-07 Jim Meyering <meyering@ascend.com>
891 * Makefile.maint (po-check): New rule.
894 * po/POTFILES.in: Add the following from lib/: argmatch.c, closeout.c,
895 error.c, getopt.c, human.c, long-options.c, version-etc.c, xmalloc.c.
896 Add these from src/: false.c, hostid.c, true.c.
898 * lib/getdate.y (OtherTable[]): Use tDAY_UNIT for `tomorrow,'
899 `yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course
900 with correspondingly smaller numbers for tomorrow and yesterday.
901 This change does not change the way the code works, since the
902 grammar rules for the two symbols are analogous.
903 From Tadayoshi Funaba.
905 1999-08-04 Jim Meyering <meyering@ascend.com>
907 false and true once again generate --help and --version output
908 * src/true.c: Honor --help and --version once again, bug ignore
909 those options when POSIXLY_CORRECT is set.
910 * src/false.c: Fail even for --help and --version.
911 * src/Makefile.am (false.c): Generate automatically from true.c.
912 (BUILT_SOURCES): Add false.c.
913 * man/Makefile.am (EXTRA_DIST): Remove false.1in and true.1in.
914 * man/Makefile.summ: Remove the rules added on 1999-07-31.
915 * man/Makefile.maint: Likewise.
916 * man/true.1in: Removed.
917 * man/false.1in: Removed.
919 * configure.in: Remove getline-testing code. Now it's in m4/.
921 1999-08-01 Jim Meyering <meyering@ascend.com>
923 * src/date.c (usage): Correct description of %S; (00..60, not 00..61).
926 1999-08-01 Paul Eggert <eggert@twinsun.com>
928 * configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS.
930 1999-07-31 Jim Meyering <meyering@ascend.com>
934 false and true are now C programs rather than shell scripts
935 * src/true.c: New file.
936 * src/false.c: New file.
937 * src/true.sh: Removed.
938 * src/false.sh: Removed.
939 * src/Makefile.am: (bin_PROGRAMS): Add true and false.
940 (bin_SCRIPTS): Remove true and false.
941 (EXTRA_DIST): Remove false.sh and true.sh.
942 * man/true.1in: New file.
943 * man/false.1in: New file.
944 * man/Makefile.am (EXTRA_DIST): Remove extra (shadowed) assignment.
945 (EXTRA_DIST): Add false.1in and true.1in.
946 * man/Makefile.maint (helpful-men): Define.
947 * man/Makefile.summ ($(helpless-men)): New manual-generating rules to
948 accommodate the fact that false and true no longer accept --help.
949 * doc/sh-utils.texi: Include a couple of sentences from the
951 Prompted by Christi Alice Scarborough's truefalse package.
953 1999-07-30 Jim Meyering <meyering@ascend.com>
955 * configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR).
957 1999-07-26 Jim Meyering <meyering@ascend.com>
959 * src/tee.c (tee): Convert from open/fds to using fopen/streams for
960 output, in preparation for addition of new compression option.
962 1999-07-21 Jim Meyering <meyering@ascend.com>
964 * tests/stty/basic-1 (options): Avoid Solaris' broken /usr/ucb/tr by
965 removing offending use of tr altogether and removing hyphens with sed.
966 Reported by Kaveh Ghazi.
968 1999-06-01 Volker Borchert <bt@teknon.de>
970 * tests/Makefile.am: Make envvar-check depend on check-recursive rather
971 than on `check' so that its tests are performed before any real tests.
973 1999-07-15 Jim Meyering <meyering@ascend.com>
975 * src/false.sh: Always exit unsuccessfully, even with
976 --help and --version. Suggested by Felix Lee.
978 1999-07-12 Jim Meyering <meyering@ascend.com>
980 * src/sys2.h (mempcpy): Define only if not already defined.
981 Reported by Collin Rogowski.
983 1999-05-27 Volker Borchert <bt@teknon.de>
985 * tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix.
987 1999-05-25 Jim Meyering <meyering@ascend.com>
989 * tests/stty/basic-1: Fix non-portable use of `tr' that caused
990 this test to fail when run with a SysV-style tr.
991 Based on a patch from Kaveh Ghazi.
993 1999-05-21 Jim Meyering <meyering@ascend.com>
996 * configuration fixes: see m4/ChangeLog.
998 1999-05-16 Jim Meyering <meyering@ascend.com>
1002 * configure.in (AC_SEARCH_LIBS): Set LIB_CRYPT to $ac_cv_search_crypt,
1003 to go along with the new macro in m4/search-libs.m4.
1005 1999-05-14 Jim Meyering <meyering@ascend.com>
1007 * lib/getugroups.c (getugroups): Don't dereference a null pointer when
1008 running `id USER' for some USER that is listed on the RHS in /etc/group.
1009 From Sander van Malssen.
1010 Add some curly braces, use STREQ, reverse the sense of a test
1011 and use `continue' to save a level of nesting.
1013 * tests/Makefile.am (envvar-check): Renamed from check-local.
1014 (check): Depend on envvar-check so the envvar check is performed
1015 before all other tests. Reported by Volker Borchert.
1016 * tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects,
1017 so CDPATH is mentioned in the message. Reported by Volker Borchert.
1019 1999-05-10 Jim Meyering <meyering@ascend.com>
1021 * src/uptime.c (AUTHORS): add Kaveh.
1023 Expand each `&' character in the gecos field.
1024 * src/pinky.c (count_ampersands): New function.
1025 (create_fullname): New function.
1026 (print_entry): Use create_fullname here.
1027 (print_long_entry): Use it here, too.
1030 1999-05-09 Jim Meyering <meyering@ascend.com>
1032 * lib/regex.c: Update from libc.
1036 * configure.in: Clean up checks for libraries so that we don't add
1037 -lshadow unless necessary. Reported by Joseph S. Myers.
1039 1999-05-05 Jim Meyering <meyering@ascend.com>
1041 Add definitions to help read utmpx on systems with utmpname.
1042 * lib/readutmp.h (UTMP_NAME_FUNCTION): Define.
1043 (SET_UTMP_ENT): Likewise.
1044 (GET_UTMP_ENT): Likewise.
1045 (END_UTMP_ENT): Likewise.
1046 * lib/readutmp.c (read_utmp): Use the new definitions.
1049 * src/date.c (show_date): Change an automatic aggregate initializer
1050 to be a static one. For SunOS4's cc. From Kaveh Ghazi.
1052 1999-05-03 Jim Meyering <meyering@ascend.com>
1054 * configure.in: Remove duplicate use of jm_FUNC_GNU_STRFTIME.
1055 Kaveh Ghazi reported that strftime.o was listed twice in the command
1058 1999-05-02 Jim Meyering <meyering@ascend.com>
1062 * src/hostname.c (main): Give a better diagnostic when we fail to
1065 * man/Makefile.summ (hostid-summary): Use correct description.
1066 Reported by Joseph S. Myers.
1068 * lib/readutmp.c (read_utmp): Ignore the return value from utmpname.
1070 1999-04-30 Jim Meyering <meyering@ascend.com>
1072 * src/dirname.c (main): Manually handle `--', since we no longer
1073 call getopt. Reported by Joseph S. Myers.
1074 * src/basename.c (main): Likewise.
1075 * src/factor.c (main): Likewise.
1077 1999-04-25 Jim Meyering <meyering@ascend.com>
1079 * src/seq.c (main): Handle the case in which seq is given no args.
1080 Reported by John Gotts.
1081 (main): Revert last change.
1082 Instead, loop on `optind < argc' to protect use of argv[optind].
1084 * lib/human.c <inttypes.h>: Don't include it here.
1085 * lib/human.h <inttypes.h>: Include it here instead.
1086 <config.h>: Include it here too.
1087 Reported by Andreas Jaeger.
1089 * src/nice.c [NDEBUG]: Remove definition.
1090 Reported by Andreas Jaeger.
1092 1999-04-24 Jim Meyering <meyering@ascend.com>
1094 * src/who.c (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
1098 * configure.in: Use AC_CANONICAL_HOST.
1100 1999-04-20 Jim Meyering <meyering@ascend.com>
1102 Update factor to use `uintmax_t'.
1103 * src/factor.c <xstrtol.h>: Include this, not xstrtoul.h.
1105 Use uintmax_t in place of unsigned long.
1106 Use human_readable to convert to strings for printing.
1107 * lib/xstrtoumax.c: New file.
1108 * lib/human.c: New file.
1109 * lib/human.h: New file.
1110 * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c.
1111 (noinst_HEADERS): Add human.h. Remove xstrtoul.h.
1113 1999-04-19 Jim Meyering <meyering@ascend.com>
1115 * src/seq.c (main): Restore `+' in getopt_long string. Otherwise,
1116 commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
1117 * tests/seq/basic: Add tests for that.
1119 1999-04-17 Jim Meyering <meyering@ascend.com>
1121 * tests/seq: New directory and basic tests.
1122 * tests/Makefile.am (SUBDIRS): Add seq.
1123 * configure.in (AC_OUTPUT): Add tests/seq/Makefile.
1125 1999-04-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1127 * configure.in: Check for localeconv.
1129 * src/seq.c (decimal_point): New variable.
1130 (main): Set it to locale's decimal point. Fix recognition of
1131 negative number as argument.
1132 (get_width_format): Correctly handle a negative min_val or step
1133 when computing fraction width. Use decimal_point.
1135 1999-04-08 Jim Meyering <meyering@ascend.com>
1137 1999-03-25 James R. Van Zandt <jrv@vanzandt.mv.com>
1138 * doc/sh-utils.texi (Options for date): Document --iso-8601
1139 * src/date.c: Accept new option: --iso-8601.
1140 * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c.
1141 (noinst_HEADERS): Add argmatch.h and quotearg.h.
1142 * lib/argmatch.c: New file.
1143 * lib/argmatch.h: New file.
1144 * lib/quotearg.c: New file.
1145 * lib/quotearg.h: New file.
1147 1999-03-30 Jim Meyering <meyering@ascend.com>
1149 * src/sys2.h: Include "closeout.h" and "version-etc.h"
1151 * src/*.c (PROGRAM_NAME, AUTHORS): Define and use.
1153 * src/date.c: No longer include long-options.h.
1154 [long_options]: Add entries for --help and --version.
1155 Remove parse_long_options call.
1156 (main) [getopt switch]: Add a case for each of --help and --version.
1157 * src/env.c: Likewise.
1158 * src/id.c: Likewise.
1159 * src/pinky.c: Likewise.
1160 * src/seq.c: Likewise.
1161 * src/su.c: Likewise.
1162 * src/sys2.h: Likewise.
1163 * src/tee.c: Likewise.
1164 * src/tty.c: Likewise.
1165 * src/uname.c: Likewise.
1166 * src/who.c: Likewise.
1168 1999-03-29 Jim Meyering <meyering@ascend.com>
1170 * configure.in (GNU_PACKAGE): Remove related code -- now it's in
1171 the catch-all for shared autoconf code, m4/jm-macros.m4.
1172 (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
1175 1999-03-28 Jim Meyering <meyering@ascend.com>
1177 * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME.
1179 1999-03-28 Paul Eggert <eggert@twinsun.com>
1181 * lib/getdate.y (get_date): Reuse tm_isdst of first localtime
1182 call; this is an improvement on a bug fix suggested by
1183 martin@dresden.nacamar.de. Do not assume that localtime and
1184 gmtime return non-null.
1186 1999-03-27 Jim Meyering <meyering@ascend.com>
1188 * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show
1189 that only one of --help or --version is recognized at a time.
1190 Reported by Meelis Roos.
1191 * src/true.sh: Likewise.
1193 * src/id.c (print_user): Use uid_t instead of int.
1194 (print_group): Use gid_t instead of int.
1197 1999-03-26 Jim Meyering <meyering@ascend.com>
1199 * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
1200 (noinst_HEADERS): Add version-etc.h.
1202 1999-03-20 Jim Meyering <meyering@ascend.com>
1204 * src/nohup.sh: Don't modify PATH just to get GNU nice. Instead,
1205 try to find an absolute path for GNU nice. From Bruno Haible.
1207 1999-03-19 Jim Meyering <meyering@ascend.com>
1209 * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of
1212 1999-03-17 Jim Meyering <meyering@ascend.com>
1214 * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk).
1216 1999-03-13 Jim Meyering <meyering@ascend.com>
1218 * lib/basename.c (base_name): If NAME is all slashes, return `/' (in
1219 conformance with the single unix spec). Reported by Peter Moulder.
1221 1999-03-10 Jim Meyering <meyering@ascend.com>
1223 * src/uptime.c: Declare getloadavg so I can build with -Werror.
1225 * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread.
1227 * lib/canon-host.c (canon_host): Don't use he->h_addr directly.
1228 Based on a patch from Savochkin Andrey Vladimirovich.
1230 1999-03-09 Jim Meyering <meyering@ascend.com>
1232 Running `id USER' doesn't report any groups if there is no entry
1233 for USER in /etc/group. Always include the one from /etc/passwd.
1234 * src/id.c: (xgetgroups): Take new parameter, gid, and pass
1236 (print_group_list): Call getpwuid and adjust calls to xgetgroups
1237 to include new parameter.
1238 * lib/getugroups.c (getugroups): Take new parameter, gid.
1239 Add gid to the list of groups.
1240 From Ulrich Drepper.
1241 * lib/getgroups.c (getgroups): Protoize.
1243 1999-03-08 Jim Meyering <meyering@ascend.com>
1245 * tests/basename: New directory and tests.
1246 * tests/Makefile.am (SUBDIRS): Add basename.
1247 * configure.in (AC_OUTPUT): Add tests/basename/Makefile.
1249 1999-03-06 Jim Meyering <meyering@ascend.com>
1251 * src/date.c (batch_convert): Use a `%s' format in error call,
1252 in case the argument string contains a `%'.
1254 * man/Makefile.am (man_MANS): Add pinky.1.
1255 * man/Makefile.summ (pinky-summary): Define.
1257 * src/date.c: Include long-options.h.
1258 [long_options]: Remove the "help" and "version" entries.
1259 Remove declarations of show_help and show_version.
1260 (main): Use parse_long_options, including author name(s).
1261 Remove the show_version and show_help blocks.
1262 * src/env.c: Likewise.
1263 * src/id.c: Likewise.
1264 * src/logname.c: Likewise.
1265 * src/pathchk.c: Likewise.
1266 * src/pinky.c: Likewise.
1267 * src/printenv.c: Likewise.
1268 * src/seq.c: Likewise.
1269 * src/sleep.c: Likewise.
1270 * src/su.c: Likewise.
1271 * src/tee.c: Likewise.
1272 * src/tty.c: Likewise.
1273 * src/uname.c: Likewise.
1274 * src/uptime.c: Likewise.
1275 * src/users.c: Likewise.
1276 * src/who.c: Likewise.
1277 * src/whoami.c: Likewise.
1279 1999-03-04 Jim Meyering <meyering@ascend.com>
1281 * src/basename.c (main): Include author name argument in call to
1283 * src/chroot.c: Likewise.
1284 * src/dirname.c: Likewise.
1285 * src/echo.c: Likewise.
1286 * src/expr.c: Likewise.
1287 * src/factor.c: Likewise.
1288 * src/hostid.c: Likewise.
1289 * src/hostname.c: Likewise.
1290 * src/nice.c: Likewise.
1291 * src/printf.c: Likewise.
1292 * src/pwd.c: Likewise.
1293 * src/stty.c: Likewise.
1294 * src/test.c: Likewise.
1295 * src/yes.c: Likewise.
1297 1999-03-02 Jim Meyering <meyering@ascend.com>
1299 * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite.
1301 1999-02-15 Jim Meyering <meyering@ascend.com>
1303 * src/stty.c (main): #ifdef-out unreachable code.
1305 * src/pinky.c (usage): Add a one-line description.
1306 Suggestion from Karl Berry.
1308 1999-02-08 Jim Meyering <meyering@ascend.com>
1310 * configure.in (ALL_LINGUAS): Add Czech (cs).
1312 1999-02-07 Jim Meyering <meyering@ascend.com>
1314 * tests/stty/basic-1: Run all tests even if some fail.
1317 * tests/stty/basic-1: Use `stty', not $STTY.
1318 Fix typo in VERBOSE code: s/\$RM/stty/.
1319 * tests/stty/row-col-1: Likewise.
1321 * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY.
1323 Include stdio.h before defining `_unlocked' macros.
1324 * src/pinky.c: Include stdio.h.
1325 * src/uptime.c: Likewise.
1326 * src/users.c: Likewise.
1327 * src/who.c: Likewise.
1328 * lib/readutmp.c: Include stdio.h here...
1329 * lib/readutmp.h: ...not here.
1330 From Ulrich Drepper.
1334 * Makefile.maint (my-distcheck): Don't depend on dist, now that this
1335 is hooked up to the distcheck rule.
1336 * Makefile.am (distcheck-hook): New target and rule -- link to shared
1337 rule, my-distcheck, in Makefile.maint.
1339 * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
1340 group-member.m4, and just use this new macro.
1342 1999-01-31 Jim Meyering <meyering@ascend.com>
1344 * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of
1345 @ifinfo so `makeinfo --html ...' works. From Karl Berry.
1347 * src/chroot.c (main): Call chdir ("/") after chroot.
1348 Suggestion from James Youngman.
1350 * src/uptime.c (print_uptime): Use the C numeric locale for sscanf
1351 of /proc/uptime data, then restore.
1352 * lib/getloadavg.c: Include locale.h.
1353 [!HAVE_SETLOCALE]: Define-away setlocale.
1354 (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the
1355 `C' numeric locale. Restore afterwards.
1356 Based on a suggestion from Thomas Quinot.
1358 * lib/strtod.c: Protoize.
1360 1999-01-30 Jim Meyering <meyering@ascend.com>
1362 * acconfig.h: Remove lots of now-unnecessary #undefs.
1364 * configure.in: Require autoconf 2.13.
1366 * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl.
1368 * configure.in (ALL_LINGUAS): Add Greek (el).
1369 * po/el.po: New file.
1371 1999-01-25 Jim Meyering <meyering@ascend.com>
1373 * src/date.c (usage): Remove static attribute.
1374 Move function be the first in the file.
1375 * src/env.c: Likewise.
1376 * src/id.c: Likewise.
1377 * src/nice.c: Likewise.
1378 * src/pathchk.c: Likewise.
1379 * src/tty.c: Likewise.
1380 * src/uname.c: Likewise.
1382 * src/*.c (usage): Remove static attribute.
1384 1999-01-14 Jim Meyering <meyering@ascend.com>
1386 * src/date.c: Include closeout.h.
1387 (main): Use close_stdout_status.
1388 * src/printenv.c: Likewise.
1389 * src/tty.c: Likewise.
1391 * src/hostid.c: Include closeout.h.
1392 (main): Use close_stdout.
1393 * src/tee.c: Likewise.
1395 1999-01-10 Jim Meyering <meyering@ascend.com>
1397 * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD,
1398 who_DEPENDENCIES): Remove definitions.
1400 * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c.
1401 (lstat.c, stat.c): New rules.
1403 * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver.
1405 * configure.in: Require autoconf-2.13.
1406 Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries
1407 to resolve gethostbyname.
1409 1998-12-22 Jim Meyering <meyering@ascend.com>
1411 * configure.in (ALL_LINGUAS): Add chinese (zh).
1413 1998-12-13 Jim Meyering <meyering@ascend.com>
1415 * lib/putenv.c: Don't include stdlib.h and declare malloc and free.
1416 This works around Solaris 2.7's conflicting prototype.
1417 Reported by Karl Berry.
1419 * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
1421 (EXTRA_DIST): Add xstat.in.
1422 * lib/stat.c: Remove file.
1423 * lib/lstat.c: Remove file.
1424 * lib/xstat.in (xstat@): New file.
1426 1998-12-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1428 * src/date.c (main): Arrange to exit unsuccessfully when stime fails.
1430 1998-12-07 Jim Meyering <meyering@ascend.com>
1432 * configure.in (ALL_LINGUAS): Add Russian (ru).
1434 1998-10-31 Jim Meyering <meyering@ascend.com>
1436 * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm.
1437 * tests/Fetish.pm: New file.
1439 * tests/factor/Makefile.am: Rewrite to use new testing framework.
1440 * tests/factor/Test.pm: Remove file.
1441 * tests/factor/factor-tests: Remove file.
1442 * tests/factor/basic: New file (rewrite of Test.pm).
1444 * acconfig.h (stat): New #undef.
1446 1998-10-03 Jim Meyering <meyering@ascend.com>
1448 * man/Makefile.am: Switch to using help2man.
1449 (EXTRA_DIST): Add Makefile.summ.
1451 * man/help2man: Invoke program with --manhelp option only if
1452 --name=STRING not specified. Otherwise, this would fail with `yes'.
1453 * man/Makefile.summ: New file.
1454 * man/Makefile.maint: Include it.
1455 * man/help2man: New file.
1456 * man/GNUmakefile: New file.
1457 * man/Makefile.maint: New file.
1458 * man/*.x: New files.
1459 * man/*.1: Remove files.
1461 * src/Makefile.am (install-exec-local): Change comments to use `##'
1462 to avoid automake warning.
1464 * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/
1465 (libsu_a_SOURCES): s/posixtm.y/posixtm.y/
1466 (libsu_a_SOURCES): Remove getdate.c. Add fnmatch.h.
1468 * src/date.c (main): Update to use new version of posixtime.
1469 * lib/posixtm.c: New file.
1470 * lib/posixtm.h: New file.
1471 * lib/posixtm.y: Remove file.
1473 * lib/fnmatch.c: New file. (unused)
1474 * lib/fnmatch.h: New file. (unused)
1476 1998-09-27 Jim Meyering <meyering@ascend.com>
1478 * src/seq.c (main): Decrement optind when we find an `option' that
1479 looks like -N. Reported by Clark Morgan.
1481 1998-09-26 Jim Meyering <meyering@ascend.com>
1483 * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return
1484 LONGINT_INVALID for strings that begin with `-'.
1486 * tests/factor/Test.pm: Add a test for negative argument.
1487 Tweak postprocessing framework.
1489 1998-09-19 Jim Meyering <meyering@ascend.com>
1491 * src/stty.c (main): Revamp option processing, again.
1492 stty couldn't parse some of its options.
1493 * tests/stty/basic-1: New test.
1494 * tests/stty/Makefile.am (TESTS): Add basic-1.
1496 1998-08-29 Jim Meyering <meyering@ascend.com>
1498 * src/su.c (longopts): Use corresponding short-option character
1499 in place of `1', and `NULL' in place of pointer in initialization.
1501 1998-08-11 Jim Meyering <meyering@ascend.com>
1503 * src/uptime.c (usage): Correct description. Reported by John Murphy.
1505 1998-07-16 Jim Meyering <meyering@ascend.com>
1507 * lib/Makefile.am (noinst_HEADERS): Add lchown.h.
1508 * lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
1509 * lib/lchown.c: Include lchown.h.
1511 1998-07-15 Jim Meyering <meyering@ascend.com>
1513 * src/seq.c (check_format): Add `5' to the list of digits.
1514 Reported by Donni Erpel.
1516 1998-07-12 Jim Meyering <meyering@ascend.com>
1518 * tests/test: New directory and tests.
1519 * tests/Makefile.am (SUBDIRS): Add test.
1520 * configure.in (AC_OUTPUT): Add tests/test/Makefile.
1522 1998-07-04 Jim Meyering <meyering@ascend.com>
1524 * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's
1525 automatically discovered by automake.
1526 (noinst_HEADERS): Remove unused safe-read.h.
1528 * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in
1530 (CLEANFILES): Add su, since we build it unconditionally, yet it's
1531 never put in @OPTIONAL_BIN_PROGS@.
1533 1998-06-29 Jim Meyering <meyering@ascend.com>
1535 * src/uptime.c: Include system.h only after error.h and readutmp.h
1536 so we don't get redefinition warnings about getc, etc.
1537 * src/who.c: Likewise.
1538 * src/users.c: Likewise.
1540 1998-06-28 Jim Meyering <meyering@ascend.com>
1542 * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
1544 1998-06-06 Jim Meyering <meyering@ascend.com>
1546 * src/test.c (unary_operator): Fail if the operand to -t is not valid.
1547 (posixtest): Treat `test -t' the same as `test -t 1'.
1549 1998-05-26 Jim Meyering <meyering@ascend.com>
1551 * src/test.c (two_arguments): Don't test argv[pos][2] if it's
1554 1998-05-25 Jim Meyering <meyering@ascend.com>
1556 * configure.in (_GNU_SOURCE): AC_DEFINE it here.
1557 * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
1558 [!_GNU_SOURCE]: Add #undef instead.
1560 1998-05-16 Jim Meyering <meyering@ascend.com>
1562 * lib/readutmp.c (read_utmp): Add variant for systems that have
1563 the utmpname function.
1565 * configure.in: Check for utmpname.
1567 * configure.in (jm_MACROS): New wrapper macro.
1568 Remove uses of most jm_* macros.
1570 * acconfig.h: (chown): Add undef.
1571 (D_INO_IN_DIRENT): Likewise.
1572 (D_TYPE_IN_DIRENT): Likewise.
1573 (ssize_t): Likewise.
1575 * lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
1576 lines from the m4/*.m4 macros, so the hack of including some
1577 custom-replaced C source file names here is no longer needed.
1579 1998-05-03 Jim Meyering <meyering@ascend.com>
1581 * po/: Update from gettext-0.10.35.
1583 * configure.in: Remove use of AC_LINK_FILES.
1584 (AC_OUTPUT): Remove po/Makefile-generating sed command.
1586 1998-05-02 Jim Meyering <meyering@ascend.com>
1588 * src/seq.c (check_format): Use ISDIGIT, not isdigit.
1590 1998-04-26 Jim Meyering <meyering@ascend.com>
1592 * configure.in: Use jm_ASSERT.
1593 * acconfig.h: Add NDEBUG.
1595 1998-04-13 Jim Meyering <meyering@eng.ascend.com>
1597 * lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
1599 1998-04-09 Jim Meyering <meyering@ascend.com>
1601 * configure.in (AM_MAINTAINER_MODE): Remove it.
1602 No longer use AC_PATH_PROG to check for perl.
1603 (jm_PERL): Use this instead.
1605 1998-04-04 Jim Meyering <meyering@ascend.com>
1607 * lib/readutmp.h (PARAMS): Define.
1609 * tests/Makefile.am (SUBDIRS): Add stty.
1610 * tests/stty/row-col-1: New file.
1611 * tests/stty: New directory.
1612 * configure.in (AC_OUTPUT): Add tests/stty/Makefile.
1614 * src/stty.c: Use STREQ in place of strcmp everywhere.
1615 (valid_options): Indent.
1616 Parenthesize assignment in while expr.
1617 (main): s/case 'f':/case 'F':/
1618 Tweak error messages to make them consistent.
1619 Remove #if-0'd block.
1620 Move dcl of `fdflags' into scope where it's used.
1621 Remove dcl of unused `cp'.
1622 Use "%s", not device_name, as the format string, in case the
1623 latter contains `%'.
1625 [1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>]
1626 * src/stty.c (valid_options): New function.
1627 (main): Fix broken options parsing that worked only
1628 by serendipity (getopt_long_only already parsed short options; no
1629 need to parse them again manually!). Add support for the --file
1630 option, which allows the user to specify the device whose line
1631 settings are to be set. This is necessary because POSIX ttys will
1632 block waiting for carrier detect to go high if CLOCAL is not set,
1633 unless the device is opened with the O_NONBLOCK flag.
1634 Unfortunately, the shell doesn't use this flag, so users lose.
1635 Opening the device in stty is the easist way to fix this.
1636 (speeds): Add support for 230400 and 460800 line speeds, which are
1639 * acconfig.h (uintmax_t): Add #undef.
1641 * configure.in (jm_AC_HEADER_INTTYPES_H): Use it.
1642 (jm_AC_TYPE_UINTMAX_T): Use it.
1643 (jm_PREREQ): Use it.
1645 * src/system.h: Sync with system.c from fileutils.
1647 * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
1648 know about the m4/ subdirectory.
1649 * Makefile.maint (aclocal-files): Remove now-unnecessary (with
1650 automake-1.2h and the above change) aclocal-related rules and includes.
1652 1998-04-03 Jim Meyering <meyering@eng.ascend.com>
1654 * lib/closeout.c: New file.
1655 * lib/closeout.h: New file.
1656 * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c.
1657 (noinst_HEADERS): Add closeout.h.
1659 1998-03-27 Jim Meyering <meyering@eng.ascend.com>
1661 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
1663 1998-03-26 Jim Meyering <meyering@eng.ascend.com>
1665 * src/date.c (batch_convert): Remove spurious space in error message.
1666 Reported by Karl Berry.
1668 1998-03-13 Jim Meyering <meyering@eng.ascend.com>
1670 * lib/getugroups.c (getugroups): Don't add a group number if it
1671 would be a duplicate. From Ulrich Drepper.
1673 1998-02-22 Jim Meyering <meyering@eng.ascend.com>
1675 * tests/Makefile.am (EXTRA_DIST): Add mk-script.
1676 * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl.
1677 (mk_script): Set to ../mk-script.
1678 (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script.
1679 Remove @MAINT@ cruft.
1680 (Makefile.am): Likewise.
1681 Remove @MAINT@ cruft. Now `missing' will explain the failure
1682 when people don't have Perl yet modify a file whose rebuilding
1683 would lead to the use of Perl.
1685 * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@.
1686 (who_LDADD): Likewise.
1687 (pinky_DEPENDENCIES): Set to $(LDADD)
1688 (who_DEPENDENCIES): Likewise.
1690 1998-02-20 Jim Meyering <meyering@eng.ascend.com>
1692 * lib/getdate.h: Removed. Could cause confusion with an
1693 automake-generated `.y.h' rule.
1694 * lib/get-date.h: Renamed from getdate.h.
1695 * lib/getdate.y: s/getdate.h/get-date.h/
1696 * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
1697 * src/date.c: s/getdate.h/get-date.h/
1699 1998-02-16 Jim Meyering <meyering@eng.ascend.com>
1701 * configure.in (jm_FUNC_LSTAT): Use it.
1702 (jm_FUNC_STAT): Use it.
1703 * acconfig.h: Add lstat.
1704 * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c.
1706 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
1708 * tests/nice: Fail immediately if this test is run with `nice'
1709 level different from zero. Reported by Philippe De Muyter.
1711 1998-02-03 Philippe De Muyter <phdm@macqel.be>
1713 * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
1715 * lib/putenv.c (sys/types.h): Include to get size_t on some systems.
1716 (NULL): Define if needed.
1718 1998-01-31 Jim Meyering <meyering@na-net.ornl.gov>
1720 * configure.in (AC_LFS): Use it.
1722 1998-01-25 Jim Meyering <meyering@na-net.ornl.gov>
1724 * Makefile.maint: New file.
1725 * Makefile.am: Move rules common to textutils, fileutils, sh-utils
1726 into Makefile.maint.
1727 Include Makefile.maint.
1728 (EXTRA_DIST): Add Makefile.maint.
1730 1998-01-03 Jim Meyering <meyering@na-net.ornl.gov>
1732 * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr.
1734 * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
1735 those files will be built via the ANSI2KNR-filtering rules if necessary.
1737 1997-12-25 Jim Meyering <meyering@na-net.ornl.gov>
1739 * configure.in: Remove AC_DEFINE of _GNU_SOURCE.
1740 * acconfig.h (_GNU_SOURCE): Define if not already defined.
1741 Put this code in @TOP@ section.
1742 (_GNU_SOURCE): Remove #undef.
1744 1997-12-22 Jim Meyering <meyering@na-net.ornl.gov>
1746 * configure.in: AC_DEFINE _GNU_SOURCE.
1747 * acconfig.h: Add _GNU_SOURCE.
1749 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
1751 * src/date.c: s/__P/PARAMS/
1752 * src/env.c: Likewise.
1753 * src/expr.c: Likewise.
1754 * src/id.c: Likewise.
1755 * src/nice.c: Likewise.
1756 * src/pathchk.c: Likewise.
1757 * src/seq.c: Likewise.
1758 * src/sleep.c: Likewise.
1759 * src/stty.c: Likewise.
1760 * src/tee.c: Likewise.
1761 * src/test.c: Likewise.
1762 * src/tty.c: Likewise.
1763 * src/uname.c: Likewise.
1765 * src/system.h: Merge in several things from fileutils' version of
1768 * src/factor.c: Don't include limits.h.
1769 (UINT_MAX): Don't define.
1770 (INT_MAX): Don't define.
1771 These are all done in system.h now.
1772 * src/hostname.c: Don't include limits.h.
1773 * src/id.c: Don't include limits.h or sys/param.h.
1774 * src/pathchk.c: Don't include limits.h.
1775 * src/su.c: Likewise.
1777 1997-12-10 Jim Meyering <meyering@na-net.ornl.gov>
1779 * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying
1781 Patch from Dick Streefland.
1783 1997-11-17 Paul Eggert <eggert@twinsun.com>
1785 * lib/mktime.c, lib/strftime.c (_REENTRANT): #define,
1786 as some hosts need this to declare localtime_r properly.
1788 1997-11-15 Jim Meyering <meyering@na-net.ornl.gov>
1790 * intl/Makefile.in (distclean): Don't remove libintl.h here.
1791 * Makefile.am (DISTCLEANFILES): Remove it here instead.
1793 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4.
1794 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake.
1796 * m4/strftime.m4: Check for %F format.
1798 1997-11-14 Jim Meyering <meyering@na-net.ornl.gov>
1800 * m4/mktime.m4: Temporarily add a copy of this file from the automake
1802 (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME.
1803 (irix_6_4_bug): New function based on code from Ariel Faigon.
1804 (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's
1805 infinite looping mktime.
1806 Portability tweaks from Paul Eggert.
1808 1997-11-13 Jim Meyering <meyering@na-net.ornl.gov>
1810 * lib/mktime.c: Update from FSF.
1811 * lib/strftime.c: Update from FSF.
1812 * m4/strftime.m4: Check for POSIX.2's %f format spec.
1814 1997-11-12 Jim Meyering <meyering@na-net.ornl.gov>
1816 * configure.in (AC_CHECK_FUNCS): Add mempcpy.
1817 * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define.
1818 * src/date.c (batch_convert): Use mempcpy rather than stpcpy.
1820 1997-11-09 Jim Meyering <meyering@na-net.ornl.gov>
1822 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r.
1823 * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r.
1824 (jm_FUNC_GNU_STRFTIME): Use new macro.
1825 (jm_FUNC_STRFTIME): New macro. Likewise.
1826 Reported by Noel Cragg.
1828 1997-11-02 Jim Meyering <meyering@na-net.ornl.gov>
1830 * acconfig.h: Add malloc and realloc.
1832 1997-10-25 Jim Meyering <meyering@na-net.ornl.gov>
1834 * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc.
1835 (xcalloc): #ifdef-out unused function.
1836 (xrealloc): Remove code to work around deficient versions of realloc.
1837 Now we have an autoconf-enabled replacement version.
1838 (xmalloc): Remove code to work around deficient versions of malloc.
1839 Now we have an autoconf-enabled replacement version.
1841 * configure.in (jm_FUNC_MALLOC): Use it.
1842 (jm_FUNC_REALLOC): Use it.
1843 * lib/Makefile.am (noinst_HEADERS): Add xalloc.h.
1844 (EXTRA_DIST): Add realloc.c.
1845 (EXTRA_DIST): Add malloc.c.
1847 * lib/malloc.c: New file.
1848 * m4/malloc.m4: New file.
1849 * m4/Makefile.am (EXTRA_DIST): Add malloc.m4.
1851 * lib/xalloc.h: New file.
1852 * lib/xmalloc.c: Updated from textutils.
1854 * src/*.c: Remove old-style xmalloc and xrealloc decls.
1855 * src/system.h: Include xalloc.h.
1856 Remove dcls of xmalloc, xcalloc and xrealloc.
1858 1997-10-23 Jim Meyering <meyering@na-net.ornl.gov>
1860 * Makefile.am (aclocal-files): Also depend on m4/Makefile.am.
1862 * src/system.h [!HAVE_DECLARATION_FREE]: Declare free.
1863 [!HAVE_DECLARATION_MALLOC]: Declare malloc.
1864 [!HAVE_DECLARATION_REALLOC]: Declare realloc.
1865 [!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
1866 [!HAVE_DECLARATION_STRSTR]: Declare strstr.
1868 * src/date.c: Remove stpcpy decl.
1869 * src/expr.c: Remove strstr decl.
1870 * src/test.c [STREQ]: Undef then redefine.
1871 On some systems, strstr and stpcpy are macros, so declaring them
1872 unconditionally gets syntax errors.
1873 Reported by Mark M. Kettenis.
1875 * configure.in: Use jm_CHECK_DECLS.
1876 * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4.
1878 1997-10-22 Jim Meyering <meyering@na-net.ornl.gov>
1880 * m4/decl.m4: New file.
1881 * m4/check-decl.m4: New file. New macro, jm_CHECK_DECLS.
1883 1997-10-07 Jim Meyering <meyering@na-net.ornl.gov>
1885 * src/*.c: Update bug-reporting address.
1886 * src/*.sh: Update bug-reporting address.
1888 1997-10-02 Jim Meyering <meyering@na-net.ornl.gov>
1890 * tests/date/Test.pm (test_vector): Remove _%Z from test `9'.
1891 The timezone string was too system dependent.
1893 1997-09-25 Jim Meyering <meyering@na-net.ornl.gov>
1895 * src/echo.c: Make echo conform to POSIX. By default, don't
1896 interpret backslash escape sequences.
1897 [V9_DEFAULT]: Don't #define.
1898 (usage): Document -e option.
1899 (main): Recognize options iff POSIXLY_CORRECT is not set.
1902 1997-09-19 Jim Meyering <meyering@na-net.ornl.gov>
1904 * lib/getusershell.c (IN_CTYPE_DOMAIN): Define.
1906 (readname): Use ISSPACE, not isspace.
1907 * lib/strtod.c (IN_CTYPE_DOMAIN): Define.
1911 Use upper-case versions of ctype macros.
1912 * lib/strtol.c (IN_CTYPE_DOMAIN): Define.
1913 (ISSPACE): Guard with IN_CTYPE_DOMAIN.
1914 (ISDIGIT): Guard with IN_CTYPE_DOMAIN.
1915 (TOUPPER): Guard with IN_CTYPE_DOMAIN.
1918 1997-09-17 Jim Meyering <meyering@na-net.ornl.gov>
1920 * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT
1921 is *not* set. Reported by Frank T Lofaro.
1923 * src/hostid.c: New file.
1924 * src/Makefile.am (EXTRA_PROGRAMS): Add hostid.
1925 * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid,
1926 and if found add hostid to the list.
1927 * man/hostid.1: New file.
1928 * man/Makefile.am (man_MANS): Add hostid.1.
1930 1997-08-31 Jim Meyering <meyering@na-net.ornl.gov>
1932 * src/who.c (main): New option --lookup (-l).
1933 (print_entry): Only call canon_host if user explicitly asks for it.
1934 (usage): Describe --lookup.
1935 From Galen Hazelwood.
1937 * configure.in (ALL_LINGUAS): Add Spanish (es).
1939 1997-08-02 Jim Meyering <meyering@na-net.ornl.gov>
1941 * src/Makefile.am (bin_PROGRAMS): Add pinky.
1943 * src/pinky.c: New file. From Kaveh Ghazi.
1944 * po/POTFILES.in: Add pinky.c.
1946 1997-07-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1948 * src/date.c (show_date): Don't hang if strftime produces an empty
1951 1997-07-16 Jim Meyering <meyering@na-net.ornl.gov>
1953 * src/groups.sh: Exit with status from subsidiary `id' command.
1954 Don't print `$name : $groups' if id fails.
1955 Reported by Austin Donnelly.
1957 1997-07-15 Jim Meyering <meyering@na-net.ornl.gov>
1959 * lib/getloadavg.c: Merge in changes from FSF.
1961 1997-07-13 Jim Meyering <meyering@na-net.ornl.gov>
1963 * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi.
1964 Now, automake includes it automatically.
1966 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
1968 * po/Makefile.in.in (DISTFILES): Remove ChangeLog.
1969 * po/POTFILES.in: Add who.c, users.c, uptime.c.
1972 * src/who.c: Rename lots of `this' locals.
1973 Make some parameters `const'.
1974 (who): Update read_utmp caller.
1975 (search_entries): Take additional param: utmp_buf.
1976 Update read_utmp caller.
1977 (who_am_i): Update read_utmp caller.
1979 * src/users.c (users): Update read_utmp caller.
1980 * src/uptime.c (uptime): Update read_utmp caller.
1982 * lib/readutmp.h (PARAMS): Update prototype.
1983 (utmp_contents): Remove dcl.
1985 * lib/readutmp.c (read_utmp): Take new params: count and buffer.
1986 Return boolean indicating failure.
1987 Now, caller must give diagnostic upon failure.
1989 1997-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1991 * lib/readutmp.c, lib/readutmp.h: New files implementing shared
1992 functionality from src/who-users.c.
1994 * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c.
1995 (noinst_HEADERS): Add readutmp.h.
1997 * src/who.c, src/users.c, src/uptime.c: Split these so they no
1998 longer derive from the template source file who-users.c. Use
1999 shared functionality from lib/readutmp.c instead.
2001 * src/Makefile.am: Remove rules to build who.c, users.c and
2002 uptime.c from template source file who-users.c. Handle these
2003 files as stand-alone sources.
2005 * src/who-users.c: Remove file. It is no longer used.
2007 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
2009 * src/date.c (MAYBE_SET_TZ_UTC0): New macro.
2010 (set_tz): New function.
2011 (batch_convert): If necessary, save the initial value of TZ and
2012 for each date in the file, restore it before each call to get_date,
2013 then set it to UTC0 before each show_date call.
2014 (main): Don't set TZ before calling get_date.
2015 Set TZ after get_date call and before show_date call.
2016 Reported by Matthew Braun.
2017 * tests/date/Test.pm: Add new tests for this bug.
2018 Add tests based on new examples in documentation.
2020 * stpcpy.c: New file.
2021 * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c
2023 1997-07-05 Jim Meyering <meyering@na-net.ornl.gov>
2025 * src/Makefile.am (EXTRA_PROGRAMS): Add su here.
2026 (bin_PROGRAMS): Remove su here.
2027 (install-exec-local): Rewrite rule so that su is installed only if
2028 it can be made setuid root. Before it was always installed and then
2029 removed if it could *not* be made setuid root. That had the potential
2030 undesirable side effect of removing (and not replacing) a working
2032 (all_local): New target. Dependend on su. Required now that su is
2033 no longer in bin_PROGRAMS.
2034 (uninstall-local): Remove su only if it comes from the GNU sh-utils.
2036 * src/su.c: Redefine/undef getusershell around inclusion of <unistd.h>
2037 (via system.h) so Cray's int-returning prototype doesn't conflict
2038 with our char*-returning one. Reported by Johan Danielsson.
2040 1997-07-04 Jim Meyering <meyering@na-net.ornl.gov>
2042 * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to
2043 generate tests/*/Makefile.am.
2045 * configure.in (ALL_LINGUAS): Add Norwegian (no).
2047 * tests/date/mk-script.pl (validate): Create test files in $(srcdir),
2049 * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir),
2051 * Makefile.am (aclocal-files): Look in source directory, not build dir.
2052 From Andreas Schwab.
2054 1997-07-03 Jim Meyering <meyering@na-net.ornl.gov>
2056 * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment
2059 Wed Jul 2 11:05:09 1997 Jim Meyering <meyering@na-net.ornl.gov>
2061 * src/printf.c (STRTOX): Convert function header in macro definition
2062 to K&R-style. Otherwise, ansi2knr would fail to convert the function
2063 definitions to K&R for old style compilers. From Kaveh Ghazi.
2065 Tue Jul 1 06:28:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
2067 * lib/putenv.c [putenv]: Undefine before including system headers.
2068 Otherwise, the declaration of *rpl_putenv* conflicts with the system
2069 prototype on at least Irix5.3. From Marcus Daniels.
2071 Sun Jun 29 07:18:25 1997 Jim Meyering <meyering@na-net.ornl.gov>
2073 * lib/putenv.c (rpl_putenv): Renamed from putenv.
2074 [putenv]: Remove definition and subsequent #undef hack that avoided
2075 conflicts with system prototypes. That didn't let the definition of
2076 putenv to rpl_putenv from config.h get through.
2077 Suggestion from Marcus Daniels.
2079 * configure.in (LIB_CRYPT): AC_SUBST new variable. Use it to add
2080 crypt-related library (-lufc or -lcrypt) only for the program that
2081 needs it (su), rather than to all executables.
2082 * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'.
2083 Suggestion from Ulrich Drepper.
2085 * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG
2086 so tests get english strings. From Ulrich Drepper.
2088 Mon Jun 16 11:06:57 1997 Jim Meyering <meyering@na-net.ornl.gov>
2090 * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro.
2091 * configure.in (jm_FUNC_PUTENV): Use it.
2092 * acconfig.h (putenv): Add #undef.
2093 * lib/Makefile.am (EXTRA_DIST): Add putenv.c.
2094 (libsu_a_SOURCES): Remove putenv.c.
2095 * m4/Makefile.am (EXTRA_DIST): Add putenv.m4.
2097 Thu Jun 12 06:48:23 1997 Jim Meyering <meyering@na-net.ornl.gov>
2099 * src/expr.c (eval6): Accept new unary operator, quote.
2102 Wed Jun 11 15:13:56 1997 Jim Meyering <meyering@na-net.ornl.gov>
2104 * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than
2105 searching for `\(' to determine whether to return 0 or the empty
2106 string. Before it would improperly return '' if the pattern
2107 contained a substring like this: `\\('. From Karl Heuer.
2108 For example, running expr c : '\\(' should print `0'.
2110 Sun Jun 1 12:00:10 1997 Jim Meyering <meyering@na-net.ornl.gov>
2112 * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units.
2113 Patch from Richard Sharman <rsharman@magmacom.com>.
2114 * tests/date/Test.pm: Add tests using `next'.
2116 Tue May 27 06:08:06 1997 Jim Meyering <meyering@na-net.ornl.gov>
2118 * lib/basename.c: Don't include backupfile.h.
2120 * lib/Makefile.am (noinst_HEADERS): Add backupfile.h.
2122 * src/basename.c: Use base_name, not basename.
2123 * src/su.c: Use base_name, not basename.
2125 * configure.in: Don't replace basename. Now it's always required.
2127 * lib/Makefile.am (libsu_a_SOURCES): Add basename.c.
2129 * lib/getopt.c: Update from glibc via patch-2.2.93.
2130 * lib/getopt1.c: Likewise.
2131 * lib/getopt.h: Likewise.
2132 * lib/basename.c: Likewise.
2134 Sat May 24 13:26:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
2136 * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are
2137 distributed. This seems to be necessary for automake-1.1p.
2139 Thu May 1 00:10:11 1997 Jim Meyering <meyering@na-net.ornl.gov>
2141 * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c
2142 spline.c test.c uname.c: Indent cpp-directives.
2144 * src/system.h (N_): Define.
2146 Sun Apr 27 18:30:53 1997 Jim Meyering <meyering@na-net.ornl.gov>
2148 * src/printf.c: (cfcc_msg): File-scope constant.
2149 (STRTOX): Use new constant as error message format string in macro.
2150 Suggestion from Andreas Schwab.
2151 (STRTOX): Don't fail because of extra character(s) following a
2152 character constant. Give the *warning* only if !POSIXLY_CORRECT.
2154 Sun Apr 6 14:29:14 1997 Jim Meyering <meyering@na-net.ornl.gov>
2156 * src/printf.c: Reorder functions to obviate forward decls.
2157 Change most char* dcls to const char*.
2158 (STRTOX): New macro to eliminate code duplication.
2159 (xstrtod, xstrtol, xstrtoul): Remove functions.
2160 Use the STRTOX instead.
2162 * src/printf.c: (STRTOX): Interpret arguments like 'a and "a
2163 as POSIX requires. Derived from a patch by Dennis Henriksen.
2165 Sun Mar 23 15:20:17 1997 Jim Meyering <meyering@na-net.ornl.gov>
2167 * configure.in (ALL_LINGUAS): Add polish (pl).
2169 Sat Mar 22 00:03:02 1997 Jim Meyering <meyering@na-net.ornl.gov>
2171 * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l.
2172 (aclocal.m4): Use aclocal's new -I option.
2174 * missing: New file -- from the automake-1.1m distribution.
2176 Thu Mar 20 21:10:44 1997 Jim Meyering <meyering@na-net.ornl.gov>
2178 * m4/ccstdc.m4: Remove file.
2179 * m4/init.m4: Likewise.
2180 * m4/sanity.m: Likewise.
2181 * m4/protos.m: Likewise.
2182 * m4/dmalloc.m4: Likewise.
2183 * m4/error.m4: Likewise.
2184 * m4/header.m4: Likewise.
2185 * m4/install.m4: Likewise.
2186 * m4/lispdir.m4: Likewise.
2187 * m4/maintainer.m4: Likewise.
2188 * m4/obstack.m4: Likewise.
2189 * m4/ptrdiff.m4: Likewise.
2190 * m4/regex.m4: Likewise.
2191 * m4/strtod.m4: Likewise.
2192 * m4/termios.m4: Likewise.
2193 * m4/winsz.m4: Likewise.
2195 Tue Mar 18 06:46:54 1997 Jim Meyering <meyering@na-net.ornl.gov>
2197 * src/su.c: Indent cpp-directives to reflect nesting.
2198 Change a few #ifdef to #if.
2199 Remove 3 spurious #ifdef that were guarding an #undef each.
2201 * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid
2203 (print_numbers): Likewise.
2205 * src/who-users.c (idle_string): Rename local, IDLE, to avoid
2208 * src/su.c (log_su): Resort to getpwuid if getlogin fails.
2209 If no tty name is found, use `none' in the log message.
2210 Based on a patch from Galen Hazelwood.
2212 Thu Mar 13 21:27:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
2214 * lib/mktime.c: (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
2216 Wed Feb 19 23:06:46 1997 Jim Meyering <meyering@na-net.ornl.gov>
2218 * src/factor.c (factor): Rewrite inner loop to be more efficient.
2219 Patch from Torbjorn Granlund.
2221 Tue Feb 18 21:18:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
2223 * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug
2224 fixed on 1996-03-05.
2225 Remove misleading `-' from leap-1 test.
2227 * tests/Makefile.am (SUBDIRS): Add factor.
2228 * tests/factor: New directory.
2229 * configure.in (AC_OUTPUT): Add tests/factor/Makefile.
2231 Tue Feb 4 22:03:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
2233 * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
2234 Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
2235 * configure.in (AC_CHECK_HEADERS): Add termios.h.
2237 Fri Jan 31 21:13:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
2239 * src/*.c (usage): Bracket bug-reporting address with <> and append
2241 * src/*.sh: Likewise.
2243 * src/*.c: Compare getopt_long return value against -1, not EOF.
2244 Use NULL, not `(int *) 0' as last parameter in getopt_long call.
2246 Mon Jan 27 21:43:50 1997 Jim Meyering <meyering@na-net.ornl.gov>
2248 * src/chroot.c (usage): Remove one space in message to make
2251 Sun Jan 26 12:51:05 1997 Jim Meyering <meyering@na-net.ornl.gov>
2255 * src/who-users.c (usage): Fix typo (--writeable -> --writable)
2256 in help output. From Galen Hazelwood.
2258 Sat Jan 25 21:01:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
2260 * src/factor.c (print_factors): Reflect changes to xstrtoul interface.
2262 * tests/date/mk-script.pl: Generated script now reflects
2263 specification (in Test.pm) of default and per-test environment
2266 Fri Jan 24 23:36:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
2268 * lib/long-options.c (parse_long_options): Reset optind to zero
2269 before just returning so that getopt internals get initialized from
2270 the probably-new parameters when/if getopt is called later.
2271 This solves the problem (reintroduced with 1.15) where `stty -tabs'
2272 would not work as advertised but instead act like `stty -a'.
2273 Reported by Arne Juul.
2274 Suggested fix from Ulrich Drepper.
2276 Wed Jan 22 20:12:31 1997 Jim Meyering <meyering@na-net.ornl.gov>
2278 * lib/getopt.c: Update from GNU C library.
2279 * lib/getopt1.c: Update from GNU C library.
2280 * lib/getopt.h: Update from GNU C library.
2282 * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in.
2283 (SUBDIRS): Set to `date'.
2285 * configure.in: Check for perl.
2286 (AC_OUTPUT): Add tests/date/Makefile.
2287 * tests/date: New directory.
2289 * m4/getgroups.m4: Move the code from configure.in into
2290 this macro that resorts to looking for getgroups in -lbsd.
2291 Set new shell variable, GETGROUPS_LIB (that callers should check),
2292 if it is found there.
2293 * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
2294 (AC_CHECK_FUNCS): Remove getgroups.
2295 Remove code that resorts to looking for getgroups in -lbsd.
2297 * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values
2298 for the TZ environment variable. Andre Novaes Cunha provided the
2299 hairy TZ setting that exercized the Solaris tzset bug.
2301 1997-01-22 Paul Eggert <eggert@twinsun.com>
2303 * lib/strftime.c (_strftime_copytm):
2304 New function, to work around Solaris 2.5 tzset bug.
2306 * m4/mktime.m4: (AM_FUNC_MKTIME): Fix bug in mktime test -- don't
2307 test now, test a couple of thousand times.
2309 * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is
2310 specified by Posix.1.
2312 Sat Jan 18 09:32:26 1997 Jim Meyering <meyering@na-net.ornl.gov>
2314 * lib/getdate.y (get_date): Change prototype to reflect const'ness
2316 Indent cpp-directives to reflect nesting.
2317 Indent with GNU indent.
2319 * lib/getdate.h: New file.
2320 * src/date.c: Include getdate.h.
2321 (<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
2322 (get_date): Don't declare. getdate.h does it.
2324 * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
2326 1997-01-06 Paul Eggert <eggert@twinsun.com>
2328 * getdate.y: Rewrite to use mktime.
2330 <sys/timeb.h>: Don't include.
2333 (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
2334 ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
2335 (ToHour): New function (part of the old ToSeconds fn).
2336 (ToYear): New function (part of the old Convert fn).
2338 (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
2339 yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
2340 Number): Now int instead of time_t.
2341 (HOUR): Don't cast to time_t.
2343 (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
2344 (UnitsTable): Use new units that are closer to the keywords.
2346 (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
2347 (rel, relunit, get_date): Add support for them.
2349 (time): Fix timezone calculations for negative half-hour offsets
2350 when integer division truncates towards minus infinity.
2352 (zone): Incorporiate DST calculation directly.
2354 (get_date): 2nd arg is now time_t *, not struct timeb *.
2355 Use mktime to do most of the work, instead of computing it ourselves.
2356 Guard against falsely reporting errors near the time_t boundaries
2357 when parsing times in other time zones.
2359 Thu Jan 16 20:58:40 1997 Jim Meyering <meyering@na-net.ornl.gov>
2361 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
2362 * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here.
2364 Tue Jan 14 22:45:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
2366 * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic.
2367 Alphabetize functions.
2369 * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's
2370 pstat_getdynamic function so we don't need any special privileges
2371 to determine load averages. Patch from Kaveh Ghazi, based on a
2372 sample implementation from Richard J. Rauenzahn.
2373 Indent cpp-directives to reflect nesting.
2375 Wed Jan 8 16:38:24 1997 Jim Meyering <meyering@na-net.ornl.gov>
2379 * lib/getopt.c (_getopt_internal): Use `_', rather than the
2380 (sometimes-)expansion `gettext'.
2382 Tue Jan 7 22:10:51 1997 Jim Meyering <meyering@na-net.ornl.gov>
2384 * src/nice.c (main): Work around failures induced by new version of
2385 getopt.c by not modifying optind before the first getopt_long call
2386 in main. With suggestions from Ulrich Drepper.
2388 * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
2389 [_]: Define to gettext also if ENABLE_NLS is defined.
2392 Fri Jan 3 21:08:29 1997 Jim Meyering <meyering@na-net.ornl.gov>
2394 * acconfig.h (getgroups): Add #undef.
2395 From Marcus Daniels.
2397 Fri Dec 27 17:25:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
2399 * src/who-users.c [!WTMP_FILE]: Provide default path.
2400 (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
2401 Patch from Kaveh R. Ghazi.
2402 Indent cpp directives.
2404 * m4/getgroups.m4: Rewrite the test so that systems lacking
2405 getgroups don't try to use the supplied replacement function --
2406 that depends on the existence of such a function.
2408 * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
2410 * configure.in (jm_FUNC_GETGROUPS): Use it.
2411 Reported by Marcus Daniels.
2412 AC_REQUIRE version 2.12 of autoconf.
2414 Sun Dec 22 23:31:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
2416 * configure.in: Increment version to 1.14a.
2418 * m4/Makefile.am (EXTRA_DIST): Add README.
2420 Fri Dec 20 19:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
2422 * src/who-users.c (usage): Say that UTMP_FILE is the default FILE
2423 rather than hard-coding /etc/utmp. Replace hard-coded /etc/wtmp
2424 with WTMP_FILE. Suggestion from Eivind.
2426 * src/seq.c (usage): Tweak --help text.
2428 * configure.in (AC_OUTPUT): Add m4/Makefile.
2430 * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
2432 * Makefile.am (SUBDIRS): Add m4.
2433 (aclocal-files): Add rules that rely on (GNU) make's include
2434 directive that computes dependencies for aclocal.m4.
2435 (aclocal.m4): Override automake-generated rule.
2437 * m4/Makefile.am: New file.
2439 * lib/strftime.c: Update from GNU libc.
2441 * m4/getline.m4: New file, extracted from acinclude.m4.
2442 * m4/getloadavg.m4: Likewise.
2443 * m4/jm-mktime.m4: Likewise.
2444 * m4/jm-winsz1.m4: Likewise.
2445 * m4/jm-winsz2.m4: Likewise.
2446 * m4/memcmp.m4: Likewise.
2447 * m4/strftime.m4: Likewise.
2448 * m4/uptime.m4: Likewise.
2450 * m4/ccstdc.m4: Copied from automake-1.1l.
2451 * m4/dmalloc.m4: Likewise.
2452 * m4/error.m4: Likewise.
2453 * m4/gettext.m4: Likewise.
2454 * m4/header.m4: Likewise.
2455 * m4/init.m4: Likewise.
2456 * m4/install.m4: Likewise.
2457 * m4/lcmessage.m4: Likewise.
2458 * m4/lispdir.m4: Likewise.
2459 * m4/maintainer.m4: Likewise.
2460 * m4/mktime.m4: Likewise.
2461 * m4/obstack.m4: Likewise.
2462 * m4/progtest.m4: Likewise.
2463 * m4/protos.m4: Likewise.
2464 * m4/ptrdiff.m4: Likewise.
2465 * m4/regex.m4: Likewise.
2466 * m4/sanity.m4: Likewise.
2467 * m4/strtod.m4: Likewise.
2468 * m4/termios.m4: Likewise.
2469 * m4/winsz.m4: Likewise.
2471 * m4/getgroups.m4: New file.
2472 (jm_FUNC_GETGROUPS): New macro
2473 * lib/getgroups.c: New file.
2475 * m4: New directory.
2477 Wed Dec 18 07:47:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
2479 * configure.in (AC_CHECK_HEADERS): Add paths.h.
2480 * src/su.c [HAVE_PATHS_H]: Include <paths.h>.
2481 [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
2482 [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
2485 * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings
2486 outside the quoted test program. Quote the test program with <<, >>.
2487 Reported by Andreas Schwab.
2488 (AM_FUNC_GETLOADAVG): Likewise.
2489 (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier
2491 Tue Dec 17 18:54:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
2493 * src/Makefile.am (install-exec-local): Properly redirect stdout
2494 and stderr to /dev/null. From Eric Backus.
2496 * lib/strftime.c: Update from GNU libc.
2498 * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than
2499 now-obsolete AC_C_CROSS.
2500 (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one
2501 since there's nothing GNU-specific about the replacement. Contrast
2502 with gnu_ prefix added to strftime.
2503 (jm_FUNC_MEMCMP): New macro.
2504 * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP.
2505 * acconfig.h: Add memcmp.
2507 Sun Dec 15 18:37:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
2509 * configure.in (check for 3-argument setpriority function): Complete
2510 partial change made on Dec 12. From Arne Juul.
2512 Sat Dec 14 14:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
2514 * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
2515 name for cross compiling.
2516 Remove definitions of gettext-related macros. The gettext
2517 installation procedure installs corresponding .m4 files so that
2518 aclocal will use them.
2520 Thu Dec 12 06:07:30 1996 Jim Meyering <meyering@na-net.ornl.gov>
2524 * src/system.h (ISDIGIT): Replace with smaller, faster edition
2525 that yields nonzero only on ASCII digits.
2526 (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
2527 used to have. From Paul Eggert.
2529 * configure.in: Bump version to 1.14.
2531 * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII.
2532 (ISDIGIT): New definition from Paul Eggert.
2533 This one evaluates its argument exactly once.
2534 (yylex): Move increment out of ISALPHA argument. Use a
2535 comma-expression instead.
2537 * src/false.sh (usage): Update bug-reporting address.
2538 * src/groups.sh (usage): Likewise.
2539 * src/nohup.sh (usage): Likewise.
2540 * src/true.sh (usage): Likewise.
2541 Reported by Karl Heuer.
2543 * configure.in (check for 3-argument setpriority function): Add nohup
2544 to list of scripts, not the list of programs.
2547 * POTFILES.in: Add chroot.c. Reported by Michel Robitaille.
2549 Wed Dec 11 19:33:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
2553 Tue Dec 10 06:36:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
2555 * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro. Derived from the
2556 code in configure.in, except now it punts when cross compiling.
2557 Suggestion from Karl Heuer.
2558 * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded
2561 * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
2562 Reported by Thomas Bushnell.
2564 * configure.in: Bump version to 1.12t.
2566 * Regenerate all Makefile.in using a patched version of automake-1.1l.
2568 * acconfig.h (strftime): Add #undef.
2571 * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX.
2574 Mon Dec 9 06:58:11 1996 Jim Meyering <meyering@na-net.ornl.gov>
2576 * configure.in: Bump version to 1.12s.
2578 * lib/getdate.y (Convert): Don't reject all dates in 2038.
2579 Some fit in 31 bits.
2581 * configure.in (jm_FUNC_GNU_STRFTIME): Use it.
2583 * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro.
2584 (jm_FUNC_GNU_STRFTIME): New macro.
2586 * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c.
2587 (EXTRA_DIST): Add strftime.c.
2589 * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo:
2590 Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to
2591 $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h.
2592 Patch from Kaveh R. Ghazi.
2594 * src/stty.c: Include config.h before testing for
2595 TERMIOS_NEEDS_XOPEN_SOURCE.
2596 Patch from Karl Heuer.
2598 * configure.in (AC_ISC_POSIX): Remove kludgy macro.
2599 Use this test instead:
2600 (LIBS): Add -lcposix if it contains strerror.
2601 Patch from Karl Heuer.
2603 * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to
2604 ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation
2605 problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such
2606 space-separated assignments from right to left. Patch from Karl Heuer.
2607 (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS.
2608 Patch from Karl Heuer.
2610 * lib/strftime.c [HAVE_TZNAME]: Declare tzname.
2611 Patch from Karl Heuer.
2613 * src/Makefile.am (.sh): Also substitute @bindir@.
2614 Reported by Karl Heuer.
2616 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
2618 =========== Update for automake-1.1k.
2619 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
2620 * configure.in (AM_CONFIG_HEADER): Use it.
2621 (AC_OUTPUT): Remove stamp-h timestamping statement.
2622 Now, AM_CONFIG_HEADER does it automatically.
2623 * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
2624 new automake requirement.
2625 Rename su_* variables to libsu_a_*.
2627 Sun Dec 8 00:08:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
2629 * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
2631 Sat Dec 7 12:52:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
2633 * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
2634 From Michel Robitaille.
2636 * configure.in (ALL_LINGUAS): Add Portuguese (pt).
2638 * lib/getloadavg.c [__SVR4]: Define SVR4.
2639 Remove duplicate `|| defined(SVR4)' disjunct guarding the
2640 #define KERNEL_FILE "/unix" definiton.
2642 * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
2643 of the AM_ prefixed macro.
2644 (check for TIOCGWINSZ in sys/pty): In essence, require
2645 jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
2646 $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
2647 $gwinsz_in_termios_h) is defined.
2649 * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
2650 Correction from Paul Eggert.
2652 Fri Dec 6 20:52:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
2654 * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
2655 AM_FUNC_MKTIME, simply AC_REQUIRE it.
2657 Mon Dec 2 20:59:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
2659 * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
2660 define WINSIZE_IN_PTEM to precede test that checks whether
2661 `TIOCGWINSZ in sys/pty.h'. The latter test uses the symbol.
2662 (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
2664 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
2666 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
2667 if L >= 1000, otherwise as MM/DD/YY. With this change,
2668 date --date=DATE accepts dates like those in an RCS log listing.
2670 Sat Nov 30 22:08:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
2672 * lib/strftime.c: Update from GNU libc.
2674 Fri Nov 29 22:16:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
2676 * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
2677 --processor (-p). Print processor type.
2678 (usage): Document it.
2680 Thu Nov 28 00:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
2682 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
2683 for gettext-0.10.25.
2684 (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
2686 Sun Nov 24 11:02:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
2688 * src/system.h [!defined STDIN_FILENO]: Define it.
2689 [!defined STDOUT_FILENO]: Define it.
2690 [!defined STDERR_FILENO]: Define it.
2692 * src/stty.c (get_win_size): Take a FILENO parameter rather than
2693 trying to get a size from both stdin and stdout.
2695 Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
2697 ========== From Karl Heuer =========
2698 * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
2699 i386-pc-isc3.0, needs that in order to cause all of the useful
2700 termios symbols to be defined, instead of just those that are
2701 required by POSIX. This enables all of: iuclc ixany olcuc ocrnl
2702 onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
2704 [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
2706 [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
2707 termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
2708 POSIX requires that symbol). Define VSWTCH as a synonym if needed,
2709 so that either one can be used on input.
2710 (display_changed): If the slot for swtch is the same as the one for
2711 susp, display only the setting for susp.
2712 (display_all): Likewise.
2714 (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
2715 On such systems, it's confusing to print both pairs. So, skip eof and
2716 eol when icanon is unset, and skip min and time when icanon is set.
2717 (display_all): Likewise.
2719 (set_window_size): Check only stdin (the device being queried) for
2720 window size info. You don't want "stty </dev/foo" to report the size
2721 of your current window when /dev/foo has no size info.
2722 (display_window_size): Likewise.
2724 (screen_columns): Check only stdout for window size info. You want
2725 "stty </dev/foo" to wrap columns at the right margin of your current
2726 window, not the /dev/foo width.
2728 * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
2729 (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
2731 * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
2732 (whether TIOCGWINSZ is defined in sys/pty.h): New test.
2734 Sat Nov 23 16:15:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
2736 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
2737 isn't mentioned in AC_REPLACE_FUNCS.
2739 * env.c (usage): Alphabetize option descriptions the way sort -f would.
2740 * test.c (usage): Likewise.
2741 * who-users.c (usage): Likewise.
2744 Fri Nov 22 20:33:26 1996 Jim Meyering <meyering@na-net.ornl.gov>
2746 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
2747 way. AM_FUNC_GETLINE does it now.
2749 * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
2750 * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
2753 * src/printf.c (main): Warn if excess arguments are ignored.
2754 E.g., printf foo bar now warns that it is ignoring the single
2755 non-format argument, bar.
2757 Wed Nov 20 20:37:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
2759 * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
2760 gethostname. Reported by Fletcher Mattox.
2762 Tue Nov 19 23:01:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
2764 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
2766 (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
2767 automake-1.1g couldn't deal with the _SCRIPTS suffix.
2768 * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
2770 Sun Nov 17 20:49:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
2772 * src/id.c (main): Ignore -a, for compatibility with SVR4.
2773 Suggestion from Noah Friedman.
2775 Mon Nov 4 20:24:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
2777 * configure.in (test for group_member): Handle it separately
2778 so I can keep the hyphen (not the underscore) in the filename.
2780 Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
2782 * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
2783 returns an error other than buffer overflow, exit with an error
2784 message instead of allocating infinite amounts of space.
2785 [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
2786 <errno.h>: New include.
2787 [!errno] (errno): New declaration.
2789 * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
2791 * configure.in: Check for -linet library before checking for the
2792 gethostbyname function. Suggested by Karl Heuer.
2793 Use AM_FUNC_GETLINE.
2795 * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
2796 Based on a test from Karl Heuer.
2798 Sun Nov 3 14:57:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
2800 * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
2801 am_cv_saved_LIBS from LIBS. From Karl Heuer.
2803 * src/stty.c (recover_mode): Fail also if there are too many fields.
2806 * lib/canon-host.c: Include sys/types.h for the definitions
2807 (otherwise missing on some systems) of caddr_t (used by
2808 sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
2810 Sat Nov 2 00:16:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
2812 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
2813 Otherwise, the generated info files have names longer than
2814 the 14-byte max of some old systems.
2815 Reported by Karl Heuer.
2817 * src/date.c (main): Give better diagnostic.
2818 Suggestion from Karl Berry.
2820 Thu Oct 31 18:28:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
2822 * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
2823 * lib/getdate.y: Remap yacc globals to have gd_ prefix.
2824 Suggestion to do as in gdb/c-exp.y from Tom Tromey.
2826 Mon Oct 28 17:40:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
2828 * src/Makefile.am (install-exec-local): Redirect stderr of chown to
2829 /dev/null and suggest running `make install-root' upon failure to
2830 install su. Suggestions from François Pinard.
2832 * configure.in: Don't output confusing diagnostic: `checking for
2833 shadow password routines'. Suggestion from François Pinard.
2835 Thu Oct 24 13:50:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2837 * src/tee.c (main): Ignore SIGPIPE.
2839 Wed Oct 23 23:42:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
2841 * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
2842 with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
2843 loses with Dynix/PTX.
2844 (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
2845 Suggestion from Marcus Daniels.
2847 Mon Oct 21 16:49:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
2849 * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
2850 defines or includes -- Linux systems simply read /proc/loadavg.
2851 From Ulrich Drepper.
2853 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
2855 * configure.in: Remove hack that created link from group_member.c
2858 * lib/group_member.c: New file. Renamed from group-member.c.
2859 * lib/group-member.c: Delete.
2861 * src/stty.c (main): Remove TAB from diagnostic, for consistency.
2863 Sun Oct 20 09:03:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
2865 * Makefile.am (install-root): Add it here, too.
2867 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
2869 * src/Makefile.am (install-root): New rule.
2870 Suggestion from François Pinard.
2872 * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
2873 directly. From Ulrich Drepper.
2875 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
2876 (EXTRA_DIST): Remove @README_ALPHA@.
2878 * configure.in: Remove README_ALPHA related code. Automake takes
2879 care of it automatically now when in gnits mode.
2881 * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
2882 #include $srcdir/lib/getloadavg.c. The latter isn't defined at that
2883 point in configure script. From Eric Backus.
2885 Fri Oct 18 21:31:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
2887 * Makefile.am (cvs-dist): Uncomment cvs tag command.
2888 (cvs-dist): Use cvs tag's -c option.
2890 Thu Oct 17 23:48:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
2892 * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
2893 using YP. From Arne Juul.
2895 Sun Oct 13 07:34:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
2897 * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
2898 * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
2899 (by saving and restoring initial value). Instead, arrange for
2900 substitution of @GETLOADAVG_LIBS@.
2901 * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
2904 * configure.in (ALL_LINGUAS): Add swedish (sv).
2906 Fri Oct 11 22:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
2908 * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
2909 call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
2910 From Kaveh R. Ghazi.
2912 * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
2914 * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
2915 with the following changes:
2916 - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
2917 Reported by Eric Backus.
2918 - Check for Solaris' libkstat.
2919 - Define C_GETLOADAVG if we end up using getloadavg.c.
2920 From Kaveh R. Ghazi.
2921 * acconfig.h (C_GETLOADAVG): Add it.
2922 From Kaveh R. Ghazi.
2924 * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
2925 getloadavg-related libraries only when linking uptime.
2927 Thu Oct 10 23:50:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
2929 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
2930 (su_SOURCES): Put them here instead.
2931 Remove rules for building getdate.c and posixtm.c; now automake
2932 generates those rules.
2933 * lib/ylwrap: New file.
2934 * lib/interlock: New file.
2936 Wed Oct 9 00:26:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
2938 * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi.
2940 * lib/strftime.c (strftime): Accommodate the broken C compiler
2941 that comes with SunOS -- don't initialize aggregates in decls of
2942 automatic variables. Reported by Kaveh Ghazi.
2944 * tests/: Renamed checks/ directory.
2945 * Makefile.am (SUBDIRS): Rename checks to tests.
2946 * configure.in (AC_OUTPUT): Rename checks to tests.
2948 * configure.in (/proc/uptime check): Guard the read of /proc/uptime
2949 with an existence test to avoid a messy configure-time warning on
2950 systems that lack that special file. Reported by Kaveh R. Ghazi.
2952 * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
2953 not $LIB. From Kaveh R. Ghazi.
2955 * checks/nice: Protect echoed args with leading `x' so echo doesn't
2956 interpret leading -n on e.g. SunOS systems.
2958 Mon Oct 7 18:46:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
2960 * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
2962 * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
2963 (su_SOURCES): Remove memcmp.c.
2964 Automake automatically includes at least these, now.
2965 From François Pinard.
2967 * lib/Makefile.am (su_SOURCES): Remove getline.c.
2969 Sat Oct 5 11:38:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
2971 * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
2972 it's AC_REPLACE'd and already in EXTRA_DIST.
2974 * configure.in: Use AM_SANITY_CHECK_CC.
2976 * configure.in: Use AM_FUNC_ERROR_AT_LINE.
2977 * lib/Makefile.am (EXTRA_DIST): Put error.c here.
2978 (su_SOURCES): Remove error.c
2979 Suggested by Ulrich Drepper.
2981 * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
2982 * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
2983 in the four installed scripts.
2984 * src/*.sh: Update --version output to conform to the coding standard.
2986 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
2987 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
2988 checking... messages don't get nested.
2990 * configure.in (GNU_PACKAGE): New variable.
2991 (PACKAGE_VERSION): Remove it.
2993 * acconfig.h (GNU_PACKAGE): New variable.
2994 (PACKAGE_VERSION): Remove now-unused variable.
2996 * src/*.c: Update --version output to conform to the coding standard.
2998 Sun Sep 22 22:41:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
3000 * configure.in (AC_CHECK_HEADERS): Alphabetize.
3001 Update for automake-1.1e.
3003 Thu Sep 19 07:47:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
3005 * lib/regex.c: Merge with FSF version.
3006 * lib/getloadavg.c: Replace with FSF version.
3008 Mon Sep 16 23:13:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
3010 * lib/strftime.c (strftime): New version, from GNU libc.
3012 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
3014 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
3016 Mon Sep 9 22:10:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
3018 * configure.in: Improve handling of math library so -lm is used
3019 only when it's actually required. That makes a difference when
3020 using dynamic linking.
3021 Remove check that added -lm to LIBS.
3022 (SQRT_LIBM): Test for and AC_SUBST it.
3023 (POW_LIBM): Likewise.
3024 (SEQ_LIBM): Likewise.
3025 Motivation and suggestions from Ulrich Drepper.
3027 * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
3028 Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
3029 Also set corresponding _DEPENDENCIES variables.
3031 Sat Sep 7 12:41:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
3033 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
3035 * lib/getdate.y: Define and use upper case variants of ctype.h
3036 is* macros. From Bruno Haible.
3038 Thu Sep 5 22:12:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
3040 * lib/strftime.c: New version from glibc.
3042 Wed Sep 4 23:39:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
3044 * configure.in (ALL_LINGUAS): Add dutch (nl).
3046 Mon Sep 2 10:52:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3048 * src/*.c (usage): Tell where to report bugs.
3050 Sun Sep 1 07:56:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
3052 * configure.in (AM_FUNC_MKTIME): Use it.
3053 (AC_REPLACE_FUNCS): Remove mktime.
3054 (AM_INIT_AUTOMAKE): Use it.
3055 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
3056 (AC_PROG_MAKE_SET): Likewise.
3057 (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
3058 AM_ prefix for latest automake/aclocal.
3060 * Makefile.am (EXTRA_DIST): Add acinclude.m4.
3062 * acinclude.m4: New file -- derived from aclocal.m4.
3063 * aclocal.m4: This file is now generated by the aclocal program
3064 (which comes with the automake package.)
3066 Sat Aug 17 00:14:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3068 * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
3069 formats and reverts to old behavior where unrecognized format like
3070 %E is treated as eqivalent to `E'.
3072 Sun Aug 4 09:14:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
3074 * checks/: New directory.
3075 * checks/Makefile.am: New file.
3076 * checks/nice: New file. Derived from tests from Eric Backus.
3077 * configure.in (AC_OUTPUT): Add new directory: checks.
3078 * Makefile.am (SUBDIRS): Likewise.
3080 * src/nice.c (main): Allow `+' in options like -+8 and -+13.
3082 Fri Aug 2 21:45:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
3084 * src/nice.c (main): Set minus_flag to zero in two places.
3085 Otherwise, `nice --1 -3' would mistakenly do the equivalent of
3086 `nice --3'. Thanks to Eric Backus <ericb@lsid.hp.com> for the
3089 * configure.in (check for /proc/uptime): New check.
3090 * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols
3092 *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
3094 From Ulrich Drepper.
3096 Thu Aug 1 22:38:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3098 * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
3099 It isn't necessary because the cpp-time checks of getopt.c and
3100 getopt1.c are at least as good.
3101 * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
3102 (su_SOURCES): Add getopt.c and getopt1.c
3103 This reverts much of the April 23 change.
3105 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
3107 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
3108 redefinition warnings on solaris.
3109 (textdomain) [!ENABLE_NLS]: Likewise.
3111 Sun Jul 21 09:47:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3113 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
3114 Add related check for the getdelim function.
3115 From Ulrich Drepper -- as done in gettext.
3117 * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
3118 From Thomas Olsson <d95to@efd.lth.se>.
3120 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
3122 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
3123 separate PACKAGE and VERSION.
3125 Wed Jul 17 23:13:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
3127 * src/chroot.c: Include <sys/types.h> before system.h.
3128 * src/seq.c: Likewise.
3129 * src/yes.c: Likewise.
3132 Tue Jul 16 00:06:33 1996 Jim Meyering <meyering@na-net.ornl.gov>
3134 * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
3135 Omitting that second arg made some HPUX C compiler report an error.
3136 From Kaveh R. Ghazi.
3138 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
3140 * src/who-users.c (print_uptime): Reverse `days' and `day' in
3141 uptime message. From Kaveh R. Ghazi.
3143 * Many files: Update FSF address.
3145 Sun Jul 14 20:05:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
3147 * src/who-users.c (print_uptime): Use 0, not undefined errno in
3148 couldn't-get-boot-time diagnostic. From Ulrich Drepper.
3150 Sat Jul 13 14:22:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
3152 * src/chroot.c (usage): Add a `\' after `\n' in usage message.
3153 Otherwise, SunOS's /bin/cc chokes.
3155 * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
3156 GWINSZ_BROKEN can't be defined anymore.
3158 * configure.in (boot time test): Use AC_EGREP_CPP instead of
3159 AC_EGREP_HEADER; #endif, instead of #fi.
3160 (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
3161 these macros instead of the tests from which they were derived.
3162 ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
3164 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
3166 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
3167 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
3168 those options on that system, sys/stat.h gets compile errors.
3169 With help from Marcus Daniels.
3171 * getopt.c: Update from gettext-0.10.23.
3172 * getopt1.c: Likewise.
3173 * getopt.h: Likewise.
3175 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
3177 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
3179 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
3181 Sat Jul 6 12:47:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
3183 * configure.in (AC_REPLACE_FUNCS): Add group_member.
3184 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
3185 * lib/Makefile.am (su_SOURCES): Remove group-member.c.
3186 (EXTRA_DIST): Add group-member.c here.
3188 Thu Jul 4 22:40:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
3190 * src/expr.c (docolon): Remove space before newline in usage message.
3192 Sat Jun 29 18:58:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
3194 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
3195 it in the output of --version. Reported by RMS.
3197 Tue Jun 18 22:14:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
3199 * aclocal.m4: Update from gettext-0.10.20.
3200 * ABOUT-NLS: Likewise.
3203 Sun Jun 16 13:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
3205 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
3207 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
3209 * po/Makefile.in.in: Update from gettext-0.10.16.
3211 * ABOUT-NLS: Likewise.
3212 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
3213 gettext-related ones.
3214 Update from gettext-0.10.16.
3216 Wed May 29 21:28:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
3218 * expr.c (docolon): Give a warning when the first character
3219 of the basic regular expression is `^'.
3221 Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
3223 * id.c (xgetgroups): New function, factored out of
3224 print_group_list and print_full_info.
3225 (print_group_list): Call it.
3226 (print_full_info): Call it.
3228 * lib/Makefile.am (getdate.c): Disable dependencies that can
3229 require rerunning YACC when not in maintainer mode.
3230 (posixtm.c): Likewise.
3232 Tue May 14 18:47:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3234 * id.c (print_group_list): When USERNAME is specified use
3235 getugroups to get the number of groups.
3236 (print_full_info): Likewise.
3238 Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
3240 * seq.c (usage): Make it clearer.
3242 Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
3244 * expr.c (main): Don't recognize --help, --h, --he, --version,
3245 --v, etc. if the POSIXLY_CORRECT environment variable is set.
3246 * echo.c (main): Likewise.
3247 * printf.c (main): Likewise.
3248 * test.c (main): Likewise.
3250 * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
3252 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
3254 * configure.in: Require autoconf-2.10.
3256 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
3257 * configure.in (jm_MAINTAINER_MODE): Use it.
3259 Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
3261 * lib/strftime.c: Update from GNU libc.
3263 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
3265 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
3266 * seq.c: Remove useless void casts of *printf return values.
3268 Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
3270 * basename.c (usage): Mark translatable strings.
3271 * chroot.c (main): Likewise.
3272 * basename.c (main): Separate messages about `too few' and `too many'
3273 arguments to ease translation.
3274 * dirname.c (main): Likewise.
3275 * date.c (usage): Change TAB in message to spaces. Doing that seems
3276 to have worked around a problem with something in gettext that was
3277 producing a truncated usage message for date's usage.
3278 From François Pinard.
3280 Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
3282 * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
3283 Otherwise, some systems lose because the value AC_C_INLINE choses
3284 with plain `cc' is different from that chosen when using the ANSI-mode
3285 C compiler. From Kaveh Ghazi.
3287 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
3289 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
3290 * configure.in: Use it.
3291 * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
3292 (EXTRA_DIST): Add getopt.c and getopt1.c
3294 * whoami.c (main): Declare to return int, not void.
3295 * who-users.c (main): Likewise.
3296 * yes.c (main): Likewise.
3298 * src/*.c, src/*.h: Update Copyright years to include 1996.
3300 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
3302 * date.c (usage): Describe new %V format. From Karl Berry.
3304 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
3306 Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov)
3308 * chroot.c (usage): Improve help message.
3309 Enclose message strings in _().
3310 * seq.c (usage): Improve help message.
3311 * factor.c (usage): Likewise.
3314 Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov)
3316 * Makefile.am (cvs-dist): New rule. Based on the one from
3317 Tom Tromey's automake.
3319 Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
3321 * basename.c (basename): Rewrite so it doesn't rely on strrchr,
3322 and hence doesn't need to include string.h -- on some alpha-based
3323 OSF systems, there's a conflicting prototype for basename in string.h.
3324 Reported by Kaveh Ghazi.
3326 * configure.in (AC_REPLACE_FUNCS): Add basename.
3327 * lib/Makefile.am (EXTRA_DIST): Add basename.c.
3328 (su_SOURCES): Remove basename.c.
3331 Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
3333 * src/Makefile.am (who.c): Qualify who-users.c reference with
3335 (users.c): Likewise.
3336 (uptime.c): Likewise.
3337 From François Pinard.
3339 * configure.in: Always invoke AC_GETLOADAVG, not just if we're
3342 Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
3344 * getloadavg.c: Test cpp-defined __sun as well as sun, because
3345 in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
3347 * date.c (usage): Add missing `\n\' at the end of newly added
3348 lines for %e and %z.
3350 * who-users.c (print_uptime): Call getloadavg only if we have it.
3352 Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
3354 * configure.in (LINGUAS): Add de.
3356 * date.c (usage): Describe %e and %z. Reported by Karl Berry.
3358 * who-users.c: Mark translatable strings in new code.
3360 Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov)
3362 * configure.in: Add test for boot_time.
3365 * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
3367 * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
3368 (BUILT_SOURCES): Add uptime.c.
3369 (MOSTLYCLEANFILES): Add uptime.c.
3370 (uptime.c): Add rule to build it from who-users.c.
3372 * who-users.c: Reindent.
3373 (UT_TIME_MEMBER): New macro.
3374 (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
3375 (print_entry): Likewise.
3377 Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov)
3379 * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
3381 Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
3383 * seq.c (print_numbers): Rearrange loops to get it right.
3384 Reported by Karl Eichwalder <ke@ke.Central.DE>.
3386 * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
3387 is inconsistent with START and LIMIT.
3388 (usage): Clean up help message.
3390 * factor.c (usage): Give minimal description of the program.
3391 (print_factors): Give a better diagnostic.
3392 (main): Suggest --help upon failure.
3393 Reported by Karl Eichwalder <ke@ke.Central.DE>.
3395 * seq.c (print_numbers): Fix off-by-one error in
3396 backwards-counting loop. Reported by Karl Eichwalder.
3398 * strftime.c (mon_week_ISO): New function to implement new %V format.
3399 (sun_week): Make TM parameter `const'.
3400 (mon_week): Likewise.
3401 (mon_week): Rewrite to implement %W format correctly.
3402 (strftime): Handle %V format.
3403 Reported by Arne Juul.
3405 Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
3407 * strftime.c (sun_week): Make %U work properly.
3408 Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'.
3410 * nice.c (main): Simplify option handling. Before, `nice -18 -- nice'
3411 improperly printed `8'. Patch from Frank Korz.
3412 (main): Use `if' stmt, not while loop, around getopt invocation.
3413 Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
3414 follows a long option) gets an error.
3416 Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
3418 * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
3419 `-Xc -D__EXTENSIONS__' because of problems with Solaris header
3420 files. Suggested by Kaveh Ghazi.
3422 Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov)
3424 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
3425 when srcdir != builddir. From Kaveh Ghazi.
3427 * lib/getugroups.c: Include stdio.h before grp.h. Because
3428 <grp.h> on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi.
3430 Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
3432 * configure.in: Simplify checking for math library.
3433 This also eliminates some confusing output from configure.
3434 Suggested by François Pinard.
3436 Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov)
3438 * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
3439 -I../intl. With the former, compiles didn't find libintl.h when
3440 configured with `--srcdir=..'. Reported by Marcus Daniels
3441 <marcus@sysc.pdx.edu>.
3443 * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
3446 * src/Makefile.am (EXTRAdir): Set to $(bindir).
3448 Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov)
3450 * ChangeLog.0: New file.
3451 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
3453 Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov)
3455 * man/Makefile.am (man_MANS): Add chroot.1.
3456 * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
3458 Sun Dec 24 10:55:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
3460 * configure.in: Check for chroot a la uname.
3461 * src/chroot.c, man/chroot.1: New files.
3463 Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
3465 * su.c: Protoize and reorder functions to obviate forward decls.
3467 * seq.c: Make parameters const where appropriate.
3468 Rename global FROM to START.
3469 (print_numbers): Rewrite loops to avoid incrementing. Instead,
3470 use `x = first + i * increment' paradigm. Otherwise, with inexact
3471 increment, you could miss the last value.
3473 * xstrtod.c: New file.
3474 * xstrtod.h: New file.
3475 * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
3476 * seq.c: Include xstrtod.h.
3477 (scan_double_arg): Use xstrtod rather than strtod directly.
3479 * src/*: Update FSF's address.
3481 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
3483 * src/*.c (main): Declare to be of type int, not void.
3485 Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
3487 * configure.in (PACKAGE_VERSION): New macro.
3488 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
3489 * acconfig.h (PACKAGE_VERSION): Add it.
3490 * src/Makefile.am: Remove rules for generating version.c.
3491 Remove references to version.o, version.h, and stamp-v.
3492 [.sh]: Change @VERSION@ to @PKG_VERSION@.
3493 On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
3494 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
3495 (install-exec-local): New target/rules to make the installed su
3496 binary setuid root or failing that, to delete it.
3497 * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
3499 * version.c: Remove file.
3500 * version.h: Remove file.
3501 * basename.c date.c dirname.c echo.c env.c expr.c factor.c
3502 hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
3503 pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
3504 who-users.c whoami.c yes.c: Don't include version.h.
3505 (main): Use PACKAGE_VERSION instead of version_string.
3507 Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
3509 * basename.c: Remove __P-protected prototype for basename.
3510 Reported by François Pinard.
3511 (remove_suffix): Move to precede use. Remove prototype.
3512 Declare formal parameter SUFFIX to be const.
3514 * pathchk.c (validate_path): Cast path_max to size_t before
3515 comparing with strlen(path).
3517 * who-users.c (read_utmp): Declare n_read to be of type size_t
3520 Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
3522 * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
3523 id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
3524 sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
3525 yes.c (main): Initialize for internationalized message support:
3526 call setlocale, bindtextdomain, and textdomain.
3527 * system.h: Add definitions and includes for NLS.
3528 * Makefile.am (SUBDIRS): Add intl and po.
3529 * src/Makefile.am (datadir): Define.
3530 (localedir): Define.
3531 (DEFS): Add LOCALEDIR definition.
3532 (LDADD): Add @INTLLIBS@.
3533 * aclocal.m4: Add NLS-related macro definitions from
3534 gettext distribution.
3535 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
3536 HAVE_STPCPY): New macros.
3537 Add PACKAGE and VERSION.
3538 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
3539 (VERSION): Likewise.
3540 (ALL_LINGUAS): Define.
3541 (ud_GNU_GETTEXT): Use it.
3543 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
3545 Mostly from François Pinard.
3547 Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov)
3549 * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
3550 declare formal parameter.
3552 Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov)
3554 * getdate.y (RelativeMonth): Add 1900 to the year so that relative
3555 date specs that push the year through the end of the century work.
3556 For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
3557 From Peter Dalgaard (pd@kubism.ku.dk).
3559 Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
3561 * seq.c (main): Exit after processing --version.
3562 Reported by François Pinard.
3564 Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
3566 * expr.c (docolon): Don't initialize re_syntax_options to
3567 deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
3568 \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
3570 * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
3571 (skip) [_WIN32 && _O_BINARY]: Use it.
3572 (read_char): Likewise.
3573 (read_block): Likewise.
3574 [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
3575 Based on changes by Gary Newman <gnewman@shore.net>.
3577 Wed Feb 28 21:48:07 1996 Paul Eggert <eggert@twinsun.com>
3579 * configure.in (LOCALTIME_CACHE):
3580 Also define if localtime mishandles unsetting TZ.
3581 This works around a localtime bug in mips-dec-ultrix.
3583 Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov)
3585 * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
3586 (noinst_HEADERS): Add xstrtoul.h.
3588 * factor.c: General cleanup. Use xstrtoul, not atoi.
3589 Change output format. Allow inputs as large as ULONG_MAX.
3590 Allow more than one command line argument.
3592 * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
3593 of the pre-ANSI function definition so ansi2knr doesn't munge it.
3595 * src/Makefile.am: Adapt for automake-0.30.
3596 * lib/Makefile.am: Likewise.
3598 * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
3600 Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov)
3602 * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
3603 (MOSTLYCLEANFILES): Add who.c and users.c.
3604 (who.c): New rule to create this file. Concatenate definition of
3605 WHO and contents of who-users.c.
3606 (users.c): New rule to create this file. Concatenate definition of
3607 USERS and contents of who-users.c.
3609 Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
3611 * readtokens.c: Unprotoize.
3613 * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
3614 for function dcls and munge them.
3616 (arithdivf): Likewise.
3618 * test.c: __P-protect forward declarations.
3619 (main): Protoize function definition.
3621 * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
3624 * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
3625 so expr's pattern matching uses BASIC (not GNU-extended) REs.
3626 Reported by Jim Kingdon.
3628 * who-users.c (print_entry): Use strchr, not index.
3630 * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
3631 * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
3632 definition of AF_INET on at least SunOS 4.
3634 Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov)
3636 * who-users.c (main): When failing because there were
3637 `too many arguments,' say so.
3639 Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
3641 * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
3643 (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
3644 * lib/canon-host.c: New file.
3645 * lib/Makefile.am (su_SOURCES): Add canon-host.c.
3646 * src/who.c (print_entry): If possible, canonicalize the host hame.
3647 From Miles Bader (miles@gnu.ai.mit.edu).
3649 Update for automake-0.29.
3650 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
3651 * src/Makefile.am: Likewise.
3652 * lib/Makefile.am: Likewise.
3653 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
3654 * man/Makefile.am (man_MANS): Renamed from MANS.
3656 Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov)
3658 * lib/strftime.c (add_num_tz): New function.
3659 (strftime): Handle new %z format.
3660 * date.c (main): Accept new option, --rfc-822 (-R).
3661 (show_date): Use RFC822-mandated strftime format.
3662 From H. Peter Anvin (hpa@storm.net).
3663 (usage): Add a line describing the new option.
3665 * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
3666 before it's defined.
3668 Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov)
3670 * acconfig.h (PROTOTYPES): Define it.
3672 Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov)
3674 * aclocal.m4 (fp_PROG_INSTALL): New macro.
3675 * configure.in: Use it instead of AC_PROG_INSTALL.
3677 * who-users.c: Protoize.
3679 Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
3681 * stty.c: Protoize and __P-protect forward dcls.
3682 (visible): Change parameter type to unsigned int from unsigned char.
3683 (integer_arg): Use xstrtol instead of open-coding this.
3685 * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
3686 (HEADERS): Add xstrtol.h.
3688 * test.c (advance): Protoize function.
3690 * sleep.c (argdecode): Declare parameter const.
3692 Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
3694 * stty.c: Indent cpp directives.
3696 Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
3698 Use automake to generate Makefile.in files.
3699 * Makefile.am: New file.
3700 * doc/Makefile.am: New file.
3701 * lib/Makefile.am: New file.
3702 * man/Makefile.am: New file.
3703 * src/Makefile.am: New file.
3705 * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
3706 used in place of PROGS.
3708 Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
3710 * configure.in (PACKAGE, VERSION): New variables.
3711 (fp_C_PROTOTYPES): Use it.
3713 * printf.c (print_esc_char): Change type of argument from char
3714 to int to avoid potential promotion problem.
3715 * uname.c (print_element): Likewise.
3717 * system.h [__P]: New macro.
3719 * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
3720 hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
3721 printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
3722 whoami.c, yes.c: Protoize and __P-protect forward dcls.
3724 * who-users.c: New file. Renamed from who.c.
3725 * who.c: Define WHO and include who-users.c.
3726 * uses.c: Define USERS and include who-users.c.
3728 * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
3729 (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
3730 getgroups (0, NULL) to compute number of groups at run time
3731 rather than relying on NGROUPS_MAX at compile time.
3732 (print_full_info) [HAVE_GETGROUPS]: Likewise.
3733 Suggestion from Roland McGrath.
3735 * su.c: Remove NGROUPS_MAX junk. It wasn't being used.
3737 Wed Jan 3 19:03:26 1996 Paul Eggert <eggert@twinsun.com>
3739 * configure.in (LOCALTIME_CACHE): Define if tzset exists and
3740 if localtime caches TZ. Check for tzset.
3741 * acconfig.h (LOCALTIME_CACHE): New macro.
3742 * date.c (putenv): Declare.
3743 (universal_time): Remove.
3744 (main): If -u is given, set TZ to "UTC0"; this causes date to use
3745 UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
3746 (show_date): Just use localtime and a single format, since TZ will
3747 be set properly if -u is given.
3749 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3751 * configure.in: Touch stamp-h only if config.h is remade.
3753 Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com)
3755 * test.c (usage): Clarify usage. From Karl Berry.
3757 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
3759 * Makefile.in (all et. al.): If make was invoked with -k and a
3760 sub-make fails, fail after the loop rather than exiting right away.
3761 Otherwise, make's -k option could be ineffective.
3763 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
3765 * Makefile.in (default): New default target. Depend on `all' to work
3766 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
3769 Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com)
3771 * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
3772 From Theodore Ts'o and Ulrich Windl.
3774 Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com)
3776 * test.c [TEST_STANDALONE]: Define.
3777 * src/Makefile.in (test.o): Remove special rule.
3779 Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com)
3781 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
3782 * configure.in: Use it.
3784 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
3785 (.c.o): Rewrite to be more like src/Makefile.in.
3786 Add line that (--with-autodeps) will include mkdep-Makefile.
3787 (distclean): Remove .deps.
3788 * src/Makefile.in: Likewise.
3790 * mkdep-Makefile: New file.
3791 * Makefile.in (DISTFILES): Add mkdep-Makefile.
3793 * doc/Makefile.in (mostlyclean): Remove *.info.
3795 * date.c: New option --reference=FILE (-r FILE) analogous to the
3796 like-named touch option.
3797 (main): Recognize it and give diagnostic for misuse.
3798 (usage): Describe briefly.
3799 From Franc,ois Pinard.
3801 * date.c (batch_convert): Close input stream also when it's not stdin.
3802 (main): Reorganize to do option-consistency checks before all else.
3804 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
3806 * man/Makefile.in (install-data, uninstall): Use sed not basename.
3807 The GNU Coding Standard suggests that only a select set of
3808 relatively standard utilities be used in Makefiles. basename is
3809 not among them. Suggested by Ulrich Drepper.
3811 Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com)
3813 * yes.c: Include system.h to get definition of _.
3815 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
3817 * system.h (_): Define macro -- as empty for now.
3818 * src/*.c: Annotate localizable strings with _(...). From Franc,ois.
3820 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
3823 Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com)
3825 * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
3826 Add checks for floor, modf, and rint -- all used by seq.c.
3828 Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com)
3830 * getdate.y (Convert): Use 2037 as threshold, not 1999.
3831 Before years after 1999 were treated as invalid.
3832 From Andreas Schwab.
3834 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
3836 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
3837 Without this, SunOS doesn't get type for memchr.
3838 Reported by Kaveh Ghazi.
3840 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
3842 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
3844 * All Makefile.in (install-exec, install-exec): New targets.
3847 * all Makefile.in (maintainer-clean): Renamed from realclean
3850 Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com)
3852 * all source files (usage): Include one- or two-line synopsis
3853 in --help output. From Karl Berry.
3855 Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com)
3857 * lib/Makefile.in (maintainer-clean): Rename from realclean.
3858 (.PHONY): New dependencies.
3859 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
3861 Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com)
3863 * test.c (usage): Remove duplicate descriptions of --help
3864 and --version. From Karl Berry.
3866 * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
3870 * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
3871 Remove all reference to (now unused) safe-xstat.hin.
3873 Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com)
3875 * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
3876 unnecessary conflicts for people using version control software
3878 (AC_ARG_PROGRAM): Use it.
3880 Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com)
3882 * src/*.c: Update Copyright dates.
3884 Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com)
3886 * system.h: Separate errno declaration from STDC_HEADERS.
3887 Remove bcopy, bzero, strchr, strrchr definitions.
3889 * stty.c (main, set_window_size): Use memset instead of bzero.
3890 * su.c (correct_password): Likewise.
3892 * seq.c Remove \n's from error format strings.
3893 (main): Let `seq 1 1' work.
3894 Invoke usage always with 1 when failing.
3896 Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com)
3898 * src/Makefile.in (install): Fix rules for su to avoid relying on
3899 just-built `id' executable. That would lose when cross-compiling and
3900 on systems like GNU in which a user may have several effective IDs.
3901 (SOURCES, OBJECTS, PROGS): Add seq.
3902 * Makefile.in (PROGS): Add seq.
3904 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
3905 (AC_CHECK_FUNCS): Add strchr and strrchr.
3906 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
3908 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
3909 Separate errno declaration from STDC_HEADERS.
3911 Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com)
3913 * getdate.y (ToSeconds): Properly convert 12am and 12pm.
3914 From Takeshi Sone <ts1@tsn.or.jp>.
3916 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
3917 (all): Depend on safe-stat.h and safe-lstat.h.
3919 * date.c (batch_convert): Remove any trailing newline from offending
3920 line before including it in the `invalid date' error from `date -f'.
3921 Reported by Franc,ois Pinard.
3923 Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com)
3925 * factor.c: New file.
3926 * Makefile.in (PROGS): Add factor.
3927 * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
3930 Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com)
3932 * test.c (term): Running `./test \( a -o b' got a seg fault.
3933 From from Klaus.Reichl@aut.alcatel.at.
3935 Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com)
3937 * src/*.c: Include "error.h" rather than simply declaring
3939 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
3941 * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
3942 (distclean): Remove references to safe-l?stat.c.
3943 Remove all related rules and dependencies.
3945 * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
3946 Now that we always define the functions, these are no longer needed.
3948 * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
3949 * who.c (print_entry): Likewise.
3950 * test.c (test_stat, binary_operator): Likewise.
3951 (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
3953 Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com)
3955 * expr.c (docolon): Zero out re_buffer and re_regs before using them.
3956 From H.J. Lu <hjl@nynexst.com>.
3958 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
3960 * dirname.c (main): Use strchr and strrchr instead of index and rindex.
3961 * echo.c (main): Likewise.
3962 * env.c (main): Likewise.
3963 * pathchk.c (validate_path): Likewise.
3964 * printf.c (print_formatted, print_esc): Likewise.
3965 * test.c [member]: Likewise.
3966 * who.c (extract_trimmed_name): Likewise.
3967 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
3968 rindex instead of the other way around.
3970 * doc/Makefile.in (DISTFILES): Add getdate.texi.
3972 Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com)
3974 * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
3975 (AC_CHECK_HEADERS): Add stdlib.h.
3976 (LIBS): If the strtod replacement is required, check for pow in -lm.
3977 * src/Makefile.in (printf): Remove hard-coded -lm. Not every
3980 Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com)
3982 * who.c (list_entries): Delete. Split in two actually...
3983 (list_entries_users, list_entries_who, userid_compare): New functions.
3984 (list_entries_users): Sort the user names. Reported by
3986 Topologically sort the functions and remove fwd declarations.