1 1999-04-24 Jim Meyering <meyering@ascend.com>
5 * configure.in: Use AC_CANONICAL_HOST.
7 1999-04-20 Jim Meyering <meyering@ascend.com>
9 Update factor to use `uintmax_t'.
10 * src/factor.c <xstrtol.h>: Include this, not xstrtoul.h.
12 Use uintmax_t in place of unsigned long.
13 Use human_readable to convert to strings for printing.
14 * lib/xstrtoumax.c: New file.
15 * lib/human.c: New file.
16 * lib/human.h: New file.
17 * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c.
18 (noinst_HEADERS): Add human.h. Remove xstrtoul.h.
20 1999-04-19 Jim Meyering <meyering@ascend.com>
22 * src/seq.c (main): Restore `+' in getopt_long string. Otherwise,
23 commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
24 * tests/seq/basic: Add tests for that.
26 1999-04-17 Jim Meyering <meyering@ascend.com>
28 * tests/seq: New directory and basic tests.
29 * tests/Makefile.am (SUBDIRS): Add seq.
30 * configure.in (AC_OUTPUT): Add tests/seq/Makefile.
32 1999-04-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
34 * configure.in: Check for localeconv.
36 * src/seq.c (decimal_point): New variable.
37 (main): Set it to locale's decimal point. Fix recognition of
38 negative number as argument.
39 (get_width_format): Correctly handle a negative min_val or step
40 when computing fraction width. Use decimal_point.
42 1999-04-08 Jim Meyering <meyering@ascend.com>
44 1999-03-25 James R. Van Zandt <jrv@vanzandt.mv.com>
45 * doc/sh-utils.texi (Options for date): Document --iso-8601
46 * src/date.c: Accept new option: --iso-8601.
47 * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c.
48 (noinst_HEADERS): Add argmatch.h and quotearg.h.
49 * lib/argmatch.c: New file.
50 * lib/argmatch.h: New file.
51 * lib/quotearg.c: New file.
52 * lib/quotearg.h: New file.
54 1999-03-30 Jim Meyering <meyering@ascend.com>
56 * src/sys2.h: Include "closeout.h" and "version-etc.h"
58 * src/*.c (PROGRAM_NAME, AUTHORS): Define and use.
60 * src/date.c: No longer include long-options.h.
61 [long_options]: Add entries for --help and --version.
62 Remove parse_long_options call.
63 (main) [getopt switch]: Add a case for each of --help and --version.
64 * src/env.c: Likewise.
66 * src/pinky.c: Likewise.
67 * src/seq.c: Likewise.
69 * src/sys2.h: Likewise.
70 * src/tee.c: Likewise.
71 * src/tty.c: Likewise.
72 * src/uname.c: Likewise.
73 * src/who.c: Likewise.
75 1999-03-29 Jim Meyering <meyering@ascend.com>
77 * configure.in (GNU_PACKAGE): Remove related code -- now it's in
78 the catch-all for shared autoconf code, m4/jm-macros.m4.
79 (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
82 1999-03-28 Jim Meyering <meyering@ascend.com>
84 * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME.
86 1999-03-28 Paul Eggert <eggert@twinsun.com>
88 * lib/getdate.y (get_date): Reuse tm_isdst of first localtime
89 call; this is an improvement on a bug fix suggested by
90 martin@dresden.nacamar.de. Do not assume that localtime and
91 gmtime return non-null.
93 1999-03-27 Jim Meyering <meyering@ascend.com>
95 * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show
96 that only one of --help or --version is recognized at a time.
97 Reported by Meelis Roos.
98 * src/true.sh: Likewise.
100 * src/id.c (print_user): Use uid_t instead of int.
101 (print_group): Use gid_t instead of int.
104 1999-03-26 Jim Meyering <meyering@ascend.com>
106 * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
107 (noinst_HEADERS): Add version-etc.h.
109 1999-03-20 Jim Meyering <meyering@ascend.com>
111 * src/nohup.sh: Don't modify PATH just to get GNU nice. Instead,
112 try to find an absolute path for GNU nice. From Bruno Haible.
114 1999-03-19 Jim Meyering <meyering@ascend.com>
116 * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of
119 1999-03-17 Jim Meyering <meyering@ascend.com>
121 * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk).
123 1999-03-13 Jim Meyering <meyering@ascend.com>
125 * lib/basename.c (base_name): If NAME is all slashes, return `/' (in
126 conformance with the single unix spec). Reported by Peter Moulder.
128 1999-03-10 Jim Meyering <meyering@ascend.com>
130 * src/uptime.c: Declare getloadavg so I can build with -Werror.
132 * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread.
134 * lib/canon-host.c (canon_host): Don't use he->h_addr directly.
135 Based on a patch from Savochkin Andrey Vladimirovich.
137 1999-03-09 Jim Meyering <meyering@ascend.com>
139 Running `id USER' doesn't report any groups if there is no entry
140 for USER in /etc/group. Always include the one from /etc/passwd.
141 * src/id.c: (xgetgroups): Take new parameter, gid, and pass
143 (print_group_list): Call getpwuid and adjust calls to xgetgroups
144 to include new parameter.
145 * lib/getugroups.c (getugroups): Take new parameter, gid.
146 Add gid to the list of groups.
148 * lib/getgroups.c (getgroups): Protoize.
150 1999-03-08 Jim Meyering <meyering@ascend.com>
152 * tests/basename: New directory and tests.
153 * tests/Makefile.am (SUBDIRS): Add basename.
154 * configure.in (AC_OUTPUT): Add tests/basename/Makefile.
156 1999-03-06 Jim Meyering <meyering@ascend.com>
158 * src/date.c (batch_convert): Use a `%s' format in error call,
159 in case the argument string contains a `%'.
161 * man/Makefile.am (man_MANS): Add pinky.1.
162 * man/Makefile.summ (pinky-summary): Define.
164 * src/date.c: Include long-options.h.
165 [long_options]: Remove the "help" and "version" entries.
166 Remove declarations of show_help and show_version.
167 (main): Use parse_long_options, including author name(s).
168 Remove the show_version and show_help blocks.
169 * src/env.c: Likewise.
170 * src/id.c: Likewise.
171 * src/logname.c: Likewise.
172 * src/pathchk.c: Likewise.
173 * src/pinky.c: Likewise.
174 * src/printenv.c: Likewise.
175 * src/seq.c: Likewise.
176 * src/sleep.c: Likewise.
177 * src/su.c: Likewise.
178 * src/tee.c: Likewise.
179 * src/tty.c: Likewise.
180 * src/uname.c: Likewise.
181 * src/uptime.c: Likewise.
182 * src/users.c: Likewise.
183 * src/who.c: Likewise.
184 * src/whoami.c: Likewise.
186 1999-03-04 Jim Meyering <meyering@ascend.com>
188 * src/basename.c (main): Include author name argument in call to
190 * src/chroot.c: Likewise.
191 * src/dirname.c: Likewise.
192 * src/echo.c: Likewise.
193 * src/expr.c: Likewise.
194 * src/factor.c: Likewise.
195 * src/hostid.c: Likewise.
196 * src/hostname.c: Likewise.
197 * src/nice.c: Likewise.
198 * src/printf.c: Likewise.
199 * src/pwd.c: Likewise.
200 * src/stty.c: Likewise.
201 * src/test.c: Likewise.
202 * src/yes.c: Likewise.
204 1999-03-02 Jim Meyering <meyering@ascend.com>
206 * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite.
208 1999-02-15 Jim Meyering <meyering@ascend.com>
210 * src/stty.c (main): #ifdef-out unreachable code.
212 * src/pinky.c (usage): Add a one-line description.
213 Suggestion from Karl Berry.
215 1999-02-08 Jim Meyering <meyering@ascend.com>
217 * configure.in (ALL_LINGUAS): Add Czech (cs).
219 1999-02-07 Jim Meyering <meyering@ascend.com>
221 * tests/stty/basic-1: Run all tests even if some fail.
224 * tests/stty/basic-1: Use `stty', not $STTY.
225 Fix typo in VERBOSE code: s/\$RM/stty/.
226 * tests/stty/row-col-1: Likewise.
228 * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY.
230 Include stdio.h before defining `_unlocked' macros.
231 * src/pinky.c: Include stdio.h.
232 * src/uptime.c: Likewise.
233 * src/users.c: Likewise.
234 * src/who.c: Likewise.
235 * lib/readutmp.c: Include stdio.h here...
236 * lib/readutmp.h: ...not here.
241 * Makefile.maint (my-distcheck): Don't depend on dist, now that this
242 is hooked up to the distcheck rule.
243 * Makefile.am (distcheck-hook): New target and rule -- link to shared
244 rule, my-distcheck, in Makefile.maint.
246 * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
247 group-member.m4, and just use this new macro.
249 1999-01-31 Jim Meyering <meyering@ascend.com>
251 * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of
252 @ifinfo so `makeinfo --html ...' works. From Karl Berry.
254 * src/chroot.c (main): Call chdir ("/") after chroot.
255 Suggestion from James Youngman.
257 * src/uptime.c (print_uptime): Use the C numeric locale for sscanf
258 of /proc/uptime data, then restore.
259 * lib/getloadavg.c: Include locale.h.
260 [!HAVE_SETLOCALE]: Define-away setlocale.
261 (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the
262 `C' numeric locale. Restore afterwards.
263 Based on a suggestion from Thomas Quinot.
265 * lib/strtod.c: Protoize.
267 1999-01-30 Jim Meyering <meyering@ascend.com>
269 * acconfig.h: Remove lots of now-unnecessary #undefs.
271 * configure.in: Require autoconf 2.13.
273 * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl.
275 * configure.in (ALL_LINGUAS): Add Greek (el).
276 * po/el.po: New file.
278 1999-01-25 Jim Meyering <meyering@ascend.com>
280 * src/date.c (usage): Remove static attribute.
281 Move function be the first in the file.
282 * src/env.c: Likewise.
283 * src/id.c: Likewise.
284 * src/nice.c: Likewise.
285 * src/pathchk.c: Likewise.
286 * src/tty.c: Likewise.
287 * src/uname.c: Likewise.
289 * src/*.c (usage): Remove static attribute.
291 1999-01-14 Jim Meyering <meyering@ascend.com>
293 * src/date.c: Include closeout.h.
294 (main): Use close_stdout_status.
295 * src/printenv.c: Likewise.
296 * src/tty.c: Likewise.
298 * src/hostid.c: Include closeout.h.
299 (main): Use close_stdout.
300 * src/tee.c: Likewise.
302 1999-01-10 Jim Meyering <meyering@ascend.com>
304 * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD,
305 who_DEPENDENCIES): Remove definitions.
307 * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c.
308 (lstat.c, stat.c): New rules.
310 * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver.
312 * configure.in: Require autoconf-2.13.
313 Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries
314 to resolve gethostbyname.
316 1998-12-22 Jim Meyering <meyering@ascend.com>
318 * configure.in (ALL_LINGUAS): Add chinese (zh).
320 1998-12-13 Jim Meyering <meyering@ascend.com>
322 * lib/putenv.c: Don't include stdlib.h and declare malloc and free.
323 This works around Solaris 2.7's conflicting prototype.
324 Reported by Karl Berry.
326 * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
328 (EXTRA_DIST): Add xstat.in.
329 * lib/stat.c: Remove file.
330 * lib/lstat.c: Remove file.
331 * lib/xstat.in (xstat@): New file.
333 1998-12-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
335 * src/date.c (main): Arrange to exit unsuccessfully when stime fails.
337 1998-12-07 Jim Meyering <meyering@ascend.com>
339 * configure.in (ALL_LINGUAS): Add Russian (ru).
341 1998-10-31 Jim Meyering <meyering@ascend.com>
343 * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm.
344 * tests/Fetish.pm: New file.
346 * tests/factor/Makefile.am: Rewrite to use new testing framework.
347 * tests/factor/Test.pm: Remove file.
348 * tests/factor/factor-tests: Remove file.
349 * tests/factor/basic: New file (rewrite of Test.pm).
351 * acconfig.h (stat): New #undef.
353 1998-10-03 Jim Meyering <meyering@ascend.com>
355 * man/Makefile.am: Switch to using help2man.
356 (EXTRA_DIST): Add Makefile.summ.
358 * man/help2man: Invoke program with --manhelp option only if
359 --name=STRING not specified. Otherwise, this would fail with `yes'.
360 * man/Makefile.summ: New file.
361 * man/Makefile.maint: Include it.
362 * man/help2man: New file.
363 * man/GNUmakefile: New file.
364 * man/Makefile.maint: New file.
365 * man/*.x: New files.
366 * man/*.1: Remove files.
368 * src/Makefile.am (install-exec-local): Change comments to use `##'
369 to avoid automake warning.
371 * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/
372 (libsu_a_SOURCES): s/posixtm.y/posixtm.y/
373 (libsu_a_SOURCES): Remove getdate.c. Add fnmatch.h.
375 * src/date.c (main): Update to use new version of posixtime.
376 * lib/posixtm.c: New file.
377 * lib/posixtm.h: New file.
378 * lib/posixtm.y: Remove file.
380 * lib/fnmatch.c: New file. (unused)
381 * lib/fnmatch.h: New file. (unused)
383 1998-09-27 Jim Meyering <meyering@ascend.com>
385 * src/seq.c (main): Decrement optind when we find an `option' that
386 looks like -N. Reported by Clark Morgan.
388 1998-09-26 Jim Meyering <meyering@ascend.com>
390 * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return
391 LONGINT_INVALID for strings that begin with `-'.
393 * tests/factor/Test.pm: Add a test for negative argument.
394 Tweak postprocessing framework.
396 1998-09-19 Jim Meyering <meyering@ascend.com>
398 * src/stty.c (main): Revamp option processing, again.
399 stty couldn't parse some of its options.
400 * tests/stty/basic-1: New test.
401 * tests/stty/Makefile.am (TESTS): Add basic-1.
403 1998-08-29 Jim Meyering <meyering@ascend.com>
405 * src/su.c (longopts): Use corresponding short-option character
406 in place of `1', and `NULL' in place of pointer in initialization.
408 1998-08-11 Jim Meyering <meyering@ascend.com>
410 * src/uptime.c (usage): Correct description. Reported by John Murphy.
412 1998-07-16 Jim Meyering <meyering@ascend.com>
414 * lib/Makefile.am (noinst_HEADERS): Add lchown.h.
415 * lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
416 * lib/lchown.c: Include lchown.h.
418 1998-07-15 Jim Meyering <meyering@ascend.com>
420 * src/seq.c (check_format): Add `5' to the list of digits.
421 Reported by Donni Erpel.
423 1998-07-12 Jim Meyering <meyering@ascend.com>
425 * tests/test: New directory and tests.
426 * tests/Makefile.am (SUBDIRS): Add test.
427 * configure.in (AC_OUTPUT): Add tests/test/Makefile.
429 1998-07-04 Jim Meyering <meyering@ascend.com>
431 * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's
432 automatically discovered by automake.
433 (noinst_HEADERS): Remove unused safe-read.h.
435 * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in
437 (CLEANFILES): Add su, since we build it unconditionally, yet it's
438 never put in @OPTIONAL_BIN_PROGS@.
440 1998-06-29 Jim Meyering <meyering@ascend.com>
442 * src/uptime.c: Include system.h only after error.h and readutmp.h
443 so we don't get redefinition warnings about getc, etc.
444 * src/who.c: Likewise.
445 * src/users.c: Likewise.
447 1998-06-28 Jim Meyering <meyering@ascend.com>
449 * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
451 1998-06-06 Jim Meyering <meyering@ascend.com>
453 * src/test.c (unary_operator): Fail if the operand to -t is not valid.
454 (posixtest): Treat `test -t' the same as `test -t 1'.
456 1998-05-26 Jim Meyering <meyering@ascend.com>
458 * src/test.c (two_arguments): Don't test argv[pos][2] if it's
461 1998-05-25 Jim Meyering <meyering@ascend.com>
463 * configure.in (_GNU_SOURCE): AC_DEFINE it here.
464 * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
465 [!_GNU_SOURCE]: Add #undef instead.
467 1998-05-16 Jim Meyering <meyering@ascend.com>
469 * lib/readutmp.c (read_utmp): Add variant for systems that have
470 the utmpname function.
472 * configure.in: Check for utmpname.
474 * configure.in (jm_MACROS): New wrapper macro.
475 Remove uses of most jm_* macros.
477 * acconfig.h: (chown): Add undef.
478 (D_INO_IN_DIRENT): Likewise.
479 (D_TYPE_IN_DIRENT): Likewise.
482 * lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
483 lines from the m4/*.m4 macros, so the hack of including some
484 custom-replaced C source file names here is no longer needed.
486 1998-05-03 Jim Meyering <meyering@ascend.com>
488 * po/: Update from gettext-0.10.35.
490 * configure.in: Remove use of AC_LINK_FILES.
491 (AC_OUTPUT): Remove po/Makefile-generating sed command.
493 1998-05-02 Jim Meyering <meyering@ascend.com>
495 * src/seq.c (check_format): Use ISDIGIT, not isdigit.
497 1998-04-26 Jim Meyering <meyering@ascend.com>
499 * configure.in: Use jm_ASSERT.
500 * acconfig.h: Add NDEBUG.
502 1998-04-13 Jim Meyering <meyering@eng.ascend.com>
504 * lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
506 1998-04-09 Jim Meyering <meyering@ascend.com>
508 * configure.in (AM_MAINTAINER_MODE): Remove it.
509 No longer use AC_PATH_PROG to check for perl.
510 (jm_PERL): Use this instead.
512 1998-04-04 Jim Meyering <meyering@ascend.com>
514 * lib/readutmp.h (PARAMS): Define.
516 * tests/Makefile.am (SUBDIRS): Add stty.
517 * tests/stty/row-col-1: New file.
518 * tests/stty: New directory.
519 * configure.in (AC_OUTPUT): Add tests/stty/Makefile.
521 * src/stty.c: Use STREQ in place of strcmp everywhere.
522 (valid_options): Indent.
523 Parenthesize assignment in while expr.
524 (main): s/case 'f':/case 'F':/
525 Tweak error messages to make them consistent.
526 Remove #if-0'd block.
527 Move dcl of `fdflags' into scope where it's used.
528 Remove dcl of unused `cp'.
529 Use "%s", not device_name, as the format string, in case the
532 [1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>]
533 * src/stty.c (valid_options): New function.
534 (main): Fix broken options parsing that worked only
535 by serendipity (getopt_long_only already parsed short options; no
536 need to parse them again manually!). Add support for the --file
537 option, which allows the user to specify the device whose line
538 settings are to be set. This is necessary because POSIX ttys will
539 block waiting for carrier detect to go high if CLOCAL is not set,
540 unless the device is opened with the O_NONBLOCK flag.
541 Unfortunately, the shell doesn't use this flag, so users lose.
542 Opening the device in stty is the easist way to fix this.
543 (speeds): Add support for 230400 and 460800 line speeds, which are
546 * acconfig.h (uintmax_t): Add #undef.
548 * configure.in (jm_AC_HEADER_INTTYPES_H): Use it.
549 (jm_AC_TYPE_UINTMAX_T): Use it.
552 * src/system.h: Sync with system.c from fileutils.
554 * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
555 know about the m4/ subdirectory.
556 * Makefile.maint (aclocal-files): Remove now-unnecessary (with
557 automake-1.2h and the above change) aclocal-related rules and includes.
559 1998-04-03 Jim Meyering <meyering@eng.ascend.com>
561 * lib/closeout.c: New file.
562 * lib/closeout.h: New file.
563 * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c.
564 (noinst_HEADERS): Add closeout.h.
566 1998-03-27 Jim Meyering <meyering@eng.ascend.com>
568 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
570 1998-03-26 Jim Meyering <meyering@eng.ascend.com>
572 * src/date.c (batch_convert): Remove spurious space in error message.
573 Reported by Karl Berry.
575 1998-03-13 Jim Meyering <meyering@eng.ascend.com>
577 * lib/getugroups.c (getugroups): Don't add a group number if it
578 would be a duplicate. From Ulrich Drepper.
580 1998-02-22 Jim Meyering <meyering@eng.ascend.com>
582 * tests/Makefile.am (EXTRA_DIST): Add mk-script.
583 * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl.
584 (mk_script): Set to ../mk-script.
585 (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script.
586 Remove @MAINT@ cruft.
587 (Makefile.am): Likewise.
588 Remove @MAINT@ cruft. Now `missing' will explain the failure
589 when people don't have Perl yet modify a file whose rebuilding
590 would lead to the use of Perl.
592 * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@.
593 (who_LDADD): Likewise.
594 (pinky_DEPENDENCIES): Set to $(LDADD)
595 (who_DEPENDENCIES): Likewise.
597 1998-02-20 Jim Meyering <meyering@eng.ascend.com>
599 * lib/getdate.h: Removed. Could cause confusion with an
600 automake-generated `.y.h' rule.
601 * lib/get-date.h: Renamed from getdate.h.
602 * lib/getdate.y: s/getdate.h/get-date.h/
603 * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
604 * src/date.c: s/getdate.h/get-date.h/
606 1998-02-16 Jim Meyering <meyering@eng.ascend.com>
608 * configure.in (jm_FUNC_LSTAT): Use it.
609 (jm_FUNC_STAT): Use it.
610 * acconfig.h: Add lstat.
611 * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c.
613 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
615 * tests/nice: Fail immediately if this test is run with `nice'
616 level different from zero. Reported by Philippe De Muyter.
618 1998-02-03 Philippe De Muyter <phdm@macqel.be>
620 * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
622 * lib/putenv.c (sys/types.h): Include to get size_t on some systems.
623 (NULL): Define if needed.
625 1998-01-31 Jim Meyering <meyering@na-net.ornl.gov>
627 * configure.in (AC_LFS): Use it.
629 1998-01-25 Jim Meyering <meyering@na-net.ornl.gov>
631 * Makefile.maint: New file.
632 * Makefile.am: Move rules common to textutils, fileutils, sh-utils
634 Include Makefile.maint.
635 (EXTRA_DIST): Add Makefile.maint.
637 1998-01-03 Jim Meyering <meyering@na-net.ornl.gov>
639 * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr.
641 * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
642 those files will be built via the ANSI2KNR-filtering rules if necessary.
644 1997-12-25 Jim Meyering <meyering@na-net.ornl.gov>
646 * configure.in: Remove AC_DEFINE of _GNU_SOURCE.
647 * acconfig.h (_GNU_SOURCE): Define if not already defined.
648 Put this code in @TOP@ section.
649 (_GNU_SOURCE): Remove #undef.
651 1997-12-22 Jim Meyering <meyering@na-net.ornl.gov>
653 * configure.in: AC_DEFINE _GNU_SOURCE.
654 * acconfig.h: Add _GNU_SOURCE.
656 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
658 * src/date.c: s/__P/PARAMS/
659 * src/env.c: Likewise.
660 * src/expr.c: Likewise.
661 * src/id.c: Likewise.
662 * src/nice.c: Likewise.
663 * src/pathchk.c: Likewise.
664 * src/seq.c: Likewise.
665 * src/sleep.c: Likewise.
666 * src/stty.c: Likewise.
667 * src/tee.c: Likewise.
668 * src/test.c: Likewise.
669 * src/tty.c: Likewise.
670 * src/uname.c: Likewise.
672 * src/system.h: Merge in several things from fileutils' version of
675 * src/factor.c: Don't include limits.h.
676 (UINT_MAX): Don't define.
677 (INT_MAX): Don't define.
678 These are all done in system.h now.
679 * src/hostname.c: Don't include limits.h.
680 * src/id.c: Don't include limits.h or sys/param.h.
681 * src/pathchk.c: Don't include limits.h.
682 * src/su.c: Likewise.
684 1997-12-10 Jim Meyering <meyering@na-net.ornl.gov>
686 * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying
688 Patch from Dick Streefland.
690 1997-11-17 Paul Eggert <eggert@twinsun.com>
692 * lib/mktime.c, lib/strftime.c (_REENTRANT): #define,
693 as some hosts need this to declare localtime_r properly.
695 1997-11-15 Jim Meyering <meyering@na-net.ornl.gov>
697 * intl/Makefile.in (distclean): Don't remove libintl.h here.
698 * Makefile.am (DISTCLEANFILES): Remove it here instead.
700 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4.
701 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake.
703 * m4/strftime.m4: Check for %F format.
705 1997-11-14 Jim Meyering <meyering@na-net.ornl.gov>
707 * m4/mktime.m4: Temporarily add a copy of this file from the automake
709 (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME.
710 (irix_6_4_bug): New function based on code from Ariel Faigon.
711 (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's
712 infinite looping mktime.
713 Portability tweaks from Paul Eggert.
715 1997-11-13 Jim Meyering <meyering@na-net.ornl.gov>
717 * lib/mktime.c: Update from FSF.
718 * lib/strftime.c: Update from FSF.
719 * m4/strftime.m4: Check for POSIX.2's %f format spec.
721 1997-11-12 Jim Meyering <meyering@na-net.ornl.gov>
723 * configure.in (AC_CHECK_FUNCS): Add mempcpy.
724 * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define.
725 * src/date.c (batch_convert): Use mempcpy rather than stpcpy.
727 1997-11-09 Jim Meyering <meyering@na-net.ornl.gov>
729 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r.
730 * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r.
731 (jm_FUNC_GNU_STRFTIME): Use new macro.
732 (jm_FUNC_STRFTIME): New macro. Likewise.
733 Reported by Noel Cragg.
735 1997-11-02 Jim Meyering <meyering@na-net.ornl.gov>
737 * acconfig.h: Add malloc and realloc.
739 1997-10-25 Jim Meyering <meyering@na-net.ornl.gov>
741 * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc.
742 (xcalloc): #ifdef-out unused function.
743 (xrealloc): Remove code to work around deficient versions of realloc.
744 Now we have an autoconf-enabled replacement version.
745 (xmalloc): Remove code to work around deficient versions of malloc.
746 Now we have an autoconf-enabled replacement version.
748 * configure.in (jm_FUNC_MALLOC): Use it.
749 (jm_FUNC_REALLOC): Use it.
750 * lib/Makefile.am (noinst_HEADERS): Add xalloc.h.
751 (EXTRA_DIST): Add realloc.c.
752 (EXTRA_DIST): Add malloc.c.
754 * lib/malloc.c: New file.
755 * m4/malloc.m4: New file.
756 * m4/Makefile.am (EXTRA_DIST): Add malloc.m4.
758 * lib/xalloc.h: New file.
759 * lib/xmalloc.c: Updated from textutils.
761 * src/*.c: Remove old-style xmalloc and xrealloc decls.
762 * src/system.h: Include xalloc.h.
763 Remove dcls of xmalloc, xcalloc and xrealloc.
765 1997-10-23 Jim Meyering <meyering@na-net.ornl.gov>
767 * Makefile.am (aclocal-files): Also depend on m4/Makefile.am.
769 * src/system.h [!HAVE_DECLARATION_FREE]: Declare free.
770 [!HAVE_DECLARATION_MALLOC]: Declare malloc.
771 [!HAVE_DECLARATION_REALLOC]: Declare realloc.
772 [!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
773 [!HAVE_DECLARATION_STRSTR]: Declare strstr.
775 * src/date.c: Remove stpcpy decl.
776 * src/expr.c: Remove strstr decl.
777 * src/test.c [STREQ]: Undef then redefine.
778 On some systems, strstr and stpcpy are macros, so declaring them
779 unconditionally gets syntax errors.
780 Reported by Mark M. Kettenis.
782 * configure.in: Use jm_CHECK_DECLS.
783 * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4.
785 1997-10-22 Jim Meyering <meyering@na-net.ornl.gov>
787 * m4/decl.m4: New file.
788 * m4/check-decl.m4: New file. New macro, jm_CHECK_DECLS.
790 1997-10-07 Jim Meyering <meyering@na-net.ornl.gov>
792 * src/*.c: Update bug-reporting address.
793 * src/*.sh: Update bug-reporting address.
795 1997-10-02 Jim Meyering <meyering@na-net.ornl.gov>
797 * tests/date/Test.pm (test_vector): Remove _%Z from test `9'.
798 The timezone string was too system dependent.
800 1997-09-25 Jim Meyering <meyering@na-net.ornl.gov>
802 * src/echo.c: Make echo conform to POSIX. By default, don't
803 interpret backslash escape sequences.
804 [V9_DEFAULT]: Don't #define.
805 (usage): Document -e option.
806 (main): Recognize options iff POSIXLY_CORRECT is not set.
809 1997-09-19 Jim Meyering <meyering@na-net.ornl.gov>
811 * lib/getusershell.c (IN_CTYPE_DOMAIN): Define.
813 (readname): Use ISSPACE, not isspace.
814 * lib/strtod.c (IN_CTYPE_DOMAIN): Define.
818 Use upper-case versions of ctype macros.
819 * lib/strtol.c (IN_CTYPE_DOMAIN): Define.
820 (ISSPACE): Guard with IN_CTYPE_DOMAIN.
821 (ISDIGIT): Guard with IN_CTYPE_DOMAIN.
822 (TOUPPER): Guard with IN_CTYPE_DOMAIN.
825 1997-09-17 Jim Meyering <meyering@na-net.ornl.gov>
827 * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT
828 is *not* set. Reported by Frank T Lofaro.
830 * src/hostid.c: New file.
831 * src/Makefile.am (EXTRA_PROGRAMS): Add hostid.
832 * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid,
833 and if found add hostid to the list.
834 * man/hostid.1: New file.
835 * man/Makefile.am (man_MANS): Add hostid.1.
837 1997-08-31 Jim Meyering <meyering@na-net.ornl.gov>
839 * src/who.c (main): New option --lookup (-l).
840 (print_entry): Only call canon_host if user explicitly asks for it.
841 (usage): Describe --lookup.
842 From Galen Hazelwood.
844 * configure.in (ALL_LINGUAS): Add Spanish (es).
846 1997-08-02 Jim Meyering <meyering@na-net.ornl.gov>
848 * src/Makefile.am (bin_PROGRAMS): Add pinky.
850 * src/pinky.c: New file. From Kaveh Ghazi.
851 * po/POTFILES.in: Add pinky.c.
853 1997-07-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
855 * src/date.c (show_date): Don't hang if strftime produces an empty
858 1997-07-16 Jim Meyering <meyering@na-net.ornl.gov>
860 * src/groups.sh: Exit with status from subsidiary `id' command.
861 Don't print `$name : $groups' if id fails.
862 Reported by Austin Donnelly.
864 1997-07-15 Jim Meyering <meyering@na-net.ornl.gov>
866 * lib/getloadavg.c: Merge in changes from FSF.
868 1997-07-13 Jim Meyering <meyering@na-net.ornl.gov>
870 * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi.
871 Now, automake includes it automatically.
873 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
875 * po/Makefile.in.in (DISTFILES): Remove ChangeLog.
876 * po/POTFILES.in: Add who.c, users.c, uptime.c.
879 * src/who.c: Rename lots of `this' locals.
880 Make some parameters `const'.
881 (who): Update read_utmp caller.
882 (search_entries): Take additional param: utmp_buf.
883 Update read_utmp caller.
884 (who_am_i): Update read_utmp caller.
886 * src/users.c (users): Update read_utmp caller.
887 * src/uptime.c (uptime): Update read_utmp caller.
889 * lib/readutmp.h (PARAMS): Update prototype.
890 (utmp_contents): Remove dcl.
892 * lib/readutmp.c (read_utmp): Take new params: count and buffer.
893 Return boolean indicating failure.
894 Now, caller must give diagnostic upon failure.
896 1997-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
898 * lib/readutmp.c, lib/readutmp.h: New files implementing shared
899 functionality from src/who-users.c.
901 * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c.
902 (noinst_HEADERS): Add readutmp.h.
904 * src/who.c, src/users.c, src/uptime.c: Split these so they no
905 longer derive from the template source file who-users.c. Use
906 shared functionality from lib/readutmp.c instead.
908 * src/Makefile.am: Remove rules to build who.c, users.c and
909 uptime.c from template source file who-users.c. Handle these
910 files as stand-alone sources.
912 * src/who-users.c: Remove file. It is no longer used.
914 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
916 * src/date.c (MAYBE_SET_TZ_UTC0): New macro.
917 (set_tz): New function.
918 (batch_convert): If necessary, save the initial value of TZ and
919 for each date in the file, restore it before each call to get_date,
920 then set it to UTC0 before each show_date call.
921 (main): Don't set TZ before calling get_date.
922 Set TZ after get_date call and before show_date call.
923 Reported by Matthew Braun.
924 * tests/date/Test.pm: Add new tests for this bug.
925 Add tests based on new examples in documentation.
927 * stpcpy.c: New file.
928 * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c
930 1997-07-05 Jim Meyering <meyering@na-net.ornl.gov>
932 * src/Makefile.am (EXTRA_PROGRAMS): Add su here.
933 (bin_PROGRAMS): Remove su here.
934 (install-exec-local): Rewrite rule so that su is installed only if
935 it can be made setuid root. Before it was always installed and then
936 removed if it could *not* be made setuid root. That had the potential
937 undesirable side effect of removing (and not replacing) a working
939 (all_local): New target. Dependend on su. Required now that su is
940 no longer in bin_PROGRAMS.
941 (uninstall-local): Remove su only if it comes from the GNU sh-utils.
943 * src/su.c: Redefine/undef getusershell around inclusion of <unistd.h>
944 (via system.h) so Cray's int-returning prototype doesn't conflict
945 with our char*-returning one. Reported by Johan Danielsson.
947 1997-07-04 Jim Meyering <meyering@na-net.ornl.gov>
949 * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to
950 generate tests/*/Makefile.am.
952 * configure.in (ALL_LINGUAS): Add Norwegian (no).
954 * tests/date/mk-script.pl (validate): Create test files in $(srcdir),
956 * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir),
958 * Makefile.am (aclocal-files): Look in source directory, not build dir.
961 1997-07-03 Jim Meyering <meyering@na-net.ornl.gov>
963 * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment
966 Wed Jul 2 11:05:09 1997 Jim Meyering <meyering@na-net.ornl.gov>
968 * src/printf.c (STRTOX): Convert function header in macro definition
969 to K&R-style. Otherwise, ansi2knr would fail to convert the function
970 definitions to K&R for old style compilers. From Kaveh Ghazi.
972 Tue Jul 1 06:28:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
974 * lib/putenv.c [putenv]: Undefine before including system headers.
975 Otherwise, the declaration of *rpl_putenv* conflicts with the system
976 prototype on at least Irix5.3. From Marcus Daniels.
978 Sun Jun 29 07:18:25 1997 Jim Meyering <meyering@na-net.ornl.gov>
980 * lib/putenv.c (rpl_putenv): Renamed from putenv.
981 [putenv]: Remove definition and subsequent #undef hack that avoided
982 conflicts with system prototypes. That didn't let the definition of
983 putenv to rpl_putenv from config.h get through.
984 Suggestion from Marcus Daniels.
986 * configure.in (LIB_CRYPT): AC_SUBST new variable. Use it to add
987 crypt-related library (-lufc or -lcrypt) only for the program that
988 needs it (su), rather than to all executables.
989 * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'.
990 Suggestion from Ulrich Drepper.
992 * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG
993 so tests get english strings. From Ulrich Drepper.
995 Mon Jun 16 11:06:57 1997 Jim Meyering <meyering@na-net.ornl.gov>
997 * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro.
998 * configure.in (jm_FUNC_PUTENV): Use it.
999 * acconfig.h (putenv): Add #undef.
1000 * lib/Makefile.am (EXTRA_DIST): Add putenv.c.
1001 (libsu_a_SOURCES): Remove putenv.c.
1002 * m4/Makefile.am (EXTRA_DIST): Add putenv.m4.
1004 Thu Jun 12 06:48:23 1997 Jim Meyering <meyering@na-net.ornl.gov>
1006 * src/expr.c (eval6): Accept new unary operator, quote.
1009 Wed Jun 11 15:13:56 1997 Jim Meyering <meyering@na-net.ornl.gov>
1011 * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than
1012 searching for `\(' to determine whether to return 0 or the empty
1013 string. Before it would improperly return '' if the pattern
1014 contained a substring like this: `\\('. From Karl Heuer.
1015 For example, running expr c : '\\(' should print `0'.
1017 Sun Jun 1 12:00:10 1997 Jim Meyering <meyering@na-net.ornl.gov>
1019 * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units.
1020 Patch from Richard Sharman <rsharman@magmacom.com>.
1021 * tests/date/Test.pm: Add tests using `next'.
1023 Tue May 27 06:08:06 1997 Jim Meyering <meyering@na-net.ornl.gov>
1025 * lib/basename.c: Don't include backupfile.h.
1027 * lib/Makefile.am (noinst_HEADERS): Add backupfile.h.
1029 * src/basename.c: Use base_name, not basename.
1030 * src/su.c: Use base_name, not basename.
1032 * configure.in: Don't replace basename. Now it's always required.
1034 * lib/Makefile.am (libsu_a_SOURCES): Add basename.c.
1036 * lib/getopt.c: Update from glibc via patch-2.2.93.
1037 * lib/getopt1.c: Likewise.
1038 * lib/getopt.h: Likewise.
1039 * lib/basename.c: Likewise.
1041 Sat May 24 13:26:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
1043 * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are
1044 distributed. This seems to be necessary for automake-1.1p.
1046 Thu May 1 00:10:11 1997 Jim Meyering <meyering@na-net.ornl.gov>
1048 * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c
1049 spline.c test.c uname.c: Indent cpp-directives.
1051 * src/system.h (N_): Define.
1053 Sun Apr 27 18:30:53 1997 Jim Meyering <meyering@na-net.ornl.gov>
1055 * src/printf.c: (cfcc_msg): File-scope constant.
1056 (STRTOX): Use new constant as error message format string in macro.
1057 Suggestion from Andreas Schwab.
1058 (STRTOX): Don't fail because of extra character(s) following a
1059 character constant. Give the *warning* only if !POSIXLY_CORRECT.
1061 Sun Apr 6 14:29:14 1997 Jim Meyering <meyering@na-net.ornl.gov>
1063 * src/printf.c: Reorder functions to obviate forward decls.
1064 Change most char* dcls to const char*.
1065 (STRTOX): New macro to eliminate code duplication.
1066 (xstrtod, xstrtol, xstrtoul): Remove functions.
1067 Use the STRTOX instead.
1069 * src/printf.c: (STRTOX): Interpret arguments like 'a and "a
1070 as POSIX requires. Derived from a patch by Dennis Henriksen.
1072 Sun Mar 23 15:20:17 1997 Jim Meyering <meyering@na-net.ornl.gov>
1074 * configure.in (ALL_LINGUAS): Add polish (pl).
1076 Sat Mar 22 00:03:02 1997 Jim Meyering <meyering@na-net.ornl.gov>
1078 * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l.
1079 (aclocal.m4): Use aclocal's new -I option.
1081 * missing: New file -- from the automake-1.1m distribution.
1083 Thu Mar 20 21:10:44 1997 Jim Meyering <meyering@na-net.ornl.gov>
1085 * m4/ccstdc.m4: Remove file.
1086 * m4/init.m4: Likewise.
1087 * m4/sanity.m: Likewise.
1088 * m4/protos.m: Likewise.
1089 * m4/dmalloc.m4: Likewise.
1090 * m4/error.m4: Likewise.
1091 * m4/header.m4: Likewise.
1092 * m4/install.m4: Likewise.
1093 * m4/lispdir.m4: Likewise.
1094 * m4/maintainer.m4: Likewise.
1095 * m4/obstack.m4: Likewise.
1096 * m4/ptrdiff.m4: Likewise.
1097 * m4/regex.m4: Likewise.
1098 * m4/strtod.m4: Likewise.
1099 * m4/termios.m4: Likewise.
1100 * m4/winsz.m4: Likewise.
1102 Tue Mar 18 06:46:54 1997 Jim Meyering <meyering@na-net.ornl.gov>
1104 * src/su.c: Indent cpp-directives to reflect nesting.
1105 Change a few #ifdef to #if.
1106 Remove 3 spurious #ifdef that were guarding an #undef each.
1108 * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid
1110 (print_numbers): Likewise.
1112 * src/who-users.c (idle_string): Rename local, IDLE, to avoid
1115 * src/su.c (log_su): Resort to getpwuid if getlogin fails.
1116 If no tty name is found, use `none' in the log message.
1117 Based on a patch from Galen Hazelwood.
1119 Thu Mar 13 21:27:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
1121 * lib/mktime.c: (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
1123 Wed Feb 19 23:06:46 1997 Jim Meyering <meyering@na-net.ornl.gov>
1125 * src/factor.c (factor): Rewrite inner loop to be more efficient.
1126 Patch from Torbjorn Granlund.
1128 Tue Feb 18 21:18:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
1130 * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug
1131 fixed on 1996-03-05.
1132 Remove misleading `-' from leap-1 test.
1134 * tests/Makefile.am (SUBDIRS): Add factor.
1135 * tests/factor: New directory.
1136 * configure.in (AC_OUTPUT): Add tests/factor/Makefile.
1138 Tue Feb 4 22:03:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
1140 * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
1141 Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
1142 * configure.in (AC_CHECK_HEADERS): Add termios.h.
1144 Fri Jan 31 21:13:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
1146 * src/*.c (usage): Bracket bug-reporting address with <> and append
1148 * src/*.sh: Likewise.
1150 * src/*.c: Compare getopt_long return value against -1, not EOF.
1151 Use NULL, not `(int *) 0' as last parameter in getopt_long call.
1153 Mon Jan 27 21:43:50 1997 Jim Meyering <meyering@na-net.ornl.gov>
1155 * src/chroot.c (usage): Remove one space in message to make
1158 Sun Jan 26 12:51:05 1997 Jim Meyering <meyering@na-net.ornl.gov>
1162 * src/who-users.c (usage): Fix typo (--writeable -> --writable)
1163 in help output. From Galen Hazelwood.
1165 Sat Jan 25 21:01:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
1167 * src/factor.c (print_factors): Reflect changes to xstrtoul interface.
1169 * tests/date/mk-script.pl: Generated script now reflects
1170 specification (in Test.pm) of default and per-test environment
1173 Fri Jan 24 23:36:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
1175 * lib/long-options.c (parse_long_options): Reset optind to zero
1176 before just returning so that getopt internals get initialized from
1177 the probably-new parameters when/if getopt is called later.
1178 This solves the problem (reintroduced with 1.15) where `stty -tabs'
1179 would not work as advertised but instead act like `stty -a'.
1180 Reported by Arne Juul.
1181 Suggested fix from Ulrich Drepper.
1183 Wed Jan 22 20:12:31 1997 Jim Meyering <meyering@na-net.ornl.gov>
1185 * lib/getopt.c: Update from GNU C library.
1186 * lib/getopt1.c: Update from GNU C library.
1187 * lib/getopt.h: Update from GNU C library.
1189 * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in.
1190 (SUBDIRS): Set to `date'.
1192 * configure.in: Check for perl.
1193 (AC_OUTPUT): Add tests/date/Makefile.
1194 * tests/date: New directory.
1196 * m4/getgroups.m4: Move the code from configure.in into
1197 this macro that resorts to looking for getgroups in -lbsd.
1198 Set new shell variable, GETGROUPS_LIB (that callers should check),
1199 if it is found there.
1200 * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
1201 (AC_CHECK_FUNCS): Remove getgroups.
1202 Remove code that resorts to looking for getgroups in -lbsd.
1204 * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values
1205 for the TZ environment variable. Andre Novaes Cunha provided the
1206 hairy TZ setting that exercized the Solaris tzset bug.
1208 1997-01-22 Paul Eggert <eggert@twinsun.com>
1210 * lib/strftime.c (_strftime_copytm):
1211 New function, to work around Solaris 2.5 tzset bug.
1213 * m4/mktime.m4: (AM_FUNC_MKTIME): Fix bug in mktime test -- don't
1214 test now, test a couple of thousand times.
1216 * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is
1217 specified by Posix.1.
1219 Sat Jan 18 09:32:26 1997 Jim Meyering <meyering@na-net.ornl.gov>
1221 * lib/getdate.y (get_date): Change prototype to reflect const'ness
1223 Indent cpp-directives to reflect nesting.
1224 Indent with GNU indent.
1226 * lib/getdate.h: New file.
1227 * src/date.c: Include getdate.h.
1228 (<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
1229 (get_date): Don't declare. getdate.h does it.
1231 * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
1233 1997-01-06 Paul Eggert <eggert@twinsun.com>
1235 * getdate.y: Rewrite to use mktime.
1237 <sys/timeb.h>: Don't include.
1240 (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
1241 ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
1242 (ToHour): New function (part of the old ToSeconds fn).
1243 (ToYear): New function (part of the old Convert fn).
1245 (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
1246 yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
1247 Number): Now int instead of time_t.
1248 (HOUR): Don't cast to time_t.
1250 (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
1251 (UnitsTable): Use new units that are closer to the keywords.
1253 (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
1254 (rel, relunit, get_date): Add support for them.
1256 (time): Fix timezone calculations for negative half-hour offsets
1257 when integer division truncates towards minus infinity.
1259 (zone): Incorporiate DST calculation directly.
1261 (get_date): 2nd arg is now time_t *, not struct timeb *.
1262 Use mktime to do most of the work, instead of computing it ourselves.
1263 Guard against falsely reporting errors near the time_t boundaries
1264 when parsing times in other time zones.
1266 Thu Jan 16 20:58:40 1997 Jim Meyering <meyering@na-net.ornl.gov>
1268 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
1269 * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here.
1271 Tue Jan 14 22:45:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
1273 * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic.
1274 Alphabetize functions.
1276 * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's
1277 pstat_getdynamic function so we don't need any special privileges
1278 to determine load averages. Patch from Kaveh Ghazi, based on a
1279 sample implementation from Richard J. Rauenzahn.
1280 Indent cpp-directives to reflect nesting.
1282 Wed Jan 8 16:38:24 1997 Jim Meyering <meyering@na-net.ornl.gov>
1286 * lib/getopt.c (_getopt_internal): Use `_', rather than the
1287 (sometimes-)expansion `gettext'.
1289 Tue Jan 7 22:10:51 1997 Jim Meyering <meyering@na-net.ornl.gov>
1291 * src/nice.c (main): Work around failures induced by new version of
1292 getopt.c by not modifying optind before the first getopt_long call
1293 in main. With suggestions from Ulrich Drepper.
1295 * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
1296 [_]: Define to gettext also if ENABLE_NLS is defined.
1299 Fri Jan 3 21:08:29 1997 Jim Meyering <meyering@na-net.ornl.gov>
1301 * acconfig.h (getgroups): Add #undef.
1302 From Marcus Daniels.
1304 Fri Dec 27 17:25:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
1306 * src/who-users.c [!WTMP_FILE]: Provide default path.
1307 (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
1308 Patch from Kaveh R. Ghazi.
1309 Indent cpp directives.
1311 * m4/getgroups.m4: Rewrite the test so that systems lacking
1312 getgroups don't try to use the supplied replacement function --
1313 that depends on the existence of such a function.
1315 * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
1317 * configure.in (jm_FUNC_GETGROUPS): Use it.
1318 Reported by Marcus Daniels.
1319 AC_REQUIRE version 2.12 of autoconf.
1321 Sun Dec 22 23:31:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
1323 * configure.in: Increment version to 1.14a.
1325 * m4/Makefile.am (EXTRA_DIST): Add README.
1327 Fri Dec 20 19:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
1329 * src/who-users.c (usage): Say that UTMP_FILE is the default FILE
1330 rather than hard-coding /etc/utmp. Replace hard-coded /etc/wtmp
1331 with WTMP_FILE. Suggestion from Eivind.
1333 * src/seq.c (usage): Tweak --help text.
1335 * configure.in (AC_OUTPUT): Add m4/Makefile.
1337 * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
1339 * Makefile.am (SUBDIRS): Add m4.
1340 (aclocal-files): Add rules that rely on (GNU) make's include
1341 directive that computes dependencies for aclocal.m4.
1342 (aclocal.m4): Override automake-generated rule.
1344 * m4/Makefile.am: New file.
1346 * lib/strftime.c: Update from GNU libc.
1348 * m4/getline.m4: New file, extracted from acinclude.m4.
1349 * m4/getloadavg.m4: Likewise.
1350 * m4/jm-mktime.m4: Likewise.
1351 * m4/jm-winsz1.m4: Likewise.
1352 * m4/jm-winsz2.m4: Likewise.
1353 * m4/memcmp.m4: Likewise.
1354 * m4/strftime.m4: Likewise.
1355 * m4/uptime.m4: Likewise.
1357 * m4/ccstdc.m4: Copied from automake-1.1l.
1358 * m4/dmalloc.m4: Likewise.
1359 * m4/error.m4: Likewise.
1360 * m4/gettext.m4: Likewise.
1361 * m4/header.m4: Likewise.
1362 * m4/init.m4: Likewise.
1363 * m4/install.m4: Likewise.
1364 * m4/lcmessage.m4: Likewise.
1365 * m4/lispdir.m4: Likewise.
1366 * m4/maintainer.m4: Likewise.
1367 * m4/mktime.m4: Likewise.
1368 * m4/obstack.m4: Likewise.
1369 * m4/progtest.m4: Likewise.
1370 * m4/protos.m4: Likewise.
1371 * m4/ptrdiff.m4: Likewise.
1372 * m4/regex.m4: Likewise.
1373 * m4/sanity.m4: Likewise.
1374 * m4/strtod.m4: Likewise.
1375 * m4/termios.m4: Likewise.
1376 * m4/winsz.m4: Likewise.
1378 * m4/getgroups.m4: New file.
1379 (jm_FUNC_GETGROUPS): New macro
1380 * lib/getgroups.c: New file.
1382 * m4: New directory.
1384 Wed Dec 18 07:47:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
1386 * configure.in (AC_CHECK_HEADERS): Add paths.h.
1387 * src/su.c [HAVE_PATHS_H]: Include <paths.h>.
1388 [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
1389 [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
1392 * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings
1393 outside the quoted test program. Quote the test program with <<, >>.
1394 Reported by Andreas Schwab.
1395 (AM_FUNC_GETLOADAVG): Likewise.
1396 (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier
1398 Tue Dec 17 18:54:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
1400 * src/Makefile.am (install-exec-local): Properly redirect stdout
1401 and stderr to /dev/null. From Eric Backus.
1403 * lib/strftime.c: Update from GNU libc.
1405 * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than
1406 now-obsolete AC_C_CROSS.
1407 (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one
1408 since there's nothing GNU-specific about the replacement. Contrast
1409 with gnu_ prefix added to strftime.
1410 (jm_FUNC_MEMCMP): New macro.
1411 * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP.
1412 * acconfig.h: Add memcmp.
1414 Sun Dec 15 18:37:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
1416 * configure.in (check for 3-argument setpriority function): Complete
1417 partial change made on Dec 12. From Arne Juul.
1419 Sat Dec 14 14:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
1421 * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
1422 name for cross compiling.
1423 Remove definitions of gettext-related macros. The gettext
1424 installation procedure installs corresponding .m4 files so that
1425 aclocal will use them.
1427 Thu Dec 12 06:07:30 1996 Jim Meyering <meyering@na-net.ornl.gov>
1431 * src/system.h (ISDIGIT): Replace with smaller, faster edition
1432 that yields nonzero only on ASCII digits.
1433 (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
1434 used to have. From Paul Eggert.
1436 * configure.in: Bump version to 1.14.
1438 * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII.
1439 (ISDIGIT): New definition from Paul Eggert.
1440 This one evaluates its argument exactly once.
1441 (yylex): Move increment out of ISALPHA argument. Use a
1442 comma-expression instead.
1444 * src/false.sh (usage): Update bug-reporting address.
1445 * src/groups.sh (usage): Likewise.
1446 * src/nohup.sh (usage): Likewise.
1447 * src/true.sh (usage): Likewise.
1448 Reported by Karl Heuer.
1450 * configure.in (check for 3-argument setpriority function): Add nohup
1451 to list of scripts, not the list of programs.
1454 * POTFILES.in: Add chroot.c. Reported by Michel Robitaille.
1456 Wed Dec 11 19:33:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
1460 Tue Dec 10 06:36:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
1462 * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro. Derived from the
1463 code in configure.in, except now it punts when cross compiling.
1464 Suggestion from Karl Heuer.
1465 * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded
1468 * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
1469 Reported by Thomas Bushnell.
1471 * configure.in: Bump version to 1.12t.
1473 * Regenerate all Makefile.in using a patched version of automake-1.1l.
1475 * acconfig.h (strftime): Add #undef.
1478 * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX.
1481 Mon Dec 9 06:58:11 1996 Jim Meyering <meyering@na-net.ornl.gov>
1483 * configure.in: Bump version to 1.12s.
1485 * lib/getdate.y (Convert): Don't reject all dates in 2038.
1486 Some fit in 31 bits.
1488 * configure.in (jm_FUNC_GNU_STRFTIME): Use it.
1490 * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro.
1491 (jm_FUNC_GNU_STRFTIME): New macro.
1493 * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c.
1494 (EXTRA_DIST): Add strftime.c.
1496 * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo:
1497 Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to
1498 $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h.
1499 Patch from Kaveh R. Ghazi.
1501 * src/stty.c: Include config.h before testing for
1502 TERMIOS_NEEDS_XOPEN_SOURCE.
1503 Patch from Karl Heuer.
1505 * configure.in (AC_ISC_POSIX): Remove kludgy macro.
1506 Use this test instead:
1507 (LIBS): Add -lcposix if it contains strerror.
1508 Patch from Karl Heuer.
1510 * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to
1511 ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation
1512 problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such
1513 space-separated assignments from right to left. Patch from Karl Heuer.
1514 (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS.
1515 Patch from Karl Heuer.
1517 * lib/strftime.c [HAVE_TZNAME]: Declare tzname.
1518 Patch from Karl Heuer.
1520 * src/Makefile.am (.sh): Also substitute @bindir@.
1521 Reported by Karl Heuer.
1523 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
1525 =========== Update for automake-1.1k.
1526 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
1527 * configure.in (AM_CONFIG_HEADER): Use it.
1528 (AC_OUTPUT): Remove stamp-h timestamping statement.
1529 Now, AM_CONFIG_HEADER does it automatically.
1530 * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
1531 new automake requirement.
1532 Rename su_* variables to libsu_a_*.
1534 Sun Dec 8 00:08:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
1536 * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
1538 Sat Dec 7 12:52:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
1540 * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
1541 From Michel Robitaille.
1543 * configure.in (ALL_LINGUAS): Add Portuguese (pt).
1545 * lib/getloadavg.c [__SVR4]: Define SVR4.
1546 Remove duplicate `|| defined(SVR4)' disjunct guarding the
1547 #define KERNEL_FILE "/unix" definiton.
1549 * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
1550 of the AM_ prefixed macro.
1551 (check for TIOCGWINSZ in sys/pty): In essence, require
1552 jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
1553 $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
1554 $gwinsz_in_termios_h) is defined.
1556 * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
1557 Correction from Paul Eggert.
1559 Fri Dec 6 20:52:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
1561 * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
1562 AM_FUNC_MKTIME, simply AC_REQUIRE it.
1564 Mon Dec 2 20:59:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
1566 * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
1567 define WINSIZE_IN_PTEM to precede test that checks whether
1568 `TIOCGWINSZ in sys/pty.h'. The latter test uses the symbol.
1569 (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
1571 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
1573 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
1574 if L >= 1000, otherwise as MM/DD/YY. With this change,
1575 date --date=DATE accepts dates like those in an RCS log listing.
1577 Sat Nov 30 22:08:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
1579 * lib/strftime.c: Update from GNU libc.
1581 Fri Nov 29 22:16:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
1583 * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
1584 --processor (-p). Print processor type.
1585 (usage): Document it.
1587 Thu Nov 28 00:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
1589 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
1590 for gettext-0.10.25.
1591 (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
1593 Sun Nov 24 11:02:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
1595 * src/system.h [!defined STDIN_FILENO]: Define it.
1596 [!defined STDOUT_FILENO]: Define it.
1597 [!defined STDERR_FILENO]: Define it.
1599 * src/stty.c (get_win_size): Take a FILENO parameter rather than
1600 trying to get a size from both stdin and stdout.
1602 Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
1604 ========== From Karl Heuer =========
1605 * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
1606 i386-pc-isc3.0, needs that in order to cause all of the useful
1607 termios symbols to be defined, instead of just those that are
1608 required by POSIX. This enables all of: iuclc ixany olcuc ocrnl
1609 onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
1611 [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
1613 [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
1614 termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
1615 POSIX requires that symbol). Define VSWTCH as a synonym if needed,
1616 so that either one can be used on input.
1617 (display_changed): If the slot for swtch is the same as the one for
1618 susp, display only the setting for susp.
1619 (display_all): Likewise.
1621 (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
1622 On such systems, it's confusing to print both pairs. So, skip eof and
1623 eol when icanon is unset, and skip min and time when icanon is set.
1624 (display_all): Likewise.
1626 (set_window_size): Check only stdin (the device being queried) for
1627 window size info. You don't want "stty </dev/foo" to report the size
1628 of your current window when /dev/foo has no size info.
1629 (display_window_size): Likewise.
1631 (screen_columns): Check only stdout for window size info. You want
1632 "stty </dev/foo" to wrap columns at the right margin of your current
1633 window, not the /dev/foo width.
1635 * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
1636 (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
1638 * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
1639 (whether TIOCGWINSZ is defined in sys/pty.h): New test.
1641 Sat Nov 23 16:15:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
1643 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
1644 isn't mentioned in AC_REPLACE_FUNCS.
1646 * env.c (usage): Alphabetize option descriptions the way sort -f would.
1647 * test.c (usage): Likewise.
1648 * who-users.c (usage): Likewise.
1651 Fri Nov 22 20:33:26 1996 Jim Meyering <meyering@na-net.ornl.gov>
1653 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
1654 way. AM_FUNC_GETLINE does it now.
1656 * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
1657 * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
1660 * src/printf.c (main): Warn if excess arguments are ignored.
1661 E.g., printf foo bar now warns that it is ignoring the single
1662 non-format argument, bar.
1664 Wed Nov 20 20:37:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
1666 * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
1667 gethostname. Reported by Fletcher Mattox.
1669 Tue Nov 19 23:01:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
1671 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
1673 (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
1674 automake-1.1g couldn't deal with the _SCRIPTS suffix.
1675 * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
1677 Sun Nov 17 20:49:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
1679 * src/id.c (main): Ignore -a, for compatibility with SVR4.
1680 Suggestion from Noah Friedman.
1682 Mon Nov 4 20:24:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
1684 * configure.in (test for group_member): Handle it separately
1685 so I can keep the hyphen (not the underscore) in the filename.
1687 Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
1689 * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
1690 returns an error other than buffer overflow, exit with an error
1691 message instead of allocating infinite amounts of space.
1692 [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
1693 <errno.h>: New include.
1694 [!errno] (errno): New declaration.
1696 * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
1698 * configure.in: Check for -linet library before checking for the
1699 gethostbyname function. Suggested by Karl Heuer.
1700 Use AM_FUNC_GETLINE.
1702 * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
1703 Based on a test from Karl Heuer.
1705 Sun Nov 3 14:57:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
1707 * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
1708 am_cv_saved_LIBS from LIBS. From Karl Heuer.
1710 * src/stty.c (recover_mode): Fail also if there are too many fields.
1713 * lib/canon-host.c: Include sys/types.h for the definitions
1714 (otherwise missing on some systems) of caddr_t (used by
1715 sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
1717 Sat Nov 2 00:16:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
1719 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
1720 Otherwise, the generated info files have names longer than
1721 the 14-byte max of some old systems.
1722 Reported by Karl Heuer.
1724 * src/date.c (main): Give better diagnostic.
1725 Suggestion from Karl Berry.
1727 Thu Oct 31 18:28:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
1729 * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
1730 * lib/getdate.y: Remap yacc globals to have gd_ prefix.
1731 Suggestion to do as in gdb/c-exp.y from Tom Tromey.
1733 Mon Oct 28 17:40:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
1735 * src/Makefile.am (install-exec-local): Redirect stderr of chown to
1736 /dev/null and suggest running `make install-root' upon failure to
1737 install su. Suggestions from François Pinard.
1739 * configure.in: Don't output confusing diagnostic: `checking for
1740 shadow password routines'. Suggestion from François Pinard.
1742 Thu Oct 24 13:50:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1744 * src/tee.c (main): Ignore SIGPIPE.
1746 Wed Oct 23 23:42:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
1748 * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
1749 with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
1750 loses with Dynix/PTX.
1751 (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
1752 Suggestion from Marcus Daniels.
1754 Mon Oct 21 16:49:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
1756 * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
1757 defines or includes -- Linux systems simply read /proc/loadavg.
1758 From Ulrich Drepper.
1760 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
1762 * configure.in: Remove hack that created link from group_member.c
1765 * lib/group_member.c: New file. Renamed from group-member.c.
1766 * lib/group-member.c: Delete.
1768 * src/stty.c (main): Remove TAB from diagnostic, for consistency.
1770 Sun Oct 20 09:03:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
1772 * Makefile.am (install-root): Add it here, too.
1774 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
1776 * src/Makefile.am (install-root): New rule.
1777 Suggestion from François Pinard.
1779 * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
1780 directly. From Ulrich Drepper.
1782 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
1783 (EXTRA_DIST): Remove @README_ALPHA@.
1785 * configure.in: Remove README_ALPHA related code. Automake takes
1786 care of it automatically now when in gnits mode.
1788 * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
1789 #include $srcdir/lib/getloadavg.c. The latter isn't defined at that
1790 point in configure script. From Eric Backus.
1792 Fri Oct 18 21:31:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
1794 * Makefile.am (cvs-dist): Uncomment cvs tag command.
1795 (cvs-dist): Use cvs tag's -c option.
1797 Thu Oct 17 23:48:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
1799 * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
1800 using YP. From Arne Juul.
1802 Sun Oct 13 07:34:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
1804 * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
1805 * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
1806 (by saving and restoring initial value). Instead, arrange for
1807 substitution of @GETLOADAVG_LIBS@.
1808 * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
1811 * configure.in (ALL_LINGUAS): Add swedish (sv).
1813 Fri Oct 11 22:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
1815 * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
1816 call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
1817 From Kaveh R. Ghazi.
1819 * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
1821 * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
1822 with the following changes:
1823 - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
1824 Reported by Eric Backus.
1825 - Check for Solaris' libkstat.
1826 - Define C_GETLOADAVG if we end up using getloadavg.c.
1827 From Kaveh R. Ghazi.
1828 * acconfig.h (C_GETLOADAVG): Add it.
1829 From Kaveh R. Ghazi.
1831 * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
1832 getloadavg-related libraries only when linking uptime.
1834 Thu Oct 10 23:50:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
1836 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
1837 (su_SOURCES): Put them here instead.
1838 Remove rules for building getdate.c and posixtm.c; now automake
1839 generates those rules.
1840 * lib/ylwrap: New file.
1841 * lib/interlock: New file.
1843 Wed Oct 9 00:26:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
1845 * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi.
1847 * lib/strftime.c (strftime): Accommodate the broken C compiler
1848 that comes with SunOS -- don't initialize aggregates in decls of
1849 automatic variables. Reported by Kaveh Ghazi.
1851 * tests/: Renamed checks/ directory.
1852 * Makefile.am (SUBDIRS): Rename checks to tests.
1853 * configure.in (AC_OUTPUT): Rename checks to tests.
1855 * configure.in (/proc/uptime check): Guard the read of /proc/uptime
1856 with an existence test to avoid a messy configure-time warning on
1857 systems that lack that special file. Reported by Kaveh R. Ghazi.
1859 * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
1860 not $LIB. From Kaveh R. Ghazi.
1862 * checks/nice: Protect echoed args with leading `x' so echo doesn't
1863 interpret leading -n on e.g. SunOS systems.
1865 Mon Oct 7 18:46:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
1867 * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
1869 * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
1870 (su_SOURCES): Remove memcmp.c.
1871 Automake automatically includes at least these, now.
1872 From François Pinard.
1874 * lib/Makefile.am (su_SOURCES): Remove getline.c.
1876 Sat Oct 5 11:38:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
1878 * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
1879 it's AC_REPLACE'd and already in EXTRA_DIST.
1881 * configure.in: Use AM_SANITY_CHECK_CC.
1883 * configure.in: Use AM_FUNC_ERROR_AT_LINE.
1884 * lib/Makefile.am (EXTRA_DIST): Put error.c here.
1885 (su_SOURCES): Remove error.c
1886 Suggested by Ulrich Drepper.
1888 * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
1889 * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
1890 in the four installed scripts.
1891 * src/*.sh: Update --version output to conform to the coding standard.
1893 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
1894 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
1895 checking... messages don't get nested.
1897 * configure.in (GNU_PACKAGE): New variable.
1898 (PACKAGE_VERSION): Remove it.
1900 * acconfig.h (GNU_PACKAGE): New variable.
1901 (PACKAGE_VERSION): Remove now-unused variable.
1903 * src/*.c: Update --version output to conform to the coding standard.
1905 Sun Sep 22 22:41:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
1907 * configure.in (AC_CHECK_HEADERS): Alphabetize.
1908 Update for automake-1.1e.
1910 Thu Sep 19 07:47:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
1912 * lib/regex.c: Merge with FSF version.
1913 * lib/getloadavg.c: Replace with FSF version.
1915 Mon Sep 16 23:13:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
1917 * lib/strftime.c (strftime): New version, from GNU libc.
1919 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
1921 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
1923 Mon Sep 9 22:10:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
1925 * configure.in: Improve handling of math library so -lm is used
1926 only when it's actually required. That makes a difference when
1927 using dynamic linking.
1928 Remove check that added -lm to LIBS.
1929 (SQRT_LIBM): Test for and AC_SUBST it.
1930 (POW_LIBM): Likewise.
1931 (SEQ_LIBM): Likewise.
1932 Motivation and suggestions from Ulrich Drepper.
1934 * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
1935 Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
1936 Also set corresponding _DEPENDENCIES variables.
1938 Sat Sep 7 12:41:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
1940 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
1942 * lib/getdate.y: Define and use upper case variants of ctype.h
1943 is* macros. From Bruno Haible.
1945 Thu Sep 5 22:12:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
1947 * lib/strftime.c: New version from glibc.
1949 Wed Sep 4 23:39:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
1951 * configure.in (ALL_LINGUAS): Add dutch (nl).
1953 Mon Sep 2 10:52:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
1955 * src/*.c (usage): Tell where to report bugs.
1957 Sun Sep 1 07:56:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
1959 * configure.in (AM_FUNC_MKTIME): Use it.
1960 (AC_REPLACE_FUNCS): Remove mktime.
1961 (AM_INIT_AUTOMAKE): Use it.
1962 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
1963 (AC_PROG_MAKE_SET): Likewise.
1964 (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
1965 AM_ prefix for latest automake/aclocal.
1967 * Makefile.am (EXTRA_DIST): Add acinclude.m4.
1969 * acinclude.m4: New file -- derived from aclocal.m4.
1970 * aclocal.m4: This file is now generated by the aclocal program
1971 (which comes with the automake package.)
1973 Sat Aug 17 00:14:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
1975 * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
1976 formats and reverts to old behavior where unrecognized format like
1977 %E is treated as eqivalent to `E'.
1979 Sun Aug 4 09:14:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
1981 * checks/: New directory.
1982 * checks/Makefile.am: New file.
1983 * checks/nice: New file. Derived from tests from Eric Backus.
1984 * configure.in (AC_OUTPUT): Add new directory: checks.
1985 * Makefile.am (SUBDIRS): Likewise.
1987 * src/nice.c (main): Allow `+' in options like -+8 and -+13.
1989 Fri Aug 2 21:45:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
1991 * src/nice.c (main): Set minus_flag to zero in two places.
1992 Otherwise, `nice --1 -3' would mistakenly do the equivalent of
1993 `nice --3'. Thanks to Eric Backus <ericb@lsid.hp.com> for the
1996 * configure.in (check for /proc/uptime): New check.
1997 * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols
1999 *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
2001 From Ulrich Drepper.
2003 Thu Aug 1 22:38:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
2005 * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
2006 It isn't necessary because the cpp-time checks of getopt.c and
2007 getopt1.c are at least as good.
2008 * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
2009 (su_SOURCES): Add getopt.c and getopt1.c
2010 This reverts much of the April 23 change.
2012 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
2014 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
2015 redefinition warnings on solaris.
2016 (textdomain) [!ENABLE_NLS]: Likewise.
2018 Sun Jul 21 09:47:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
2020 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
2021 Add related check for the getdelim function.
2022 From Ulrich Drepper -- as done in gettext.
2024 * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
2025 From Thomas Olsson <d95to@efd.lth.se>.
2027 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
2029 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
2030 separate PACKAGE and VERSION.
2032 Wed Jul 17 23:13:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
2034 * src/chroot.c: Include <sys/types.h> before system.h.
2035 * src/seq.c: Likewise.
2036 * src/yes.c: Likewise.
2039 Tue Jul 16 00:06:33 1996 Jim Meyering <meyering@na-net.ornl.gov>
2041 * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
2042 Omitting that second arg made some HPUX C compiler report an error.
2043 From Kaveh R. Ghazi.
2045 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
2047 * src/who-users.c (print_uptime): Reverse `days' and `day' in
2048 uptime message. From Kaveh R. Ghazi.
2050 * Many files: Update FSF address.
2052 Sun Jul 14 20:05:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
2054 * src/who-users.c (print_uptime): Use 0, not undefined errno in
2055 couldn't-get-boot-time diagnostic. From Ulrich Drepper.
2057 Sat Jul 13 14:22:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
2059 * src/chroot.c (usage): Add a `\' after `\n' in usage message.
2060 Otherwise, SunOS's /bin/cc chokes.
2062 * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
2063 GWINSZ_BROKEN can't be defined anymore.
2065 * configure.in (boot time test): Use AC_EGREP_CPP instead of
2066 AC_EGREP_HEADER; #endif, instead of #fi.
2067 (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
2068 these macros instead of the tests from which they were derived.
2069 ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
2071 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
2073 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
2074 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
2075 those options on that system, sys/stat.h gets compile errors.
2076 With help from Marcus Daniels.
2078 * getopt.c: Update from gettext-0.10.23.
2079 * getopt1.c: Likewise.
2080 * getopt.h: Likewise.
2082 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
2084 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
2086 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
2088 Sat Jul 6 12:47:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
2090 * configure.in (AC_REPLACE_FUNCS): Add group_member.
2091 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
2092 * lib/Makefile.am (su_SOURCES): Remove group-member.c.
2093 (EXTRA_DIST): Add group-member.c here.
2095 Thu Jul 4 22:40:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
2097 * src/expr.c (docolon): Remove space before newline in usage message.
2099 Sat Jun 29 18:58:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
2101 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
2102 it in the output of --version. Reported by RMS.
2104 Tue Jun 18 22:14:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
2106 * aclocal.m4: Update from gettext-0.10.20.
2107 * ABOUT-NLS: Likewise.
2110 Sun Jun 16 13:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
2112 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
2114 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
2116 * po/Makefile.in.in: Update from gettext-0.10.16.
2118 * ABOUT-NLS: Likewise.
2119 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
2120 gettext-related ones.
2121 Update from gettext-0.10.16.
2123 Wed May 29 21:28:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
2125 * expr.c (docolon): Give a warning when the first character
2126 of the basic regular expression is `^'.
2128 Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
2130 * id.c (xgetgroups): New function, factored out of
2131 print_group_list and print_full_info.
2132 (print_group_list): Call it.
2133 (print_full_info): Call it.
2135 * lib/Makefile.am (getdate.c): Disable dependencies that can
2136 require rerunning YACC when not in maintainer mode.
2137 (posixtm.c): Likewise.
2139 Tue May 14 18:47:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2141 * id.c (print_group_list): When USERNAME is specified use
2142 getugroups to get the number of groups.
2143 (print_full_info): Likewise.
2145 Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
2147 * seq.c (usage): Make it clearer.
2149 Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
2151 * expr.c (main): Don't recognize --help, --h, --he, --version,
2152 --v, etc. if the POSIXLY_CORRECT environment variable is set.
2153 * echo.c (main): Likewise.
2154 * printf.c (main): Likewise.
2155 * test.c (main): Likewise.
2157 * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
2159 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
2161 * configure.in: Require autoconf-2.10.
2163 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
2164 * configure.in (jm_MAINTAINER_MODE): Use it.
2166 Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
2168 * lib/strftime.c: Update from GNU libc.
2170 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
2172 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
2173 * seq.c: Remove useless void casts of *printf return values.
2175 Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
2177 * basename.c (usage): Mark translatable strings.
2178 * chroot.c (main): Likewise.
2179 * basename.c (main): Separate messages about `too few' and `too many'
2180 arguments to ease translation.
2181 * dirname.c (main): Likewise.
2182 * date.c (usage): Change TAB in message to spaces. Doing that seems
2183 to have worked around a problem with something in gettext that was
2184 producing a truncated usage message for date's usage.
2185 From François Pinard.
2187 Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
2189 * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
2190 Otherwise, some systems lose because the value AC_C_INLINE choses
2191 with plain `cc' is different from that chosen when using the ANSI-mode
2192 C compiler. From Kaveh Ghazi.
2194 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
2196 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
2197 * configure.in: Use it.
2198 * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
2199 (EXTRA_DIST): Add getopt.c and getopt1.c
2201 * whoami.c (main): Declare to return int, not void.
2202 * who-users.c (main): Likewise.
2203 * yes.c (main): Likewise.
2205 * src/*.c, src/*.h: Update Copyright years to include 1996.
2207 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
2209 * date.c (usage): Describe new %V format. From Karl Berry.
2211 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
2213 Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov)
2215 * chroot.c (usage): Improve help message.
2216 Enclose message strings in _().
2217 * seq.c (usage): Improve help message.
2218 * factor.c (usage): Likewise.
2221 Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov)
2223 * Makefile.am (cvs-dist): New rule. Based on the one from
2224 Tom Tromey's automake.
2226 Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
2228 * basename.c (basename): Rewrite so it doesn't rely on strrchr,
2229 and hence doesn't need to include string.h -- on some alpha-based
2230 OSF systems, there's a conflicting prototype for basename in string.h.
2231 Reported by Kaveh Ghazi.
2233 * configure.in (AC_REPLACE_FUNCS): Add basename.
2234 * lib/Makefile.am (EXTRA_DIST): Add basename.c.
2235 (su_SOURCES): Remove basename.c.
2238 Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
2240 * src/Makefile.am (who.c): Qualify who-users.c reference with
2242 (users.c): Likewise.
2243 (uptime.c): Likewise.
2244 From François Pinard.
2246 * configure.in: Always invoke AC_GETLOADAVG, not just if we're
2249 Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
2251 * getloadavg.c: Test cpp-defined __sun as well as sun, because
2252 in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
2254 * date.c (usage): Add missing `\n\' at the end of newly added
2255 lines for %e and %z.
2257 * who-users.c (print_uptime): Call getloadavg only if we have it.
2259 Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
2261 * configure.in (LINGUAS): Add de.
2263 * date.c (usage): Describe %e and %z. Reported by Karl Berry.
2265 * who-users.c: Mark translatable strings in new code.
2267 Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov)
2269 * configure.in: Add test for boot_time.
2272 * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
2274 * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
2275 (BUILT_SOURCES): Add uptime.c.
2276 (MOSTLYCLEANFILES): Add uptime.c.
2277 (uptime.c): Add rule to build it from who-users.c.
2279 * who-users.c: Reindent.
2280 (UT_TIME_MEMBER): New macro.
2281 (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
2282 (print_entry): Likewise.
2284 Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov)
2286 * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
2288 Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
2290 * seq.c (print_numbers): Rearrange loops to get it right.
2291 Reported by Karl Eichwalder <ke@ke.Central.DE>.
2293 * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
2294 is inconsistent with START and LIMIT.
2295 (usage): Clean up help message.
2297 * factor.c (usage): Give minimal description of the program.
2298 (print_factors): Give a better diagnostic.
2299 (main): Suggest --help upon failure.
2300 Reported by Karl Eichwalder <ke@ke.Central.DE>.
2302 * seq.c (print_numbers): Fix off-by-one error in
2303 backwards-counting loop. Reported by Karl Eichwalder.
2305 * strftime.c (mon_week_ISO): New function to implement new %V format.
2306 (sun_week): Make TM parameter `const'.
2307 (mon_week): Likewise.
2308 (mon_week): Rewrite to implement %W format correctly.
2309 (strftime): Handle %V format.
2310 Reported by Arne Juul.
2312 Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
2314 * strftime.c (sun_week): Make %U work properly.
2315 Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'.
2317 * nice.c (main): Simplify option handling. Before, `nice -18 -- nice'
2318 improperly printed `8'. Patch from Frank Korz.
2319 (main): Use `if' stmt, not while loop, around getopt invocation.
2320 Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
2321 follows a long option) gets an error.
2323 Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
2325 * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
2326 `-Xc -D__EXTENSIONS__' because of problems with Solaris header
2327 files. Suggested by Kaveh Ghazi.
2329 Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov)
2331 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
2332 when srcdir != builddir. From Kaveh Ghazi.
2334 * lib/getugroups.c: Include stdio.h before grp.h. Because
2335 <grp.h> on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi.
2337 Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
2339 * configure.in: Simplify checking for math library.
2340 This also eliminates some confusing output from configure.
2341 Suggested by François Pinard.
2343 Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov)
2345 * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
2346 -I../intl. With the former, compiles didn't find libintl.h when
2347 configured with `--srcdir=..'. Reported by Marcus Daniels
2348 <marcus@sysc.pdx.edu>.
2350 * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
2353 * src/Makefile.am (EXTRAdir): Set to $(bindir).
2355 Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov)
2357 * ChangeLog.0: New file.
2358 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
2360 Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov)
2362 * man/Makefile.am (man_MANS): Add chroot.1.
2363 * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
2365 Sun Dec 24 10:55:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
2367 * configure.in: Check for chroot a la uname.
2368 * src/chroot.c, man/chroot.1: New files.
2370 Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
2372 * su.c: Protoize and reorder functions to obviate forward decls.
2374 * seq.c: Make parameters const where appropriate.
2375 Rename global FROM to START.
2376 (print_numbers): Rewrite loops to avoid incrementing. Instead,
2377 use `x = first + i * increment' paradigm. Otherwise, with inexact
2378 increment, you could miss the last value.
2380 * xstrtod.c: New file.
2381 * xstrtod.h: New file.
2382 * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
2383 * seq.c: Include xstrtod.h.
2384 (scan_double_arg): Use xstrtod rather than strtod directly.
2386 * src/*: Update FSF's address.
2388 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
2390 * src/*.c (main): Declare to be of type int, not void.
2392 Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
2394 * configure.in (PACKAGE_VERSION): New macro.
2395 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
2396 * acconfig.h (PACKAGE_VERSION): Add it.
2397 * src/Makefile.am: Remove rules for generating version.c.
2398 Remove references to version.o, version.h, and stamp-v.
2399 [.sh]: Change @VERSION@ to @PKG_VERSION@.
2400 On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
2401 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
2402 (install-exec-local): New target/rules to make the installed su
2403 binary setuid root or failing that, to delete it.
2404 * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
2406 * version.c: Remove file.
2407 * version.h: Remove file.
2408 * basename.c date.c dirname.c echo.c env.c expr.c factor.c
2409 hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
2410 pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
2411 who-users.c whoami.c yes.c: Don't include version.h.
2412 (main): Use PACKAGE_VERSION instead of version_string.
2414 Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
2416 * basename.c: Remove __P-protected prototype for basename.
2417 Reported by François Pinard.
2418 (remove_suffix): Move to precede use. Remove prototype.
2419 Declare formal parameter SUFFIX to be const.
2421 * pathchk.c (validate_path): Cast path_max to size_t before
2422 comparing with strlen(path).
2424 * who-users.c (read_utmp): Declare n_read to be of type size_t
2427 Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
2429 * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
2430 id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
2431 sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
2432 yes.c (main): Initialize for internationalized message support:
2433 call setlocale, bindtextdomain, and textdomain.
2434 * system.h: Add definitions and includes for NLS.
2435 * Makefile.am (SUBDIRS): Add intl and po.
2436 * src/Makefile.am (datadir): Define.
2437 (localedir): Define.
2438 (DEFS): Add LOCALEDIR definition.
2439 (LDADD): Add @INTLLIBS@.
2440 * aclocal.m4: Add NLS-related macro definitions from
2441 gettext distribution.
2442 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
2443 HAVE_STPCPY): New macros.
2444 Add PACKAGE and VERSION.
2445 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
2446 (VERSION): Likewise.
2447 (ALL_LINGUAS): Define.
2448 (ud_GNU_GETTEXT): Use it.
2450 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
2452 Mostly from François Pinard.
2454 Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov)
2456 * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
2457 declare formal parameter.
2459 Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov)
2461 * getdate.y (RelativeMonth): Add 1900 to the year so that relative
2462 date specs that push the year through the end of the century work.
2463 For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
2464 From Peter Dalgaard (pd@kubism.ku.dk).
2466 Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
2468 * seq.c (main): Exit after processing --version.
2469 Reported by François Pinard.
2471 Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
2473 * expr.c (docolon): Don't initialize re_syntax_options to
2474 deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
2475 \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
2477 * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
2478 (skip) [_WIN32 && _O_BINARY]: Use it.
2479 (read_char): Likewise.
2480 (read_block): Likewise.
2481 [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
2482 Based on changes by Gary Newman <gnewman@shore.net>.
2484 Wed Feb 28 21:48:07 1996 Paul Eggert <eggert@twinsun.com>
2486 * configure.in (LOCALTIME_CACHE):
2487 Also define if localtime mishandles unsetting TZ.
2488 This works around a localtime bug in mips-dec-ultrix.
2490 Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov)
2492 * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
2493 (noinst_HEADERS): Add xstrtoul.h.
2495 * factor.c: General cleanup. Use xstrtoul, not atoi.
2496 Change output format. Allow inputs as large as ULONG_MAX.
2497 Allow more than one command line argument.
2499 * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
2500 of the pre-ANSI function definition so ansi2knr doesn't munge it.
2502 * src/Makefile.am: Adapt for automake-0.30.
2503 * lib/Makefile.am: Likewise.
2505 * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
2507 Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov)
2509 * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
2510 (MOSTLYCLEANFILES): Add who.c and users.c.
2511 (who.c): New rule to create this file. Concatenate definition of
2512 WHO and contents of who-users.c.
2513 (users.c): New rule to create this file. Concatenate definition of
2514 USERS and contents of who-users.c.
2516 Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
2518 * readtokens.c: Unprotoize.
2520 * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
2521 for function dcls and munge them.
2523 (arithdivf): Likewise.
2525 * test.c: __P-protect forward declarations.
2526 (main): Protoize function definition.
2528 * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
2531 * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
2532 so expr's pattern matching uses BASIC (not GNU-extended) REs.
2533 Reported by Jim Kingdon.
2535 * who-users.c (print_entry): Use strchr, not index.
2537 * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
2538 * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
2539 definition of AF_INET on at least SunOS 4.
2541 Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov)
2543 * who-users.c (main): When failing because there were
2544 `too many arguments,' say so.
2546 Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
2548 * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
2550 (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
2551 * lib/canon-host.c: New file.
2552 * lib/Makefile.am (su_SOURCES): Add canon-host.c.
2553 * src/who.c (print_entry): If possible, canonicalize the host hame.
2554 From Miles Bader (miles@gnu.ai.mit.edu).
2556 Update for automake-0.29.
2557 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
2558 * src/Makefile.am: Likewise.
2559 * lib/Makefile.am: Likewise.
2560 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
2561 * man/Makefile.am (man_MANS): Renamed from MANS.
2563 Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov)
2565 * lib/strftime.c (add_num_tz): New function.
2566 (strftime): Handle new %z format.
2567 * date.c (main): Accept new option, --rfc-822 (-R).
2568 (show_date): Use RFC822-mandated strftime format.
2569 From H. Peter Anvin (hpa@storm.net).
2570 (usage): Add a line describing the new option.
2572 * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
2573 before it's defined.
2575 Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov)
2577 * acconfig.h (PROTOTYPES): Define it.
2579 Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov)
2581 * aclocal.m4 (fp_PROG_INSTALL): New macro.
2582 * configure.in: Use it instead of AC_PROG_INSTALL.
2584 * who-users.c: Protoize.
2586 Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
2588 * stty.c: Protoize and __P-protect forward dcls.
2589 (visible): Change parameter type to unsigned int from unsigned char.
2590 (integer_arg): Use xstrtol instead of open-coding this.
2592 * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
2593 (HEADERS): Add xstrtol.h.
2595 * test.c (advance): Protoize function.
2597 * sleep.c (argdecode): Declare parameter const.
2599 Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
2601 * stty.c: Indent cpp directives.
2603 Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
2605 Use automake to generate Makefile.in files.
2606 * Makefile.am: New file.
2607 * doc/Makefile.am: New file.
2608 * lib/Makefile.am: New file.
2609 * man/Makefile.am: New file.
2610 * src/Makefile.am: New file.
2612 * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
2613 used in place of PROGS.
2615 Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
2617 * configure.in (PACKAGE, VERSION): New variables.
2618 (fp_C_PROTOTYPES): Use it.
2620 * printf.c (print_esc_char): Change type of argument from char
2621 to int to avoid potential promotion problem.
2622 * uname.c (print_element): Likewise.
2624 * system.h [__P]: New macro.
2626 * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
2627 hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
2628 printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
2629 whoami.c, yes.c: Protoize and __P-protect forward dcls.
2631 * who-users.c: New file. Renamed from who.c.
2632 * who.c: Define WHO and include who-users.c.
2633 * uses.c: Define USERS and include who-users.c.
2635 * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
2636 (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
2637 getgroups (0, NULL) to compute number of groups at run time
2638 rather than relying on NGROUPS_MAX at compile time.
2639 (print_full_info) [HAVE_GETGROUPS]: Likewise.
2640 Suggestion from Roland McGrath.
2642 * su.c: Remove NGROUPS_MAX junk. It wasn't being used.
2644 Wed Jan 3 19:03:26 1996 Paul Eggert <eggert@twinsun.com>
2646 * configure.in (LOCALTIME_CACHE): Define if tzset exists and
2647 if localtime caches TZ. Check for tzset.
2648 * acconfig.h (LOCALTIME_CACHE): New macro.
2649 * date.c (putenv): Declare.
2650 (universal_time): Remove.
2651 (main): If -u is given, set TZ to "UTC0"; this causes date to use
2652 UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
2653 (show_date): Just use localtime and a single format, since TZ will
2654 be set properly if -u is given.
2656 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2658 * configure.in: Touch stamp-h only if config.h is remade.
2660 Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com)
2662 * test.c (usage): Clarify usage. From Karl Berry.
2664 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
2666 * Makefile.in (all et. al.): If make was invoked with -k and a
2667 sub-make fails, fail after the loop rather than exiting right away.
2668 Otherwise, make's -k option could be ineffective.
2670 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
2672 * Makefile.in (default): New default target. Depend on `all' to work
2673 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
2676 Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com)
2678 * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
2679 From Theodore Ts'o and Ulrich Windl.
2681 Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com)
2683 * test.c [TEST_STANDALONE]: Define.
2684 * src/Makefile.in (test.o): Remove special rule.
2686 Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com)
2688 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
2689 * configure.in: Use it.
2691 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
2692 (.c.o): Rewrite to be more like src/Makefile.in.
2693 Add line that (--with-autodeps) will include mkdep-Makefile.
2694 (distclean): Remove .deps.
2695 * src/Makefile.in: Likewise.
2697 * mkdep-Makefile: New file.
2698 * Makefile.in (DISTFILES): Add mkdep-Makefile.
2700 * doc/Makefile.in (mostlyclean): Remove *.info.
2702 * date.c: New option --reference=FILE (-r FILE) analogous to the
2703 like-named touch option.
2704 (main): Recognize it and give diagnostic for misuse.
2705 (usage): Describe briefly.
2706 From Franc,ois Pinard.
2708 * date.c (batch_convert): Close input stream also when it's not stdin.
2709 (main): Reorganize to do option-consistency checks before all else.
2711 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
2713 * man/Makefile.in (install-data, uninstall): Use sed not basename.
2714 The GNU Coding Standard suggests that only a select set of
2715 relatively standard utilities be used in Makefiles. basename is
2716 not among them. Suggested by Ulrich Drepper.
2718 Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com)
2720 * yes.c: Include system.h to get definition of _.
2722 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
2724 * system.h (_): Define macro -- as empty for now.
2725 * src/*.c: Annotate localizable strings with _(...). From Franc,ois.
2727 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
2730 Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com)
2732 * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
2733 Add checks for floor, modf, and rint -- all used by seq.c.
2735 Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com)
2737 * getdate.y (Convert): Use 2037 as threshold, not 1999.
2738 Before years after 1999 were treated as invalid.
2739 From Andreas Schwab.
2741 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
2743 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
2744 Without this, SunOS doesn't get type for memchr.
2745 Reported by Kaveh Ghazi.
2747 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
2749 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
2751 * All Makefile.in (install-exec, install-exec): New targets.
2754 * all Makefile.in (maintainer-clean): Renamed from realclean
2757 Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com)
2759 * all source files (usage): Include one- or two-line synopsis
2760 in --help output. From Karl Berry.
2762 Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com)
2764 * lib/Makefile.in (maintainer-clean): Rename from realclean.
2765 (.PHONY): New dependencies.
2766 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
2768 Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com)
2770 * test.c (usage): Remove duplicate descriptions of --help
2771 and --version. From Karl Berry.
2773 * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
2777 * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
2778 Remove all reference to (now unused) safe-xstat.hin.
2780 Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com)
2782 * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
2783 unnecessary conflicts for people using version control software
2785 (AC_ARG_PROGRAM): Use it.
2787 Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com)
2789 * src/*.c: Update Copyright dates.
2791 Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com)
2793 * system.h: Separate errno declaration from STDC_HEADERS.
2794 Remove bcopy, bzero, strchr, strrchr definitions.
2796 * stty.c (main, set_window_size): Use memset instead of bzero.
2797 * su.c (correct_password): Likewise.
2799 * seq.c Remove \n's from error format strings.
2800 (main): Let `seq 1 1' work.
2801 Invoke usage always with 1 when failing.
2803 Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com)
2805 * src/Makefile.in (install): Fix rules for su to avoid relying on
2806 just-built `id' executable. That would lose when cross-compiling and
2807 on systems like GNU in which a user may have several effective IDs.
2808 (SOURCES, OBJECTS, PROGS): Add seq.
2809 * Makefile.in (PROGS): Add seq.
2811 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
2812 (AC_CHECK_FUNCS): Add strchr and strrchr.
2813 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
2815 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
2816 Separate errno declaration from STDC_HEADERS.
2818 Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com)
2820 * getdate.y (ToSeconds): Properly convert 12am and 12pm.
2821 From Takeshi Sone <ts1@tsn.or.jp>.
2823 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
2824 (all): Depend on safe-stat.h and safe-lstat.h.
2826 * date.c (batch_convert): Remove any trailing newline from offending
2827 line before including it in the `invalid date' error from `date -f'.
2828 Reported by Franc,ois Pinard.
2830 Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com)
2832 * factor.c: New file.
2833 * Makefile.in (PROGS): Add factor.
2834 * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
2837 Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com)
2839 * test.c (term): Running `./test \( a -o b' got a seg fault.
2840 From from Klaus.Reichl@aut.alcatel.at.
2842 Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com)
2844 * src/*.c: Include "error.h" rather than simply declaring
2846 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
2848 * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
2849 (distclean): Remove references to safe-l?stat.c.
2850 Remove all related rules and dependencies.
2852 * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
2853 Now that we always define the functions, these are no longer needed.
2855 * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
2856 * who.c (print_entry): Likewise.
2857 * test.c (test_stat, binary_operator): Likewise.
2858 (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
2860 Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com)
2862 * expr.c (docolon): Zero out re_buffer and re_regs before using them.
2863 From H.J. Lu <hjl@nynexst.com>.
2865 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
2867 * dirname.c (main): Use strchr and strrchr instead of index and rindex.
2868 * echo.c (main): Likewise.
2869 * env.c (main): Likewise.
2870 * pathchk.c (validate_path): Likewise.
2871 * printf.c (print_formatted, print_esc): Likewise.
2872 * test.c [member]: Likewise.
2873 * who.c (extract_trimmed_name): Likewise.
2874 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
2875 rindex instead of the other way around.
2877 * doc/Makefile.in (DISTFILES): Add getdate.texi.
2879 Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com)
2881 * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
2882 (AC_CHECK_HEADERS): Add stdlib.h.
2883 (LIBS): If the strtod replacement is required, check for pow in -lm.
2884 * src/Makefile.in (printf): Remove hard-coded -lm. Not every
2887 Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com)
2889 * who.c (list_entries): Delete. Split in two actually...
2890 (list_entries_users, list_entries_who, userid_compare): New functions.
2891 (list_entries_users): Sort the user names. Reported by
2893 Topologically sort the functions and remove fwd declarations.