1 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
3 * ChangeLog: Add copyright notice.
4 * ChangeLog.0: Likewise.
7 2002-08-08 Jim Meyering <meyering@lucent.com>
11 2002-08-05 Paul Eggert <eggert@twinsun.com>
13 Fix some minor time-related bugs with POSIX time arguments.
14 Some valid time stamps were being rejected (notably -1, and
15 time stamps before 1900 on 64-bit hosts). And some invalid
16 time stamps were being accepted, e.g. September 31.
18 * src/date.c (main): Adjust to posixtime signature change.
20 2002-08-05 Jim Meyering <meyering@lucent.com>
22 * configure.ac: Change $am_cv_sys_posix_termios to
23 $ac_cv_sys_posix_termios. From Andreas Schwab.
25 2002-08-04 Jim Meyering <meyering@lucent.com>
29 2002-07-30 Paul Eggert <eggert@twinsun.com>
31 * src/chroot.c (main): Exit with status 126 or 127 when execvp or
32 execv fails, for consistency with POSIX commands like env and nice.
33 * src/su.c (run_shell): Likewise.
35 2002-07-29 Paul Eggert <eggert@twinsun.com>
37 * src/nohup.sh: Change behavior to conform to POSIX 1003.1-2001:
38 - Do not adjust scheduling priority.
39 - Redirects stderr to stdout, if stderr is not a terminal.
40 - Exit status is now 126 if command was found but not invoked,
41 127 if nohup failed or if command was not found.
42 Fix bug: command was run if nohup.out wasn't writeable.
43 * NEWS, doc/coreutils.texi: Document the above.
45 2002-07-28 Jim Meyering <meyering@lucent.com>
47 * configure.ac: Require automake-1.6b.
49 2002-07-27 Jim Meyering <meyering@lucent.com>
53 * src/who.c (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Remove definitions.
54 Now they're defined in readutmp.h.
55 (print_deadprocs): Remove obsolete FIXME comment.
57 2002-07-07 Paul Eggert <eggert@twinsun.com>
59 * src/nohup.sh: Port to POSIX 1003.1-2001 "nice", which
60 requires the option "-n 5" rather than "-5". This matters
61 with GNU "nice" if the user has set the _POSIX2_VERSION
64 2002-07-24 Jim Meyering <meyering@lucent.com>
66 * src/Makefile.am (AM_INSTALLCHECK_STD_OPTIONS_EXEMPT): Exempt false.
68 2002-07-20 Jim Meyering <meyering@lucent.com>
70 * Upgrade to cvs automake -- required to work with 2.53b.
71 * configure.ac: Require automake-1.6a.
73 * tests/Makefile.am (TESTS_ENVIRONMENT): Remove now-unused parts
75 (EXTRA_DIST): Add priv-check.
76 * tests/priv-check: New file.
78 * Upgrade to gettext-0.11.3.
79 * Upgrade to autoconf-2.53b.
81 2002-07-18 Jim Meyering <meyering@lucent.com>
83 * src/uname.c (main): Test sysctl(...) >= 0, not == 0, since
84 on NetBSD the return value may well be positive.
85 Use one-line aggregate initializations.
86 Use tightly scoped static buffers to avoid warnings about
87 unused variables on some systems.
89 2002-05-07 Paul Eggert <eggert@twinsun.com>
91 Add support for BSD-style sysctl to get the strings needed for
92 uname -p and uname -i. Unfortunately the different BSDs vary,
93 but I've surveyed FreeBSD, NetBSD, and OpenBSD.
95 * src/uname.c (UNAME_HARDWARE_PLATFORM, UNAME_PROCESSOR): New macros.
96 (main): Use them, along with sysctl, to support uname -i and uname -p
99 2002-07-17 Jim Meyering <meyering@lucent.com>
101 * src/uptime.c (print_uptime): Restore use of (equivalent, but
102 more readable) `>=' from Bruno's patch.
104 * configure.ac (jm_BOOT_TIME): Remove. (moved/renamed to m4/boottime.m4)
105 Use the replacement: GNULIB_BOOT_TIME.
107 2002-07-13 Bruno Haible <bruno@clisp.org>
109 * src/uptime.c: Include sys/sysctl.h.
110 (print_uptime): Add support for determining the boot time on FreeBSD.
112 2002-07-15 Jim Meyering <meyering@lucent.com>
114 * src/uptime.c (print_uptime): Use STREQ in place of !strcmp.
116 * src/uname.c (main): Remove unnecessary uses of `defined' when
117 operating on `HAVE_...' symbols. Remove unnecessary parentheses.
119 2002-07-02 Jim Meyering <meyering@lucent.com>
121 * src/basename.c, src/chroot.c, src/date.c, src/dirname.c (usage):
122 Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.
123 * src/echo.c, src/env.c, src/expr.c, src/factor.c: Likewise.
124 * src/hostname.c, src/id.c, src/kill.c, src/logname.c: Likewise.
125 * src/nice.c, src/pathchk.c, src/pinky.c, src/printenv.c: Likewise.
126 * src/printf.c, src/pwd.c, src/seq.c, src/sleep.c, src/stty.c: Likewise.
127 * src/su.c, src/tee.c, src/test.c, src/true.c, src/tty.c: Likewise.
128 * src/uname.c, src/uptime.c, src/users.c, src/who.c: Likewise.
129 * src/whoami.c, src/yes.c: Likewise.
131 * src/Makefile.am (.sh): Also substitute @PACKAGE_BUGREPORT@.
132 * src/groups.sh (usage): Use @PACKAGE_BUGREPORT@, rather than
133 hard-coding a deprecated address.
134 * src/nohup.sh (usage_help): Likewise.
136 * src/date.c (usage): Mention that the expansions of %p and %P are
137 empty in many locales. From matthew arnison.
139 2002-06-22 Jim Meyering <meyering@lucent.com>
141 * configure.ac: Invoke AC_GNU_SOURCE very early.
143 2002-05-24 Jim Meyering <meyering@lucent.com>
145 * tests/nice: Move this file...
146 * tests/misc/nice: ...to here.
147 * tests/Makefile.am (TESTS): Remove nice.
148 * tests/misc/Makefile.am (TESTS): Add nice.
149 * configure.ac (AC_CONFIG_FILES): Add tests/misc/Makefile.
151 * src/pathchk.c (validate_path): Compare the result of the function --
152 not its (constant) address -- against zero.
153 Patch from Tim J. Robbins <tjr@FreeBSD.ORG>
154 * tests/misc/pathchk1: New test for the above.
155 * tests/misc: New directory.
156 * tests/Makefile.am (SUBDIRS): Add misc.
157 * tests/misc/Makefile.am: New file.
159 2002-05-03 Jim Meyering <meyering@lucent.com>
161 * src/uptime.c (print_uptime): Use ngettext for day/days and user/users.
162 Suggestion from Karl Eichwalder.
164 * src/kill.c (usage): Add a little to the description of --list.
165 Uncapitalize first word and remove period at end of each one line
168 * src/who.c (usage): Tweak description of --users.
169 From Karl Eichwalder.
171 2002-04-29 Jim Meyering <meyering@lucent.com>
175 Avoid warnings from gcc.
176 * src/who.c (PIDSTR_DECL_AND_INIT): Cast ut_pid value to int.
177 (make_id_equals_comment): Cast sizeof expression (used as field
178 width argument) to `int'.
180 * configure, config.hin, Makefile.in, etc.: Regenerate using
183 2002-04-28 Jim Meyering <meyering@lucent.com>
185 * src/who.c: Don't include xalloc.h.
186 It's already included via system.h.
188 2002-04-28 Paul Eggert <eggert@twinsun.com>
190 * src/kill.c: Rewrite from scratch. Support everything
191 required by POSIX 1003.1-2001; when this conflicts with Bash,
192 stick with POSIX. The conflicts are kill -l output format,
193 and lower case signal names preceded by `-' (e.g., "kill -hup"
194 is no longer supported). Remove -L or --long-list option.
195 Add -t or --table option. Rename --sigspec to --signal;
196 remove --signum and do not advertise obsolescent option -n.
197 Use str2sig and str2sig to convert between signal names and
200 * doc/coreutils.texi (kill invocation): Document the above.
201 Document POSIX signals better.
203 * lib/sig2str.h, lib/sig2str.c: New files.
204 * configure.ac (AC_CHECK_DECLS): Add str2signal, strtoimax,
205 sys_siglist, _sys_siglist.
206 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
207 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
208 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
209 (jm_PREREQ_SIG2STR): New macro.
211 2002-04-28 Jim Meyering <meyering@lucent.com>
213 * src/test.c (test_syntax_error): Add `const' to paramater
214 declarations to avoid new warning from gcc.
215 (integer_expected_error): Likewise.
217 2002-04-25 Jim Meyering <meyering@lucent.com>
219 * configure.ac (AM_GNU_GETTEXT): Add external arg.
220 (AC_CONFIG_FILES): Remove intl/Makefile.
221 * Makefile.am (SUBDIRS): Remove intl.
222 * src/Makefile.am (INCLUDES): Remove -I../intl.
224 2002-04-16 Jim Meyering <meyering@lucent.com>
226 * src/who.c (BOOT_TIME): Define.
227 (NEW_TIME): Define to 0, not INT_MAX.
228 (UT_PID, UT_ID, UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
229 Replace literal uses of ut_pid, ut_id, and ut_exit members with
231 (make_id_equals_comment): New function, factored out of three others.
232 (UT_TYPE_UNDEF, UT_TYPE, IS_USER_PROCESS): Define.
233 (print_line): Use "%-8.8s" for the format: the user name is not
234 always NUL terminated.
235 (scan_entries) [need_users]: Use IS_USER_PROCESS, so that this works
236 even on systems without ut_type.
238 2002-04-15 Jim Meyering <meyering@lucent.com>
240 * src/who.c: Include xalloc.h.
241 Use xmalloc everywhere, not malloc.
243 2002-04-12 Jim Meyering <meyering@lucent.com>
245 * src/Makefile.am (LDADD): List ../lib/libfetish.a both before
246 and after @LIBINTL@. Thanks to Paul Eggert for the fix and to
247 Bruno Haible for diagnosing the problem.
249 2002-02-26 Paul Eggert <eggert@twinsun.com>
251 * src/test.c (age_of): Return -1 and 0 rather than 0 and 1.
252 Might as well keep it simple, and like bash.
253 (binary_operator): Fix bug with -nt and -ot, when one of the
254 files did not exist. We want to be compatible with the ksh93
255 documentation, and with Bash.
257 2002-03-17 Jim Meyering <meyering@lucent.com>
259 * src/seq.c (usage): Mention that --format=FORMAT must be
260 a *floating-point* format, also in description of that option.
261 Reported by Karl Eichwalder.
262 (usage): Also add the `=' signs here: --format=FORMAT,
265 2002-03-16 Jim Meyering <meyering@lucent.com>
267 * src/Makefile.am (datadir): Don't override $(datadir)
268 which might be set by --datadir and different from $(prefix)/share.
269 Patch from Albert Chin-A-Young.
271 2002-03-10 Jim Meyering <meyering@lucent.com>
273 * configure.ac (AM_INIT_AUTOMAKE): Specify here the required version
274 of automake (1.6), and options (gnits dist-bzip2), rather than...
275 * Makefile.am (AUTOMAKE_OPTIONS): ...here. Remove definition.
277 2002-03-09 Jim Meyering <meyering@lucent.com>
279 * Makefile.am (EXTRA_DIST): Remove config/config.rpath,
280 now that automake knows about it.
282 2002-03-05 Jim Meyering <meyering@lucent.com>
284 * Makefile.am (EXTRA_DIST): Add config/config.rpath.
286 2002-03-02 Jim Meyering <meyering@lucent.com>
288 * tests/nice: Export _POSIX2_VERSION=199209, so we can continue
289 to exercise the now-obsolete options.
291 * Makefile.maint (strftime-check): Add `N'.
293 2002-02-27 Paul Eggert <eggert@twinsun.com>
295 * doc/coreutils.texi (Time directives): Add %N for nanoseconds.
296 This documents the recent change to 'ls'. But for this to
297 be accurate we also have to update 'date', as follows:
299 * src/Makefile.am (date_LDADD): New macro.
301 * src/date.c: Include timespec.h.
302 (strftime, time, stime): Remove declarations; no longer needed.
303 (usage): Document %N.
304 (main): Use gettime rather than time to get the time of day,
305 so that we can get fractional times.
306 Similarly for settime and stime, so that we can set fractional times
307 (though this currently is not available to the user since we don't
308 parse fractional times; add FIXMES for that).
309 Check for gettime failures; e.g. this can occur if it
310 is past 2038 and we are a 32-bit app running on a 64-bit OS.
311 Get fractional part of file time stamps.
312 Do not falsely report failures just because time_t happens to be -1
313 (e.g. a file time stamp 1 second before the epoch).
314 (show_date): 2nd arg is now struct timespec, not time_t.
315 All uses changed. Use nstrftime rather than strftime, so that
316 we can format fractional seconds.
318 2002-02-24 Jim Meyering <meyering@lucent.com>
320 * src/nice.c: Include posixver.h.
321 * src/date.c: Likewise.
323 2002-02-17 Jim Meyering <meyering@lucent.com>
325 * ABOUT-NLS, intl/*: Update to Gettext 0.11.
326 * INSTALL: Update to Autoconf 2.52h.
328 * src/Makefile.am (datadir): Use `share' in place of @DATADIRNAME@,
330 (LDADD): Use @LIBINTL@ instead of @INTLLIBS@, per Gettext-0.11.
332 * configure.ac (AC_CONFIG_AUX_DIR): New macro invocation.
333 (ALL_LINGUAS): Remove: now in po/LINGUAS as per Gettext 0.11.
335 * config: New subdirectory, containing the following files from .:
336 config.guess, config.sub, depcomp, missing, install-sh, mkinstalldirs.
337 Move the following files here from doc: texinfo.tex, mdate-sh.
339 2002-02-15 Paul Eggert <eggert@twinsun.com>
341 Add support for _POSIX2_VERSION, which lets you pick which POSIX
342 version you want the utilities to conform to. Remove warnings about
343 failure to conform to a future POSIX version.
345 * src/date.c (ISO_8601_OPTION): Remove; no longer needed.
346 All uses changed to back to the corresponding short options.
347 (short_options): Remove; no longer needed.
348 (COMMON_SHORT_OPTIONS): New macro.
350 * src/date.c (usage): Document only the intersection of the
351 old and new behaviors, to encourage portability.
352 (main): Parse options using POSIX 1003.1-2001 rules if
353 conforming to that standard. Do not warn of obsolete options.
354 * src/nice.c (usage, main): Likewise.
356 2002-02-11 Paul Eggert <eggert@twinsun.com>
358 * src/nice.c (main): Output warnings only if OBSOLETE_OPTION_WARNINGS.
360 2002-02-11 Jim Meyering <meyering@lucent.com>
362 * src/date.c (usage): Describe %F, %g, %G, %P, and %R.
363 Tweak the description of %p.
365 * tests/stty/basic-1: Use `tail -n +2', rather than `tail +2'.
367 2002-02-03 Paul Eggert <eggert@twinsun.com>
369 Add more support for POSIX 1003.1-2001, which requires removal
370 for support of obsolete "-DIGITS" option syntax in nice, and
371 which prohibits options with optional arguments like date's
374 * NEWS, coreutils.texi: Document this.
376 * src/date.c (ISO_8601_OPTION): New enum value.
377 (long_options): Use it.
378 (short_options): New constant.
380 * src/date.c (usage): Document the change.
381 * src/nice.c (usage): Likewise.
383 * src/date.c (main): Conform to POSIX 1003.1-2001 if
384 POSIX2_VERSION says to, otherwise warn of obsolete usage if
385 OBSOLETE_OPTION_WARNINGS is nonzero and if not POSIXLY_CORRECT.
386 * src/nice.c (main): Likewise.
388 2002-02-02 Bruno Haible <bruno@clisp.org>
390 * printf.c (print_esc): Call print_unicode_char with exit_on_error =
393 2002-01-28 Jim Meyering <meyering@lucent.com>
395 * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5d.
396 * configure.ac (AM_INIT_AUTOMAKE): Use zero-arg form of this macro.
398 2002-01-22 Jim Meyering <meyering@lucent.com>
400 * po/POTFILES.in: Add lib/xmemcoll.c and src/sys2.h.
402 2002-01-21 Jim Meyering <meyering@lucent.com>
404 * Makefile.maint (strftime-check): New rule.
405 (local-check): Convert this target to a list. Update uses.
407 (header-check): New rule.
408 (local-check): Add header-check.
410 * src/dirname.c: Don't include "xalloc.h", as system.h already
411 does that via sys2.h.
412 * src/expr.c: Likewise.
414 2002-01-19 Jim Meyering <meyering@lucent.com>
416 * configure.ac: Remove code that set LIBOBJS in support of ansi2knr.
417 The latest version of autoconf objected to it, and besides, I don't
418 care too much about K&R support these days.
420 2002-01-14 Paul Eggert <eggert@twinsun.com>
422 * src/date.c, src/logname.c, src/pathchk.c: Comment fixes
423 to bring us up to date with respect to POSIX 1003.1-2001.
424 In particular, POSIX.2 is now obsolete.
426 2001-12-28 Jim Meyering <meyering@lucent.com>
428 * configure.ac (ALL_LINGUAS): Add Catalan (ca).
430 2001-12-17 Jim Meyering <meyering@lucent.com>
432 * Makefile.maint (real_dir): Remove unused variable.
433 (url_dir_list): Don't set define it here, but...
434 * Makefile.cfg (url_dir_list): ...define it here instead.
435 (hosts, a_host, b_host): Remove now-unused variables.
436 (alpha_subdir, a_url_dir, b_url_dir): Remove now-unused variables.
438 2001-12-15 Jim Meyering <meyering@lucent.com>
440 * src/basename.c, src/chroot.c, src/date.c, src/dirname.c, src/echo.c,
441 * src/env.c, src/expr.c, src/factor.c, src/hostid.c, src/hostname.c,
442 * src/id.c, src/kill.c, src/logname.c, src/nice.c, src/pathchk.c,
443 * src/pinky.c, src/printenv.c, src/printf.c, src/pwd.c, src/seq.c,
444 * src/sleep.c, src/stty.c, src/su.c, src/tee.c, src/test.c, src/true.c,
445 * src/tty.c, src/uname.c, src/uptime.c, src/users.c, src/who.c,
446 * src/whoami.c, src/yes.c (usage): Use fputs, not printf.
447 Split --help output into smaller pieces.
448 Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION
449 instead of hard-coding --help and --version descriptions.
451 2001-12-08 Jim Meyering <meyering@lucent.com>
453 * Makefile.cfg (wget_files): Remove ansi2knr.c, since it's
454 no longer available at that location.
456 2001-11-25 Jim Meyering <meyering@lucent.com>
458 * basename.c, dirname.c, expr.c, factor.c, hostname.c (usage):
459 * logname.c, printenv.c, printf.c, pwd.c, sleep.c, test.c (usage):
460 * true.c, whoami.c, yes.c (usage):
461 Indent --help and --version strings to start in the 7th column.
463 2001-11-17 Jim Meyering <meyering@lucent.com>
465 * configure.ac: Replace use of the one-arg form of AC_INIT
466 with a use of the 3-arg form and a use of AC_CONFIG_SRCDIR.
468 2001-11-11 Jim Meyering <meyering@lucent.com>
470 * src/Makefile.am (printf_LDADD): Reflect spelling change:
472 (sleep_LDADD): Likewise.
474 2001-11-10 Jim Meyering <meyering@lucent.com>
476 * src/date.c (usage): Document %u. Reported by Albert Hopkins.
478 2001-11-09 Jim Meyering <meyering@lucent.com>
480 * configure.ac: Use AC_CONFIG_FILES(...) and call AC_OUTPUT with no
483 2001-09-28 Jim Meyering <meyering@lucent.com>
485 * configure.ac: Tell automake to use the file name `config.hin'
486 rather than the two-`.' config.h.in.
488 2001-09-26 Jim Meyering <meyering@lucent.com>
490 * man/Makefile.am (common_dep): Define it, so we depend on configure.ac.
492 * configure.ac: Renamed from configure.in.
494 2001-09-25 Jim Meyering <meyering@lucent.com>
497 (factor_DEPENDENCIES, printf_DEPENDENCIES seq_DEPENDENCIES):
498 (sleep_DEPENDENCIES uptime_DEPENDENCIES su_DEPENDENCIES):
499 Remove unnecessary definitions. They can cause trouble
500 when @INTLLIBS@ expands to -lintl.
502 2001-09-23 Jim Meyering <meyering@lucent.com>
504 * Makefile.am (SUBDIRS): When using newer gettext (in which
505 intl/libintl.h is created by rules intl/Makefile)
506 `intl' must precede `lib'.
508 2001-09-17 Jim Meyering <meyering@lucent.com>
510 * src/printf.c (main): Change the `ignoring excess arguments' diagnostic
511 to list the first one we're ignoring. Suggestion from Karl Berry.
513 2001-09-16 Jim Meyering <meyering@lucent.com>
515 * src/stty.c (usage): Prefix each line with a space, so that
516 help2man produces a better stty.1 man page.
517 From Colin Watson, via Michael Stone. http://bugs.debian.org/95816
519 * src/test.c (usage): Describe -h option.
520 From Colin Watson, via Michael Stone. http://bugs.debian.org/99272
522 * man/pwd.x: Add note to help people understand that this documentation
523 may not refer to the (shell built-in) command they're running.
524 * man/echo.x: Likewise.
525 * man/printf.x: Likewise.
528 * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.5.
530 * man/Makefile.am: Revamp this file, as for fileutils.
532 2001-09-11 Jim Meyering <meyering@lucent.com>
534 * configure.in: Move HOST_OPERATING_SYSTEM code from this file
535 into a new macro defined in m4/host-os.m4.
537 2001-09-09 Jim Meyering <meyering@lucent.com>
539 * src/test.c (binary_operator): Correct typo in diagnostic.
542 2001-09-03 Paul Eggert <eggert@twinsun.com>
544 * NEWS: New 'uname' options -i or --hardware-platform,
545 and -o or --operating-system.
546 'uname -a' now outputs -i and -o information at the end.
547 New uname option --kernel-version is an alias for -v.
548 Uname option --release has been renamed to --kernel-release,
549 and --sysname has been renamed to --kernel-name;
550 the old options will work for a while, but are no longer documented.
552 * configure.in (HOST_OPERATING_SYSTEM): New macro; set it
553 from $host_os with a translation table and other heuristics.
555 * src/uname.c: Correct copyright notice as per latest coding standards.
556 Remove list of options in comment, which wasn't
557 worth maintaining separately from usage().
559 (print_element): Move definition up, avoiding the need for
560 declaration and allowing inlining on some platforms.
561 Keep track of whether something has been printed; this is more
562 natural than modifying `toprint'.
564 (PRINT_KERNEL_NAME): Renamed from PRINT_SYSNAME.
565 (PRINT_KERNEL_RELEASE): Renamed from PRINT_RELEASE.
566 (PRINT_KERNEL_VERSION): Renamed from PRINT_VERSION.
567 (PRINT_HARDWARE_PLATFORM, PRINT_OPERATING_SYSTEM): New macros.
568 (toprint): Remove global var; now local in `main'.
569 (long_options, usage, main): Implement changes described in NEWS.
570 Reorder options to reflect output order.
571 (main): Use buffers one byte longer, for compatibility with Solaris 8.
572 Output newline at end. -a sets `toprint' to -1 now; this is simpler.
573 Do not bother invoking system calls like uname if the resulting
574 information does not need to be printed.
575 Do not fail if sysinfo fails; just print "unknown".
577 2001-08-30 Paul Eggert <eggert@twinsun.com>
579 * src/tee.c (full_write): Remove decl; not needed.
581 2001-06-19 Paul Eggert <eggert@twinsun.com>
583 * NEWS: expr now uses LC_COLLATE for string comparison, as per POSIX.
584 * src/expr.c (nextarg): Use strcoll, not strcmp.
586 2001-08-24 Jim Meyering <meyering@lucent.com>
588 * src/pinky.c (main): Fail if -l is specified with no username.
590 * src/pinky.c (usage): Clarify description of -l. From Clark Morgan.
592 2001-06-21 Paul Eggert <eggert@twinsun.com>
594 * NEWS: 'expr' now requires '+' rather than 'quote' to quote tokens.
596 * src/expr.c (posixly_correct): Remove; no longer needed.
597 (main): Do not worry about POSIXLY_CORRECT, as it's OK for
598 expr to have options (so long as they do not begin with digits).
599 (eval6, usage): Use "+" rather than "quote" to quote tokens.
601 2001-08-19 Jim Meyering <meyering@lucent.com>
603 * src/Makefile.am (bin_PROGRAMS): Add kill.
604 * src/kill.c: New program. Written by Marcus Brinkmann.
606 2001-08-19 Jim Meyering <meyering@lucent.com>
608 * po/POTFILES.in: Add src/kill.c
610 2001-06-21 Paul Eggert <eggert@twinsun.com>
612 * src/expr.c (nextarg): Advance ARGS by one if the next token matches.
615 2001-06-21 Paul Eggert <eggert@twinsun.com>
617 * src/expr.c (isstring): Remove.
618 (eval2): Do comparisons as strings first, before trying to convert to
619 integer. This avoids loss of information and wrong result, e.g. for
620 "expr '00' '<' '0!'", where you don't want to convert '00' to '0'.
622 2001-08-18 Jim Meyering <meyering@lucent.com>
624 * tests/expr/basic (00): New test for the above.
626 2001-06-21 Paul Eggert <eggert@twinsun.com>
628 * src/expr.c: Code cleanup to avoid tricky macros and
629 old-style function declarations.
631 (cmpf, less_than, less_equal, equal, not_equal, greater_equal,
632 greater_than, arithf, arithdivf, plus, minus, multiply, divide, mod):
635 (eval4, eval3, eval2): Rewrite to avoid the need for the above macros
638 2001-08-18 Jim Meyering <meyering@lucent.com>
640 * src/test.c (binary_operator): Move declarations of lt,rt `down'
641 into the scopes where they're actually used.
642 (unary_operator): Likewise for `fd'.
644 2001-06-20 Paul Eggert <eggert@twinsun.com>
646 * src/test.c (isint, binary_operator, unary_operator):
647 Use intmax_t for argument integers, not long.
648 (age_of, binary_operator): Use time_t for times, not long.
649 (unary_operator): If N is out of int range, -t N now returns false.
651 2001-06-20 Paul Eggert <eggert@twinsun.com>
653 * src/expr.c (main): Handle a leading "--" option as POSIX requires.
655 2001-08-18 Jim Meyering <meyering@lucent.com>
657 * tests/expr/basic: Add a test for the above.
659 2001-06-20 Paul Eggert <eggert@twinsun.com>
661 * src/expr.c (toarith): Don't accept plain "-" as a valid integer.
663 2001-06-20 Paul Eggert <eggert@twinsun.com>
665 Modify 'expr' so that it uses intmax_t, not int, to calculate
666 the value of integer expressions.
668 * src/expr.c (struct valinfo.i): Now intmax_t, not int.
669 (docolon, int_value, str_value, isstring, nextarg, toarith,
670 freev, tostring, trace): Remove unnecessary forward decls.
671 (int_value, printv, tostring, toarith, arithf, arithdivf, docolon,
672 eval6, eval4, eval3): Do integer arithmetic using intmax_t, not int.
673 (docolon): Don't assume size_t fits in int.
675 2001-08-18 Jim Meyering <meyering@lucent.com>
677 * tests/expr/basic: New test for the above.
678 * tests/expr/Makefile.am: New file.
679 * tests/expr: New directory.
680 * tests/Makefile.am (SUBDIRS): Add expr.
681 * configure.in (AC_OUTPUT): Add tests/expr/Makefile.
683 2001-08-18 Jim Meyering <meyering@lucent.com>
685 Revert part of last change and solve the problem a better way.
686 * src/date.c (show_date) [--rfc-822]: Set LC_ALL=C just before
687 calling strftime and restore it just afterwards.
688 Suggestion from Ulrich Drepper.
690 2001-08-18 H. Peter Anvin <hpa@transmeta.com>
692 * src/date.c (show_date) [--rfc-822]: Don't space-pad the day of
694 Set only LC_TYPE to the "C" locale. Setting LC_ALL is overkill,
695 and would have unwanted side effects if there is an error message.
697 2001-08-16 Jim Meyering <meyering@lucent.com>
699 * src/date.c (main): When there are too many non-option arguments,
700 include the first offending argument in the diagnostic.
701 Suggestion from Karl Berry.
703 2001-08-14 Jim Meyering <meyering@lucent.com>
705 * src/Makefile.am (INCLUDES): Add -I../lib so sys2.h can include
706 the new, generated file, unlocked-io.h.
708 * tests/Makefile.am (TESTS_ENVIRONMENT): Remove first definition
709 of this variable, and move its RHS into the RHS of the second.
712 * src/su.c (xputenv): Remove parameter's const qualifier.
714 * src/dirname.c, src/env.c, src/id.c, src/pathchk.c, src/pinky.c,
715 * src/printenv.c, src/sleep.c, src/tee.c, src/test.c, src/uptime.c,
716 * src/users.c, src/who.c: (AUTHORS): Mark string for translation,
717 since it contains the English word `and'.
719 2001-08-12 Jim Meyering <meyering@lucent.com>
721 * src/pathchk.c (PATH_MAX_FOR): Use pathconf via wrapper.
722 (NAME_MAX_FOR): Likewise.
723 Guard the above pathconf-using definitions with `#if HAVE_PATHCONF'
724 rather than with `#ifdef _POSIX_VERSION'.
725 (pathconf_wrapper): New function.
726 (validate_path): Declare length variables to be `long', not `int'.
727 Adjust corresponding printf-style specs to use %ld.
728 Reported by Neal H Walfield.
730 2001-08-07 Jim Meyering <meyering@lucent.com>
732 * src/printf.c (cfcc_msg): Remove now-inaccurate part of comment.
735 2001-07-04 Jim Meyering <meyering@lucent.com>
737 * Makefile.cfg: New file with package-specific definitions.
738 * Makefile.am (EXTRA_DIST): Add Makefile.cfg.
740 2001-06-09 Jim Meyering <meyering@lucent.com>
742 (PIDSTR_DECL_AND_INIT): Define.
744 2001-06-05 Jim Meyering <meyering@lucent.com>
746 * configure.in (ALL_LINGUAS): Add Turkish (tr).
748 2001-05-27 Jim Meyering <meyering@lucent.com>
750 * src/dirname.c (main): Add `const' to declaration of local, `result'.
752 2001-04-01 Jim Meyering <meyering@lucent.com>
754 Add options to make `who' more POSIX compliant.
755 * who.c: Accept new options: --all (-a), --boot (-b), --dead (-d),
756 --login, --process (-p), --runlevel (-r), --short (-s), --time (-t),
758 The -u option now produces POSIX-specified results and is the same as
759 the long option `--users'. --idle is no longer the same as -u.
760 (time_string, print_line, print_boottime, print_deadprocs, print_login,
761 print_initspawn, print_clockchange, print_runlevel): New functions.
762 (print_user): Renamed from print_entry and reworked.
763 (search_entries): Remove function.
764 (who_am_i): Likewise.
765 (usage): Describe new options.
766 (main): Handle new options.
767 Mostly from Michael Stone.
769 2001-05-11 Paul Eggert <eggert@twinsun.com>
771 dirname code cleanup. base_name now behaves more compatibly
772 with POSIX basename when given file names that have trailing
773 slashes, and similarly for dir_name. Add new primitives
774 base_len and dir_len. Put the directory-name-related decls
777 * basename.c: Include "dirname.h".
778 (base_name, strip_trailing_slashes): Remove decls; now in dirname.h.
779 (main): Use base_len instead of strip_trailing_slashes to strip
782 * dirname.c (strip_trailing_slashes): Remove decl;
784 (main): Use dir_len rather than dir_name_r.
786 * su.c: Include "dirname.h".
787 (base_name): Remove decl; now in dirname.h.
789 2001-04-20 Jim Meyering <meyering@lucent.com>
791 * doc/sh-utils.texi (false invocation): Describe how --help and
792 --version are treated with and without POSIXLY_CORRECT.
793 (true invocation): Likewise. Forwarded by Michael Stone.
795 2001-03-18 Jim Meyering <meyering@lucent.com>
797 * tests/Fetish.pm: If the $DJDIR envvar is defined, set SHELL
798 to $DJDIR/bin/bash.exe. Patch from Richard Dawe, based on a
799 suggestion from Eli Zaretskii.
801 2001-03-10 Jim Meyering <meyering@lucent.com>
803 * doc/sh-utils.texi (date invocation): Correct the description of how
804 date works when given no format. Reported by Ole Laursen.
806 * src/factor.c: Include wheel-size.h.
807 (WHEEL_START): Adjust definition.
808 (wheel_tab[]): Remove body of definition.
809 Include generated file, wheel.h, instead.
811 * src/wheel-gen.pl: New file.
812 * src/Makefile.am (noinst_HEADERS): Add wheel.h wheel-size.h.
813 (EXTRA_DIST): Add wheel-gen.pl.
815 (wheel-size.h, wheel.h): New rules.
816 (BUILT_SOURCES): Add wheel.h and wheel-size.h.
817 (MAINTAINERCLEANFILES): Define.
819 2001-03-09 Jim Meyering <meyering@lucent.com>
821 * Makefile.maint (my_distdir): Define new variable, and use this
822 in place of most old uses of $(distdir).
824 * src/date.c (usage): Describe %C.
825 * doc/sh-utils.texi (Date directives): Likewise.
827 * tests/help-version: Ensure that /dev/full is a character device
828 (using test -c) as well as being writable, before trying to write to it.
829 Otherwise, the test could mistakenly append a newline to an existing,
830 regular, writable, /dev/full file.
831 Suggested by Ulrich Drepper.
833 2001-03-07 Jim Meyering <meyering@lucent.com>
835 * tests/stty/Makefile.am (EXTRA_DIST): Remove input-tty.
836 * tests/Makefile.am (EXTRA_DIST): Add input-tty.
838 * tests/stty/basic-1: Reflect change in location of input-tty.
839 * tests/stty/row-col: Likewise.
840 * tests/stty/input-tty: Move this file...
841 * tests/input-tty: ... to here.
843 2001-02-24 Paul Eggert <eggert@twinsun.com>
845 * doc/sh-utils.texi: Fix typo: '-d=1may' -> '-d 1may'.
846 Fix and clarify time zone usage in 'date' examples.
848 2001-02-04 Jim Meyering <meyering@lucent.com>
850 * src/factor.c (usage): Tweak --help output: it prints the _prime_
851 factors, not just any factors.
853 2001-02-03 Jim Meyering <meyering@lucent.com>
855 Improve the performance of `factor' (more than 2x speed-up for large N).
856 * src/factor.c (wheel_tab): New global table.
857 (WHEEL_START, WHEEL_END): Define.
858 (factor): Remove the loop that special-cased `2'.
859 Instead of incrementing by `2', use the offsets from the wheel table.
860 From Michael Steffens.
862 2000-11-27 Prashant TR <rprash@wilco-int.com>
864 * src/test.c (eaccess) [__MSDOS__]: Just use access.
866 2001-01-26 Jim Meyering <meyering@lucent.com>
868 * src/dirname.c (main): Declare local result as non-const, now
871 2001-01-20 Jim Meyering <meyering@lucent.com>
873 * configure.in: Remove jm_CHECK_ALL_TYPES.
874 Now it's invoked by jm_MACROS.
876 2001-01-04 Jim Meyering <meyering@lucent.com>
878 * src/date.c (main): Fail when --rfc-822 (-R) is specified along
879 with a format string. Reported by Jochen Hein.
881 2000-12-17 Jim Meyering <meyering@lucent.com>
883 * doc/texinfo.tex: Update from master repository.
884 * config.sub: Likewise.
885 * config.guess: Likewise.
887 * djgpp: New directory.
888 * djgpp/*: New files.
889 * Makefile.am (SUBDIRS): Add djgpp.
890 * configure.in (AC_OUTPUT): Add djgpp/Makefile.
893 2000-12-08 Jim Meyering <meyering@lucent.com>
895 * src/dirname.c: Include xalloc.h.
896 (main): Use dir_name rather than the underlying dir_name_r.
897 The former now handles cwd-relative names with drive-letter prefixes.
899 2000-12-02 Jim Meyering <meyering@lucent.com>
901 * src/seq.c (valid_format): Move pre-increment to a separate statement
904 * src/id.c: Move dcls of globals used only in main...
906 (usage): Clarify option descriptions.
908 2000-11-18 Jim Meyering <meyering@lucent.com>
910 * po/Makefile.in.in: Sync with the one from fileutils.
912 * configure, config.h.in, Makefile.in, etc.: Regenerate using the
913 very latest version (in CVS) of autoconf.
915 2000-11-17 Jim Meyering <meyering@lucent.com>
917 * GNUmakefile (.NOTPARALLEL): New target. Prevent unwanted parallelism.
918 Suggestion from Ulrich Drepper.
920 * src/pinky.c: Explicitly include sys/types.h before including system.h.
921 * src/uptime.c: Likewise.
922 * src/users.c: Likewise.
923 * src/who.c: Likewise.
925 2000-11-13 Paul Eggert <eggert@twinsun.com>
927 * src/sys2.h (ST_TIME_CMP_NS): Fix typo: ST_MTIM_NSEC should
928 be tested with #ifdef, not with #if.
930 2000-11-12 Jim Meyering <meyering@lucent.com>
932 * src/date.c (show_date): Add a comment explaining why the
933 format string must not be translatable via _(). From Paul Eggert.
935 2000-10-31 Jim Meyering <meyering@lucent.com>
937 * doc/sh-utils.texi: Clean up indentation and punctuation.
938 Fix a couple typos. From Brian Youmans.
940 2000-10-30 Jim Meyering <meyering@lucent.com>
942 * configure, config.h.in, Makefile.in, etc.: Regenerate using the
943 very latest version (in CVS) of autoconf.
945 2000-10-29 Jim Meyering <meyering@lucent.com>
949 2000-10-27 Jim Meyering <meyering@lucent.com>
951 * src/date.c (usage): Mention the time zone, UTC, and write the date
952 in ISO format in the description of %s. Suggestion from Karl Berry.
954 2000-10-25 Jim Meyering <meyering@lucent.com>
956 * src/dirname.c: Include dirname.h.
957 (main): Use dir_name_r rather than open-coding it.
959 2000-10-23 Jim Meyering <meyering@lucent.com>
961 * Makefile.am (EXTRA_DIST): Add .prev-version.
963 2000-10-18 Paul Eggert <eggert@twinsun.com>
965 * src/date.c (universal_time): Remove; it's just a temptation to
967 (main): The -u option now just sets TZ; it doesn't do anything else.
968 (show_date): Do not do anything special if -u is set.
969 This affects the behavior of the -I and -R options.
970 * doc/sh-utils.texi: Document the above.
972 2000-10-18 Jim Meyering <meyering@lucent.com>
974 * doc/sh-utils.texi (Examples of date): Fix a typo.
976 2000-10-11 Jim Meyering <meyering@lucent.com>
978 * doc/sh-utils.texi (Time directives) [%S]: Range is 0..60, not 0..61.
980 2000-10-06 Paul Eggert <eggert@twinsun.com>
982 Undo the effect of the 1997-07-12 change to date.c; it
983 broke "date -u MMDDhhmm" and it wasn't documented.
984 This reverts to the behavior of the 1996-01-03 patch.
986 * src/date.c (TZ_UTC0, MAYBE_SET_TZ_UTC0, set_tz): Remove.
987 (batch_convert): Don't futz with TZ.
988 (main): -u now parses all dates as UTC, not just some.
989 Reported by Karl-Michael Schneider.
990 * tests/date/Test.pm (utc-0, utc-1, relative-2): Adjust to
993 2000-09-29 Jim Meyering <meyering@lucent.com>
995 * src/yes.c (usage): Add a separate usage line, just for `OPTION'.
996 Suggestion from M. P. Suzuki.
998 2000-09-09 Jim Meyering <meyering@lucent.com>
1000 * src/date.c (usage): Make the second `Usage' line more precise
1001 (also making it match the texinfo documentation).
1002 From Karl Eichwalder.
1004 * doc/sh-utils.texi (Setting the time): Correct the capitalization of
1005 `HHMM' in the info-rendering of the texinfo documentation.
1006 Reported by Karl Eichwalder.
1008 2000-08-14 Jim Meyering <meyering@lucent.com>
1010 * src/tee.c (main): Remove incorrect `FIXME' comment.
1012 2000-08-07 Paul Eggert <eggert@twinsun.com>
1014 * src/su.c (xputenv): Invoke xalloc_die instead of printing
1017 2000-07-30 Jim Meyering <meyering@lucent.com>
1019 * src/tee.c (tee): Use SET_BINARY and SET_BINARY2.
1022 * src/help-version: Remove file. Move it to ...
1023 * tests/help-version: ...here
1024 * tests/Makefile.am (TESTS): Add help-version.
1025 (TESTS_ENVIRONMENT): Define.
1026 * src/Makefile.am (EXTRA_DIST): Remove help-version.
1027 (TESTS): Remove definition.
1028 (TESTS_ENVIRONMENT): Remove definition.
1030 2000-07-23 Jim Meyering <meyering@lucent.com>
1032 * src/help-version (su_args): Punt, so we don't try to start a shell.
1034 * src/su.c: Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
1035 rather than if _POSIX_VERSION is defined. Remove declarations of
1036 getpwuid, getgrgid, and getuid, now that they're in sys2.h.
1037 Prompted by a report from John David Anglin.
1039 * src/sys2.h [!HAVE_DECL_GETPWUID]: Declare getpwuid.
1040 [!HAVE_DECL_GETGRGID]: Declare getgrgid.
1041 [!HAVE_DECL_GETUID]: Declare getuid.
1043 2000-07-19 Jim Meyering <meyering@lucent.com>
1045 * src/date.c (batch_convert): Free `initial_TZ' only if it was set.
1046 Reported by Michael Hohn.
1048 2000-07-17 Jim Meyering <meyering@lucent.com>
1050 * src/stty.c (visible): Don't mark `<undef>' for translation.
1051 The standard requires that exact string.
1053 2000-07-09 Jim Meyering <meyering@lucent.com>
1055 * config.guess: Update from FSF.
1056 * config.sub: Likewise.
1058 * src/Makefile.am (seq_LDADD): Don't hard-code `-lm' -- some systems
1059 don't have/need it. From Bruno Haible.
1061 2000-07-06 Jim Meyering <meyering@lucent.com>
1063 * src/help-version: Punt on `groups' test, since all it does
1064 is run `id -Gn', and groups fails if GNU id is not installed.
1065 Reported by Christian Krackowizer.
1067 2000-07-05 Bruno Haible <haible@clisp.cons.org>
1069 * tests/nice: Avoid syntax error in "test" when `nice` generates
1072 2000-07-04 Jim Meyering <meyering@lucent.com>
1076 * tests/date/Test.pm (test_vector): Disable test #2 for all systems,
1077 even though it fails only on SunOS4.
1079 2000-07-01 Jim Meyering <meyering@lucent.com>
1081 * configure.in (jm_DUMMY_1): Wrap a snippet in a macro definition
1082 so we can use AC_REQUIRE.
1083 (jm_BOOT_TIME): Likewise.
1085 2000-06-17 Bruno Haible <haible@clisp.cons.org>
1087 * configure.in: Add pinky, users, who to OPTIONAL_BIN_PROGS if either
1088 <utmp.h> or <utmpx.h> exists. Add uptime only if either <utmp.h> or
1090 * src/Makefile.am (bin_PROGRAMS): Remove pinky, users, who from here...
1091 (EXTRA_PROGRAMS): ... and add them here.
1093 2000-06-26 Jim Meyering <meyering@lucent.com>
1095 `id -Gn' (invoked by groups) would fail without giving a diagnostic
1096 on malconfigured systems.
1097 * src/id.c (print_user): Give a diagnostic if number->name lookup fails.
1098 (print_group): Likewise.
1100 2000-06-25 Jim Meyering <meyering@lucent.com>
1102 * configure.in (ALL_LINGUAS): Add Danish (da).
1104 2000-06-21 Jim Meyering <meyering@lucent.com>
1106 * tests/stty/basic-1: New test for that.
1107 * src/stty.c (valid_options): Don't segfault on `stty erase -'.
1108 Patch from Harry Liu.
1110 2000-06-15 Jim Meyering <meyering@lucent.com>
1112 * tests/date/Test.pm: Add tests for getdate.y fix.
1114 2000-06-14 Jim Meyering <meyering@lucent.com>
1116 * src/help-version: Punt on nohup; give it --version.
1118 2000-06-10 Jim Meyering <meyering@lucent.com>
1120 * doc/sh-utils.texi: Typo-fixes and some clean-up from Brian Youmans.
1122 2000-05-29 Jim Meyering <meyering@lucent.com>
1124 * tests/nice: Remove now-unused reference to srcdir.
1126 * src/help-version: Use `WARNING', not just `Warning' in the
1127 broken-/bin/sh diagnostic, to be consistent with other such warnings.
1129 2000-05-21 Jim Meyering <meyering@lucent.com>
1131 * tests/nice: Disable test on djgpp.
1133 2000-05-15 Jim Meyering <meyering@lucent.com>
1135 * tests/date/Test.pm (test_vector): Skip the %c test on SunOS4 systems.
1136 Suggested by Paul Eggert. Reported by Volker Borchert.
1138 2000-05-13 Jim Meyering <meyering@lucent.com>
1140 * src/groups.sh: Detect and report write failure of --help/--version.
1141 * src/nohup.sh: Likewise.
1143 2000-05-11 Jim Meyering <meyering@lucent.com>
1145 * src/date.c (usage): Don't call close_stdout_status directly,
1146 since that didn't cover --version output.
1147 (main): Instead, call close_stdout_set_status and arrange to
1148 call close_stdout via atexit.
1149 * src/printenv.c: Likewise.
1150 * src/tty.c: Likewise.
1152 * src/true.c (usage): Don't call close_stdout directly, since that
1153 didn't cover --version output.
1154 (main): Arrange to call close_stdout via atexit, instead.
1155 * src/yes.c: Likewise.
1156 * src/sleep.c: Likewise.
1158 2000-05-09 Jim Meyering <meyering@lucent.com>
1160 * src/sys2.h (case_GETOPT_VERSION_CHAR): Don't call close_stdout.
1161 * src/help-version: New test.
1162 * src/Makefile.am (TESTS): Define.
1163 (TESTS_ENVIRONMENT): Likewise.
1164 (EXTRA_DIST): Add help-version.
1166 2000-05-08 Jim Meyering <meyering@lucent.com>
1170 2000-05-07 Jim Meyering <meyering@lucent.com>
1174 * src/basename.c: Include "closeout.h".
1175 (main): Call atexit with close_stdout.
1176 * src/chroot.c: Likewise.
1177 * src/dirname.c: Likewise.
1178 * src/echo.c: Likewise.
1179 * src/env.c: Likewise.
1180 * src/expr.c: Likewise.
1181 * src/factor.c: Likewise.
1182 * src/hostid.c: Likewise.
1183 * src/hostname.c: Likewise.
1184 * src/id.c: Likewise.
1185 * src/logname.c: Likewise.
1186 * src/nice.c: Likewise.
1187 * src/pathchk.c: Likewise.
1188 * src/pinky.c: Likewise.
1189 * src/printf.c: Likewise.
1190 * src/pwd.c: Likewise.
1191 * src/seq.c: Likewise.
1192 * src/stty.c: Likewise.
1193 * src/su.c: Likewise.
1194 * src/test.c: Likewise.
1195 * src/uname.c: Likewise.
1196 * src/uptime.c: Likewise.
1197 * src/users.c: Likewise.
1198 * src/who.c: Likewise.
1199 * src/whoami.c: Likewise.
1200 * src/tee.c: Likewise. Remove explicit close_stdout.
1202 * src/yes.c Include "closeout.h".
1203 (usage): Call close_stdout just before exit.
1204 * src/sleep.c: Likewise.
1205 * src/true.c: Likewise.
1206 * src/date.c (usage): Call close_stdout_status.
1207 * src/printenv.c (usage): Likewise.
1209 * tests/date/Test.pm ($Test::env{'rfc822-1'}): Add TZ=UTC0.
1211 2000-05-06 Jim Meyering <meyering@lucent.com>
1213 * src/Makefile.am (sleep_LDADD): Add @LIB_CLOCK_GETTIME@ and
1216 * src/tty.c (main): Warn about arguments, don't fail.
1217 (usage): Call close_stdout_status from here as well as from main.
1219 2000-05-05 Jim Meyering <meyering@lucent.com>
1221 Exit nonzero upon write failure.
1222 * src/printf.c: Include "closeout.h".
1223 (main): Call close_stdout.
1224 Reported by Ian Jackson via Michael Stone.
1226 2000-05-04 Jim Meyering <meyering@lucent.com>
1228 * Makefile.maint (my-distcheck): Remove spurious blank line.
1229 Remove $(DEPDIR) *after* making distclean, not before.
1231 2000-04-30 Jim Meyering <meyering@lucent.com>
1233 * src/yes.c: Detect and terminate upon write failure.
1235 2000-04-14 Jim Meyering <meyering@lucent.com>
1237 * src/seq.c: Shorten `#ifdef HAVE_...' to `#if HAVE_...' and
1238 remove unnecessary uses of `defined' (aesthetics).
1240 2000-04-12 Jim Meyering <meyering@lucent.com>
1242 Move some code into m4/.
1243 * configure.in (_GNU_SOURCE): Don't define here.
1244 (AC_SYS_LARGEFILE): Don't use here.
1245 (AM_C_PROTOTYPES): Don't use here.
1246 (AC_DEFINE): Use 3-arg form.
1247 * acconfig.h: Remove now-unused file.
1249 2000-04-09 Jim Meyering <meyering@lucent.com>
1251 * configure.in (ALL_LINGUAS): Add Estonian (et).
1253 2000-04-01 Jochen Hein <jochen@jochen.org>
1255 * src/date.c: Use the "C" locale when using --rfc-822 (-R), as
1256 required by rfc822. Before, in the de_DE locale, date would
1257 print the German weekday and month abbreviations.
1259 * tests/date/Test.pm: Add test for rfc822 format and foreign
1262 2000-04-04 Jim Meyering <meyering@lucent.com>
1264 * man/Makefile.am (man_MANS): Add uptime.1.
1265 * man/uptime.x: New file.
1267 * man/Makefile.am (man_MANS): Add factor.1.
1268 * man/factor.x: New file.
1270 * tests/seq/basic: Split a long line and tweak for font-lock mode.
1271 * tests/factor/basic: Likewise.
1272 * tests/basename/basic: Likewise.
1274 2000-03-29 Paul Eggert <eggert@twinsun.com>
1276 * src/date.c: Include <langinfo.h> if it exists.
1277 (DATE_FMT_LANGINFO): New macro.
1278 (show_date): Use it to get the locale-specific default format for
1279 "date" if it exists.
1281 2000-03-19 Jim Meyering <meyering@lucent.com>
1285 * doc/sh-utils.texi (chroot invocation): Include a couple tips and
1288 * doc/getdate.texi (Calendar date item): Fix typos.
1289 From Per Cederqvist.
1291 2000-03-18 Jim Meyering <meyering@lucent.com>
1293 * src/uptime.c (print_uptime): Use `buf' only if fgets succeeds.
1295 2000-03-12 Jim Meyering <meyering@lucent.com>
1297 Merge from textutils.
1298 * src/system.h (O_BINARY, O_TEXT): Define if necessary.
1299 (SET_BINARY, SET_BINARY2): Define.
1300 (DEV_BSIZE): Define to BBSIZE if appropriate.
1302 2000-03-11 Jim Meyering <meyering@lucent.com>
1304 * tests/date/Test.pm: Set the default TZ value to UTC0, not UTC.
1305 The latter didn't have any effect on alphaev56-dec-osf4.0f.
1307 Final merge with fileutils.
1308 * src/system.h: Use standard `#if TIME_WITH_SYS_TIME...' block
1309 rather than `#if TM_IN_SYS_TIME' one.
1311 2000-02-02 Bruno Haible <haible@clisp.cons.org>
1313 * printf.c: Include "unicodeio.h".
1314 (usage): Mention \u and \U directives. \x outputs a byte, not a
1316 (print_esc): Implement \u and \U.
1317 * Makefile.am (printf_LDADD): Add @LIBICONV@.
1319 2000-03-03 Jim Meyering <meyering@lucent.com>
1321 Make it so stty's rprnt attribute works on HPUX 10.20.
1322 * src/stty.c [CREPRINT && !CRPRNT] (CRPRNT): Define.
1323 (control_info): Recognize HPUX's CREPRINT.
1325 2000-03-02 Jim Meyering <meyering@lucent.com>
1327 * doc/sh-utils.texi (printf invocation): Describe new unicode syntax.
1330 Unify with fileutils/src/system.h.
1331 * src/system.h (ST_NBLOCKS): Sync with recent changes in fileutils.
1332 [!_POSIX_VERSION]: Remove declarations of getlogin, ttyname, geteuid.
1333 * src/sys2.h: Declare them here, if needed.
1335 2000-03-01 Jim Meyering <meyering@lucent.com>
1337 * Makefile.am (EXTRA_DIST): Include GNUmakefile.
1339 * src/seq.c (get_width_format): Fix portability problem with
1342 2000-02-22 Jim Meyering <meyering@lucent.com>
1344 * tests/date/Test.pm (datevtime-1): New test.
1347 2000-02-15 Jim Meyering <meyering@lucent.com>
1349 * man/Makefile.maint ($(man_MANS)): Remove $@-t1.
1351 2000-02-13 Jim Meyering <meyering@lucent.com>
1353 * tests/Fetish.pm (run_tests): Discard stderr.
1354 Reverse diff args, so `expected' is last, as in mk-script.
1356 2000-02-12 Jim Meyering <meyering@lucent.com>
1358 * tests/mk-script: Invoke `diff' when differences are found.
1359 * tests/Fetish.pm (run_tests): Likewise.
1361 2000-02-09 Jim Meyering <meyering@lucent.com>
1363 * src/su.c (correct_password): Correct HAVE_STRUCT_* name in #if guard
1364 to go along with corrected autoconf test: Reported by Gaël Quéri.
1366 2000-02-05 Jim Meyering <meyering@lucent.com>
1370 * src/who.c: Use UT_USER in place of hard-coded `->ut_name' here, too.
1371 * src/pinky.c: Likewise.
1372 Reported by Tom Tromey and Andreas Schwab.
1373 * src/uptime.c (print_uptime): Likewise.
1374 * src/users.c (list_entries_users): Likewise.
1376 2000-01-30 Jim Meyering <meyering@lucent.com>
1380 * src/su.c (correct_password): Guard with `HAVE_GETSPNAM &&
1381 HAVE_STRUCT_PASSWD_SP_PWDP', rather than just `#ifdef HAVE_SHADOW_H'.
1383 * po/POTFILES.in: Add lib/makepath.c, lib/obstack.c, lib/rpmatch.c,
1386 2000-01-29 Jim Meyering <meyering@lucent.com>
1388 * configure.in: Move library-related tests into m4/lib-check.m4.
1389 Remove lib-check for cposix now that we use m4/isc-posix.m4.
1391 * src/seq.c: Back out most of the 2000-01-21 and 01-22 changes.
1392 [Instead, merely give examples showing how to accomplish the same
1393 task with fewer limitations using existing tools. ]
1394 Suggestion from Bruno Haible.
1395 (valid_format): Rename from check_format.
1396 * tests/seq/basic: Remove associated tests and add two equal-width ones.
1398 * tests/stty/row-col-1: Set COLUMNS envvar, just to be safe.
1400 2000-01-28 Jim Meyering <meyering@lucent.com>
1402 * src/stty.c (wrapf): Emit a newline only if 0 < current_col.
1403 (screen_columns): Use xstrtol, not atoi.
1404 If get_win_size fails and $COLUMNS == 0, then return 80, not `0'.
1406 2000-01-23 Jim Meyering <meyering@lucent.com>
1408 * configure.in (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
1409 AC_SUBST these not here, but rather in m4/, so that the now-shared
1410 lib/Makefile.am are all the same.
1411 (AC_CHECK_FUNCS): Remove check for utmpname, since it's already
1413 Remove many function checks (moved to m4/.)
1415 * configure.in (AM_FUNC_STRTOD): Move to m4/.
1416 (AC_SUBST(POW_LIBM)): Likewise.
1418 * configure.in (SEQ_LIBM): Remove AC_SUBST of a constant.
1419 * src/Makefile.am (seq_LDADD): Add -lm rather than constant $(SEQ_LIBM).
1421 2000-01-22 Jim Meyering <meyering@lucent.com>
1423 * src/sys2.h [! HAVE_DECL_STRTOUL]: Declare strtoul.
1424 [! HAVE_DECL_STRTOULL]: Declare strtoull.
1425 Required for some AIX systems. Reported by Christian Krackowizer.
1427 * configure.in (ALL_LINGUAS): Add Slovenian (sl).
1428 (AC_CHECK_HEADERS): Move these checks into m4/.
1430 * src/seq.c (enum Format_type): Declare.
1431 (format_type): New global to take place of intconv.
1432 (format_str): Move global declaration...
1433 (main): ... to here.
1434 (check_format): Rename parameter to avoid shadowing global.
1435 (DO_printf): New macro.
1437 Topologically sort the functions and remove fwd declarations.
1439 2000-01-21 Bruno Haible <haible@linuix.math.u-bordeaux.fr>
1441 Add support for octal and hexadecimal output.
1442 * seq.c (intconv): New variable.
1444 (main): Call scan_arg instead of scan_double_arg. Call check_format
1446 (scan_int_arg, scan_arg): New functions.
1447 (check_format): Add intconv argument. Accept %d, %u, %o, %x, %X.
1448 (print_numbers): If intconv is true, pass an int argument to printf.
1450 2000-01-21 Jim Meyering <meyering@lucent.com>
1452 * configure.in (ALL_LINGUAS): Add Galician (gl).
1454 2000-01-16 Jim Meyering <meyering@lucent.com>
1456 * lib/Makefile.am: Sync with fileutils/lib/Makefile.am.
1458 * src/date.c (usage): Correct error in %V description.
1461 * configure.in: Remove jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
1462 AM_FUNC_GETLOADAVG, jm_SYS_PROC_UPTIME, AM_SYS_POSIX_TERMIOS,
1463 jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL.
1465 2000-01-15 Jim Meyering <meyering@lucent.com>
1467 * configure.in (AC_REPLACE_FUNCS): Remove gethostname, getusershell,
1468 memcpy, and memset. Now that's done in m4/.
1469 Remove these, too: stime strcspn stpcpy strstr strtol strtoul.
1471 2000-01-12 Jim Meyering <meyering@lucent.com>
1473 * configure.in: Remove the tests that are now in jm_PREREQ_CANON_HOST.
1475 2000-01-11 Jim Meyering <meyering@lucent.com>
1477 Sync lib/ directories of sh-utils, and textutils.
1479 * lib/Makefile.am (libfetish_a_SOURCES): Add diacrit.c, hard-locale.c,
1480 linebuffer.c, md5.c, memcasecmp.c, memcoll.c, obstack.c, safe-read.c
1481 (noinst_HEADERS): Add bumpalloc.h, diacrit.h, hard-locale.h,
1482 linebuffer.h, md5.h, memcasecmp.h, memcoll.h, obstack.h, safe-read.h.
1484 * lib/Makefile.am: s/su/fetish/
1485 * src/Makefile.am: s/libsu/libfetish/
1487 2000-01-10 Jim Meyering <meyering@lucent.com>
1491 * src/Makefile.am (sleep_LDADD): Add @POW_LIBM@, for systems that use
1492 lib/strtod.c and need -lm to resolve its pow reference.
1494 2000-01-07 Jim Meyering <meyering@ascend.com>
1498 * tests/basename/Makefile.am (TESTS_ENVIRONMENT): Add `pwd`/ prefix
1499 to exported PATH value (though not strictly necessary, here).
1500 * tests/factor/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1501 * tests/seq/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1502 * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Likewise.
1504 2000-01-06 Paul Eggert <eggert@set.twinsun.com>
1506 * tar/lib/getdate.y: Sync tm_diff with the GNU C Library.
1507 (TM_YEAR_BASE): Renamed from TM_YEAR_ORIGIN. All uses changed.
1508 (tm_diff): Renamed from difftm. All uses changed.
1509 Replace body with that taken from GNU C Library 2.1.3pre1.
1510 (get_date): Prefer tm_gmtoff to tm_diff if available.
1512 2000-01-05 Paul Eggert <eggert@twinsun.com>
1515 * src/sleep.c (clock_get_realtime): Return argument, for convenience.
1516 (main): Use this to simplify main sleep loop.
1518 2000-01-05 Jim Meyering <meyering@ascend.com>
1520 Some systems lack a definition of struct timespec (AIX, Ultrix)
1521 Reported by Christian Krackowizer.
1522 * lib/Makefile.am (noinst_HEADERS): Add nanosleep.h.
1523 * lib/nanosleep.h: New file.
1524 * lib/nanosleep.c: Include it.
1525 Don't include time.h or sys/time.h here.
1526 * src/sleep.c: Include it.
1527 (AUTHORS): Add Paul Eggert.
1529 2000-01-04 Jim Meyering <meyering@ascend.com>
1531 * lib/nanosleep.c: Include both time.h and sys/time.h only
1532 #if TIME_WITH_SYS_TIME.
1534 2000-01-03 Paul Eggert <eggert@twinsun.com>
1536 Fix some porting and rounding problems with the new `sleep' code.
1538 * configure.in (AC_CHECK_HEADERS): Add fenv.h.
1539 (FESETROUND_LIBM): New macro.
1541 * lib/xstrtod.c: Add #pragma STDC FENV_ACCESS ON if C99.
1542 * src/sleep.c: Likewise.
1544 * src/Makefile.am (sleep_LDADD, sleep_DEPENDENCIES): New macros.
1546 * src/sleep.c (<fenv.h>): Include if available.
1547 (main): Always round floating-point interval calculations upwards,
1548 as we must sleep for at least the specified time.
1549 Do the right thing with NaNs.
1551 (main): Sleep forever if the time calculations overflow.
1552 (apply_suffix): Don't assert that *s <= TIME_T_MAX.
1554 (clock_get_realtime): Fix typo; address was improperly taken.
1556 2000-01-02 Jim Meyering <meyering@ascend.com>
1560 * lib/Makefile.in: Regenerate.
1564 1999-12-26 Jim Meyering <meyering@ascend.com>
1566 * lib/nanosleep.c (nanosleep): New file.
1568 1999-12-23 Jim Meyering <meyering@ascend.com>
1570 * src/sleep.c (USE_CLOCK_GETTIME): Define.
1571 [USE_CLOCK_GETTIME]: Include sys/time.h.
1572 (timespec_subtract): New function.
1573 (clock_get_realtime): New function.
1574 (sighandler): Remove function.
1575 (main): Reimplement again, using nanosleep and clock_gettime.
1577 * configure.in: Remove check for gettimeofday.
1578 Now it's in m4/jm-macros.m4
1580 * man/Makefile.summ: Remove now-unused summaries.
1582 1999-12-22 Jim Meyering <meyering@ascend.com>
1584 * lib/getdate.y (get_date): Fix typo in time_t overflow test.
1587 * tests/date/Test.pm (regress-1): New test for the above.
1589 1999-12-18 Jim Meyering <meyering@ascend.com>
1591 * src/who.c (print_entry): Correct do_lookup test so that who
1592 prints whatever host information it has, even without --lookup.
1593 Reported by Bill Peters.
1595 1999-12-12 Jim Meyering <meyering@ascend.com>
1597 Move 120+ lines of stat.h-related macros from system.h (not shared)
1598 to sys2.h, which is shared between fileutils, sh-utils, textutils.
1599 * src/system.h: Move them from here...
1600 * src/sys2.h: ... to here.
1602 1999-11-27 Jim Meyering <meyering@ascend.com>
1604 Rewrite to allow fractional seconds and to handle SIGCONT.
1605 * src/sleep.c (main): Rewrite.
1606 (sighandler): New function.
1607 (apply_suffix): New function.
1608 (timeval_subtract): New function.
1609 Reported by Raul Miller.
1611 * src/sleep.c (argdecode): Move definition to precede use.
1613 (usage): Add elipses to show that sleep allows more than one argument.
1615 1999-11-22 Jim Meyering <meyering@ascend.com>
1617 * lib/Makefile.am (DISTCLEANFILES): Add lstat.c and stat.c.
1619 1999-11-09 Jim Meyering <meyering@ascend.com>
1621 * src/expr.c (NEW): Undefine to avoid warning about redefinition.
1622 (NEW): Redefine in terms of XMALLOC.
1624 * lib/xalloc.h (XMALLOC): Correct misnamed macro parameter name:
1626 (XCALLOC): Likewise.
1627 (XREALLOC): Likewise.
1629 1999-11-05 Jim Meyering <meyering@ascend.com>
1631 * src/system.h: Use HAVE_STRUCT_STAT_ST_BLOCKS, not deprecated
1634 * configure.in: Move some type/header/member tests into
1635 m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) so they are shared by all of
1636 fileutils, textutils, and sh-utils.
1638 1999-11-01 Jim Meyering <meyering@ascend.com>
1640 * lib/Makefile.am (MAINTAINERCLEANFILES): Set to $(BUILT_SOURCES).
1642 1999-10-07 Jim Meyering <meyering@ascend.com>
1644 * configure.in (ALL_LINGUAS): Add Japanese (ja).
1646 1999-10-04 Jim Meyering <meyering@ascend.com>
1648 * depcomp: New file, for automake's new dependency support.
1649 * missing: New version, from automake's user-dep-gen-branch.
1651 1999-09-28 Jim Meyering <meyering@ascend.com>
1653 * src/system.h: Update from the system.h from fileutils.
1654 Now they're finally almost identical...
1656 1999-09-09 Jim Meyering <meyering@ascend.com>
1658 * src/Makefile.am (EXTRAdir): Remove unused variable.
1659 (installed_su): Use `$(DESTDIR)$(bindir)' in place of $(bindir).
1660 (install-exec-local): Likewise.
1661 (.sh): Substitute `$(bindir)' rather than @bindir@.
1662 Based on a patch from Andreas Schwab.
1664 1999-09-08 Andreas Schwab <schwab@suse.de>
1666 * tests/nice: Instead of failing, exit with 77 if running niced.
1668 1999-09-08 Jim Meyering <meyering@ascend.com>
1670 * src/su.c: Remove declaration of xstrdup.
1672 1999-09-02 Jim Meyering <meyering@ascend.com>
1674 * src/expr.c: Remove xstrdup declaration.
1675 * src/date.c: Likewise.
1676 * src/pathchk.c: Likewise.
1677 * src/su.c: Likewise.
1679 1999-08-29 Jim Meyering <meyering@ascend.com>
1681 * tests/nice: Use `nice' instead of $nice.
1682 * tests/Makefile.am (TESTS_ENVIRONMENT): Prepend ../src to PATH so
1685 * src/env.c (main): Call exit explicitly to avoid warning from gcc.
1686 * src/nice.c (main): Likewise.
1687 Include "xstrtol.h".
1688 (isinteger): Remove function and prototype.
1689 (main): Use xstrtol in place of atoi. Remove associated FIXME comments.
1691 * configure.in (AC_YACC): Remove use, now that we require bison.
1693 * tests/date/Test.pm (test_vector): Add a test for the Risks-reported
1694 problem with syntax like this: Nov 11 1996.
1696 * lib/getdate.y (get_date): Rename outermost local `probe' to `quarter'.
1697 (get_date): Rename latter local `tm' to probe_tm.
1699 * lib/getdate.y (relative_time_table): Change `type' of `THIS' from
1700 tMINUTE_UNIT to tUNUMBER. From Urs Thuermann.
1701 * tests/date/Test.pm (test_vector): Add tests for use of `this'.
1703 1999-08-25 Jim Meyering <meyering@ascend.com>
1705 * man/Makefile.summ (seq-summary): Define.
1706 * man/Makefile.am (man_MANS): Add seq.1.
1707 Reported by Dirk-Jan Faber.
1709 1999-08-23 Jim Meyering <meyering@ascend.com>
1711 * src/pathchk.c (longopts): Restore accidentally-removed entry for
1712 `--portability' long option.
1713 * src/chroot.c (usage): Correct --help message.
1714 * src/hostid.c (usage): Likewise.
1715 * src/hostname.c (usage): Likewise.
1716 * src/logname.c (usage): Likewise.
1717 * src/nice.c (usage): Likewise.
1718 * src/printenv.c (usage): Likewise.
1719 * src/sleep.c (usage): Likewise.
1720 * src/stty.c (usage): Likewise.
1721 Reported by Daniel Bergstrom.
1723 1999-08-22 Jim Meyering <meyering@ascend.com>
1725 * src/sys2.h (ATTRIBUTE_NORETURN): Define.
1726 * src/test.c: Use ATTRIBUTE_NORETURN instead of NO_RETURN_ATTRIBUTE.
1727 (NO_RETURN_ATTRIBUTE): Remove definition.
1729 * src/su.c (run_shell): Declare with gcc's noreturn attribute.
1730 Use an explicit exit(1) rather than doing that through error.
1732 * src/sys2.h (IF_LINT): Define new macro.
1733 * src/date.c (batch_convert): Use IF_LINT macro instead of #ifdef lint.
1734 * src/pathchk.c (validate_path): Likewise.
1736 1999-08-21 Jim Meyering <meyering@ascend.com>
1738 * src/hostid.c (usage): Remove the ` [-v]' from the Usage: line.
1739 Reported by Daniel Bergstrom.
1741 1999-08-17 Jim Meyering <meyering@ascend.com>
1743 * tests/stty/input-tty: New file, containing code factored out of
1744 the two test scripts. Mention `at' and `batch' in addition to `rsh'.
1745 * tests/stty/basic-1: Source it.
1746 * tests/stty/row-col-1: Source it.
1747 * tests/stty/Makefile.am (EXTRA_DIST): Add input-tty.
1749 1999-08-14 Jim Meyering <meyering@ascend.com>
1753 * tests/stty/basic-1: Fail-77 if stdin is not a tty.
1754 * tests/stty/row-col-1: Likewise.
1755 Suggestion from Volker Borchert.
1757 1999-08-07 Jim Meyering <meyering@ascend.com>
1761 * Makefile.maint (po-check): New rule.
1764 * po/POTFILES.in: Add the following from lib/: argmatch.c, closeout.c,
1765 error.c, getopt.c, human.c, long-options.c, version-etc.c, xmalloc.c.
1766 Add these from src/: false.c, hostid.c, true.c.
1768 * lib/getdate.y (OtherTable[]): Use tDAY_UNIT for `tomorrow,'
1769 `yesterday,' `today,' and `now' rather than tMINUTE_UNIT. Of course
1770 with correspondingly smaller numbers for tomorrow and yesterday.
1771 This change does not change the way the code works, since the
1772 grammar rules for the two symbols are analogous.
1773 From Tadayoshi Funaba.
1775 1999-08-04 Jim Meyering <meyering@ascend.com>
1777 false and true once again generate --help and --version output
1778 * src/true.c: Honor --help and --version once again, bug ignore
1779 those options when POSIXLY_CORRECT is set.
1780 * src/false.c: Fail even for --help and --version.
1781 * src/Makefile.am (false.c): Generate automatically from true.c.
1782 (BUILT_SOURCES): Add false.c.
1783 * man/Makefile.am (EXTRA_DIST): Remove false.1in and true.1in.
1784 * man/Makefile.summ: Remove the rules added on 1999-07-31.
1785 * man/Makefile.maint: Likewise.
1786 * man/true.1in: Removed.
1787 * man/false.1in: Removed.
1789 * configure.in: Remove getline-testing code. Now it's in m4/.
1791 1999-08-01 Jim Meyering <meyering@ascend.com>
1793 * src/date.c (usage): Correct description of %S; (00..60, not 00..61).
1796 1999-08-01 Paul Eggert <eggert@twinsun.com>
1798 * configure.in (AC_SYS_LARGEFILE): Renamed from AC_LFS.
1800 1999-07-31 Jim Meyering <meyering@ascend.com>
1804 false and true are now C programs rather than shell scripts
1805 * src/true.c: New file.
1806 * src/false.c: New file.
1807 * src/true.sh: Removed.
1808 * src/false.sh: Removed.
1809 * src/Makefile.am (bin_PROGRAMS): Add true and false.
1810 (bin_SCRIPTS): Remove true and false.
1811 (EXTRA_DIST): Remove false.sh and true.sh.
1812 * man/true.1in: New file.
1813 * man/false.1in: New file.
1814 * man/Makefile.am (EXTRA_DIST): Remove extra (shadowed) assignment.
1815 (EXTRA_DIST): Add false.1in and true.1in.
1816 * man/Makefile.maint (helpful-men): Define.
1817 * man/Makefile.summ ($(helpless-men)): New manual-generating rules to
1818 accommodate the fact that false and true no longer accept --help.
1819 * doc/sh-utils.texi: Include a couple of sentences from the
1821 Prompted by Christi Alice Scarborough's truefalse package.
1823 1999-07-30 Jim Meyering <meyering@ascend.com>
1825 * configure.in (ALL_LINGUAS): Add Brazilian Portuguese (pt_BR).
1827 1999-07-26 Jim Meyering <meyering@ascend.com>
1829 * src/tee.c (tee): Convert from open/fds to using fopen/streams for
1830 output, in preparation for addition of new compression option.
1832 1999-07-21 Jim Meyering <meyering@ascend.com>
1834 * tests/stty/basic-1 (options): Avoid Solaris' broken /usr/ucb/tr by
1835 removing offending use of tr altogether and removing hyphens with sed.
1836 Reported by Kaveh Ghazi.
1838 1999-06-01 Volker Borchert <bt@teknon.de>
1840 * tests/Makefile.am: Make envvar-check depend on check-recursive rather
1841 than on `check' so that its tests are performed before any real tests.
1843 1999-07-15 Jim Meyering <meyering@ascend.com>
1845 * src/false.sh: Always exit unsuccessfully, even with
1846 --help and --version. Suggested by Felix Lee.
1848 1999-07-12 Jim Meyering <meyering@ascend.com>
1850 * src/sys2.h (mempcpy): Define only if not already defined.
1851 Reported by Collin Rogowski.
1853 1999-05-27 Volker Borchert <bt@teknon.de>
1855 * tests/Makefile.am: Qualify .env-warn with $(srcdir)/ prefix.
1857 1999-05-25 Jim Meyering <meyering@ascend.com>
1859 * tests/stty/basic-1: Fix non-portable use of `tr' that caused
1860 this test to fail when run with a SysV-style tr.
1861 Based on a patch from Kaveh Ghazi.
1863 1999-05-21 Jim Meyering <meyering@ascend.com>
1866 * configuration fixes: see m4/ChangeLog.
1868 1999-05-16 Jim Meyering <meyering@ascend.com>
1872 * configure.in (AC_SEARCH_LIBS): Set LIB_CRYPT to $ac_cv_search_crypt,
1873 to go along with the new macro in m4/search-libs.m4.
1875 1999-05-14 Jim Meyering <meyering@ascend.com>
1877 * lib/getugroups.c (getugroups): Don't dereference a null pointer when
1878 running `id USER' for some USER that is listed on the RHS in /etc/group.
1879 From Sander van Malssen.
1880 Add some curly braces, use STREQ, reverse the sense of a test
1881 and use `continue' to save a level of nesting.
1883 * tests/Makefile.am (envvar-check): Renamed from check-local.
1884 (check): Depend on envvar-check so the envvar check is performed
1885 before all other tests. Reported by Volker Borchert.
1886 * tests/.env-warn: Use `%%' place-holder that Makefile.am rule expects,
1887 so CDPATH is mentioned in the message. Reported by Volker Borchert.
1889 1999-05-10 Jim Meyering <meyering@ascend.com>
1891 * src/uptime.c (AUTHORS): add Kaveh.
1893 Expand each `&' character in the gecos field.
1894 * src/pinky.c (count_ampersands): New function.
1895 (create_fullname): New function.
1896 (print_entry): Use create_fullname here.
1897 (print_long_entry): Use it here, too.
1900 1999-05-09 Jim Meyering <meyering@ascend.com>
1902 * lib/regex.c: Update from libc.
1906 * configure.in: Clean up checks for libraries so that we don't add
1907 -lshadow unless necessary. Reported by Joseph S. Myers.
1909 1999-05-05 Jim Meyering <meyering@ascend.com>
1911 Add definitions to help read utmpx on systems with utmpname.
1912 * lib/readutmp.h (UTMP_NAME_FUNCTION): Define.
1913 (SET_UTMP_ENT): Likewise.
1914 (GET_UTMP_ENT): Likewise.
1915 (END_UTMP_ENT): Likewise.
1916 * lib/readutmp.c (read_utmp): Use the new definitions.
1919 * src/date.c (show_date): Change an automatic aggregate initializer
1920 to be a static one. For SunOS4's cc. From Kaveh Ghazi.
1922 1999-05-03 Jim Meyering <meyering@ascend.com>
1924 * configure.in: Remove duplicate use of jm_FUNC_GNU_STRFTIME.
1925 Kaveh Ghazi reported that strftime.o was listed twice in the command
1928 1999-05-02 Jim Meyering <meyering@ascend.com>
1932 * src/hostname.c (main): Give a better diagnostic when we fail to
1935 * man/Makefile.summ (hostid-summary): Use correct description.
1936 Reported by Joseph S. Myers.
1938 * lib/readutmp.c (read_utmp): Ignore the return value from utmpname.
1940 1999-04-30 Jim Meyering <meyering@ascend.com>
1942 * src/dirname.c (main): Manually handle `--', since we no longer
1943 call getopt. Reported by Joseph S. Myers.
1944 * src/basename.c (main): Likewise.
1945 * src/factor.c (main): Likewise.
1947 1999-04-25 Jim Meyering <meyering@ascend.com>
1949 * src/seq.c (main): Handle the case in which seq is given no args.
1950 Reported by John Gotts.
1951 (main): Revert last change.
1952 Instead, loop on `optind < argc' to protect use of argv[optind].
1954 * lib/human.c <inttypes.h>: Don't include it here.
1955 * lib/human.h <inttypes.h>: Include it here instead.
1956 <config.h>: Include it here too.
1957 Reported by Andreas Jaeger.
1959 * src/nice.c [NDEBUG]: Remove definition.
1960 Reported by Andreas Jaeger.
1962 1999-04-24 Jim Meyering <meyering@ascend.com>
1964 * src/who.c (print_entry): Use `#if', not `#ifdef HAVE_UT_HOST'.
1968 * configure.in: Use AC_CANONICAL_HOST.
1970 1999-04-20 Jim Meyering <meyering@ascend.com>
1972 Update factor to use `uintmax_t'.
1973 * src/factor.c <xstrtol.h>: Include this, not xstrtoul.h.
1975 Use uintmax_t in place of unsigned long.
1976 Use human_readable to convert to strings for printing.
1977 * lib/xstrtoumax.c: New file.
1978 * lib/human.c: New file.
1979 * lib/human.h: New file.
1980 * lib/Makefile.am (libsu_a_SOURCES): Add human.c and xstrtoumax.c.
1981 (noinst_HEADERS): Add human.h. Remove xstrtoul.h.
1983 1999-04-19 Jim Meyering <meyering@ascend.com>
1985 * src/seq.c (main): Restore `+' in getopt_long string. Otherwise,
1986 commands like `seq 10 -2 0' wouldn't work. From Andreas Schwab.
1987 * tests/seq/basic: Add tests for that.
1989 1999-04-17 Jim Meyering <meyering@ascend.com>
1991 * tests/seq: New directory and basic tests.
1992 * tests/Makefile.am (SUBDIRS): Add seq.
1993 * configure.in (AC_OUTPUT): Add tests/seq/Makefile.
1995 1999-04-17 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1997 * configure.in: Check for localeconv.
1999 * src/seq.c (decimal_point): New variable.
2000 (main): Set it to locale's decimal point. Fix recognition of
2001 negative number as argument.
2002 (get_width_format): Correctly handle a negative min_val or step
2003 when computing fraction width. Use decimal_point.
2005 1999-04-08 Jim Meyering <meyering@ascend.com>
2007 1999-03-25 James R. Van Zandt <jrv@vanzandt.mv.com>
2008 * doc/sh-utils.texi (Options for date): Document --iso-8601
2009 * src/date.c: Accept new option: --iso-8601.
2010 * lib/Makefile.am (libsu_a_SOURCES): Add argmatch.c and quotearg.c.
2011 (noinst_HEADERS): Add argmatch.h and quotearg.h.
2012 * lib/argmatch.c: New file.
2013 * lib/argmatch.h: New file.
2014 * lib/quotearg.c: New file.
2015 * lib/quotearg.h: New file.
2017 1999-03-30 Jim Meyering <meyering@ascend.com>
2019 * src/sys2.h: Include "closeout.h" and "version-etc.h"
2021 * src/*.c (PROGRAM_NAME, AUTHORS): Define and use.
2023 * src/date.c: No longer include long-options.h.
2024 [long_options]: Add entries for --help and --version.
2025 Remove parse_long_options call.
2026 (main) [getopt switch]: Add a case for each of --help and --version.
2027 * src/env.c: Likewise.
2028 * src/id.c: Likewise.
2029 * src/pinky.c: Likewise.
2030 * src/seq.c: Likewise.
2031 * src/su.c: Likewise.
2032 * src/sys2.h: Likewise.
2033 * src/tee.c: Likewise.
2034 * src/tty.c: Likewise.
2035 * src/uname.c: Likewise.
2036 * src/who.c: Likewise.
2038 1999-03-29 Jim Meyering <meyering@ascend.com>
2040 * configure.in (GNU_PACKAGE): Remove related code -- now it's in
2041 the catch-all for shared autoconf code, m4/jm-macros.m4.
2042 (jm_CHECK_ALL_TYPES): Remove explicit AC_TYPE_* macros and use
2045 1999-03-28 Jim Meyering <meyering@ascend.com>
2047 * src/test.c (PROGRAM_NAME): Rename from COMMAND_NAME.
2049 1999-03-28 Paul Eggert <eggert@twinsun.com>
2051 * lib/getdate.y (get_date): Reuse tm_isdst of first localtime
2052 call; this is an improvement on a bug fix suggested by
2053 martin@dresden.nacamar.de. Do not assume that localtime and
2054 gmtime return non-null.
2056 1999-03-27 Jim Meyering <meyering@ascend.com>
2058 * src/false.sh (usage): Change `[OPTION]...' to `[OPTION]' to show
2059 that only one of --help or --version is recognized at a time.
2060 Reported by Meelis Roos.
2061 * src/true.sh: Likewise.
2063 * src/id.c (print_user): Use uid_t instead of int.
2064 (print_group): Use gid_t instead of int.
2067 1999-03-26 Jim Meyering <meyering@ascend.com>
2069 * lib/Makefile.am (libfu_a_SOURCES): Add version-etc.c.
2070 (noinst_HEADERS): Add version-etc.h.
2072 1999-03-20 Jim Meyering <meyering@ascend.com>
2074 * src/nohup.sh: Don't modify PATH just to get GNU nice. Instead,
2075 try to find an absolute path for GNU nice. From Bruno Haible.
2077 1999-03-19 Jim Meyering <meyering@ascend.com>
2079 * configure.in: Use new macro, jm_WINSIZE_IN_PTEM, instead of
2082 1999-03-17 Jim Meyering <meyering@ascend.com>
2084 * configure.in (ALL_LINGUAS): Add Italian (it) and Slovak (sk).
2086 1999-03-13 Jim Meyering <meyering@ascend.com>
2088 * lib/basename.c (base_name): If NAME is all slashes, return `/' (in
2089 conformance with the single unix spec). Reported by Peter Moulder.
2091 1999-03-10 Jim Meyering <meyering@ascend.com>
2093 * src/uptime.c: Declare getloadavg so I can build with -Werror.
2095 * tests/stty/basic-1: Skip failing tests: parenb, -parenb, -cread.
2097 * lib/canon-host.c (canon_host): Don't use he->h_addr directly.
2098 Based on a patch from Savochkin Andrey Vladimirovich.
2100 1999-03-09 Jim Meyering <meyering@ascend.com>
2102 Running `id USER' doesn't report any groups if there is no entry
2103 for USER in /etc/group. Always include the one from /etc/passwd.
2104 * src/id.c (xgetgroups): Take new parameter, gid, and pass
2106 (print_group_list): Call getpwuid and adjust calls to xgetgroups
2107 to include new parameter.
2108 * lib/getugroups.c (getugroups): Take new parameter, gid.
2109 Add gid to the list of groups.
2110 From Ulrich Drepper.
2111 * lib/getgroups.c (getgroups): Protoize.
2113 1999-03-08 Jim Meyering <meyering@ascend.com>
2115 * tests/basename: New directory and tests.
2116 * tests/Makefile.am (SUBDIRS): Add basename.
2117 * configure.in (AC_OUTPUT): Add tests/basename/Makefile.
2119 1999-03-06 Jim Meyering <meyering@ascend.com>
2121 * src/date.c (batch_convert): Use a `%s' format in error call,
2122 in case the argument string contains a `%'.
2124 * man/Makefile.am (man_MANS): Add pinky.1.
2125 * man/Makefile.summ (pinky-summary): Define.
2127 * src/date.c: Include long-options.h.
2128 [long_options]: Remove the "help" and "version" entries.
2129 Remove declarations of show_help and show_version.
2130 (main): Use parse_long_options, including author name(s).
2131 Remove the show_version and show_help blocks.
2132 * src/env.c: Likewise.
2133 * src/id.c: Likewise.
2134 * src/logname.c: Likewise.
2135 * src/pathchk.c: Likewise.
2136 * src/pinky.c: Likewise.
2137 * src/printenv.c: Likewise.
2138 * src/seq.c: Likewise.
2139 * src/sleep.c: Likewise.
2140 * src/su.c: Likewise.
2141 * src/tee.c: Likewise.
2142 * src/tty.c: Likewise.
2143 * src/uname.c: Likewise.
2144 * src/uptime.c: Likewise.
2145 * src/users.c: Likewise.
2146 * src/who.c: Likewise.
2147 * src/whoami.c: Likewise.
2149 1999-03-04 Jim Meyering <meyering@ascend.com>
2151 * src/basename.c (main): Include author name argument in call to
2153 * src/chroot.c: Likewise.
2154 * src/dirname.c: Likewise.
2155 * src/echo.c: Likewise.
2156 * src/expr.c: Likewise.
2157 * src/factor.c: Likewise.
2158 * src/hostid.c: Likewise.
2159 * src/hostname.c: Likewise.
2160 * src/nice.c: Likewise.
2161 * src/printf.c: Likewise.
2162 * src/pwd.c: Likewise.
2163 * src/stty.c: Likewise.
2164 * src/test.c: Likewise.
2165 * src/yes.c: Likewise.
2167 1999-03-02 Jim Meyering <meyering@ascend.com>
2169 * lib/readutmp.c (read_utmp) [HAVE_UTMPNAME]: Rewrite.
2171 1999-02-15 Jim Meyering <meyering@ascend.com>
2173 * src/stty.c (main): #ifdef-out unreachable code.
2175 * src/pinky.c (usage): Add a one-line description.
2176 Suggestion from Karl Berry.
2178 1999-02-08 Jim Meyering <meyering@ascend.com>
2180 * configure.in (ALL_LINGUAS): Add Czech (cs).
2182 1999-02-07 Jim Meyering <meyering@ascend.com>
2184 * tests/stty/basic-1: Run all tests even if some fail.
2187 * tests/stty/basic-1: Use `stty', not $STTY.
2188 Fix typo in VERBOSE code: s/\$RM/stty/.
2189 * tests/stty/row-col-1: Likewise.
2191 * tests/stty/Makefile.am (TESTS_ENVIRONMENT): Set PATH, not STTY.
2193 Include stdio.h before defining `_unlocked' macros.
2194 * src/pinky.c: Include stdio.h.
2195 * src/uptime.c: Likewise.
2196 * src/users.c: Likewise.
2197 * src/who.c: Likewise.
2198 * lib/readutmp.c: Include stdio.h here...
2199 * lib/readutmp.h: ...not here.
2200 From Ulrich Drepper.
2204 * Makefile.maint (my-distcheck): Don't depend on dist, now that this
2205 is hooked up to the distcheck rule.
2206 * Makefile.am (distcheck-hook): New target and rule -- link to shared
2207 rule, my-distcheck, in Makefile.maint.
2209 * configure.in (jm_FUNC_GETGROUPS): Move the test into a new file,
2210 group-member.m4, and just use this new macro.
2212 1999-01-31 Jim Meyering <meyering@ascend.com>
2214 * doc/sh-utils.texi: Wrap the @top node in @ifnottex instead of
2215 @ifinfo so `makeinfo --html ...' works. From Karl Berry.
2217 * src/chroot.c (main): Call chdir ("/") after chroot.
2218 Suggestion from James Youngman.
2220 * src/uptime.c (print_uptime): Use the C numeric locale for sscanf
2221 of /proc/uptime data, then restore.
2222 * lib/getloadavg.c: Include locale.h.
2223 [!HAVE_SETLOCALE]: Define-away setlocale.
2224 (getloadavg): Ensure the sscanf of /proc/getloadavg data uses the
2225 `C' numeric locale. Restore afterwards.
2226 Based on a suggestion from Thomas Quinot.
2228 * lib/strtod.c: Protoize.
2230 1999-01-30 Jim Meyering <meyering@ascend.com>
2232 * acconfig.h: Remove lots of now-unnecessary #undefs.
2234 * configure.in: Require autoconf 2.13.
2236 * doc/Makefile.am (DISTCLEANFILES): Arrange to remove sh-utils.fl.
2238 * configure.in (ALL_LINGUAS): Add Greek (el).
2239 * po/el.po: New file.
2241 1999-01-25 Jim Meyering <meyering@ascend.com>
2243 * src/date.c (usage): Remove static attribute.
2244 Move function be the first in the file.
2245 * src/env.c: Likewise.
2246 * src/id.c: Likewise.
2247 * src/nice.c: Likewise.
2248 * src/pathchk.c: Likewise.
2249 * src/tty.c: Likewise.
2250 * src/uname.c: Likewise.
2252 * src/*.c (usage): Remove static attribute.
2254 1999-01-14 Jim Meyering <meyering@ascend.com>
2256 * src/date.c: Include closeout.h.
2257 (main): Use close_stdout_status.
2258 * src/printenv.c: Likewise.
2259 * src/tty.c: Likewise.
2261 * src/hostid.c: Include closeout.h.
2262 (main): Use close_stdout.
2263 * src/tee.c: Likewise.
2265 1999-01-10 Jim Meyering <meyering@ascend.com>
2267 * src/Makefile.am (pinky_LDADD, pinky_DEPENDENCIES, who_LDADD,
2268 who_DEPENDENCIES): Remove definitions.
2270 * lib/Makefile.am (BUILT_SOURCES): Add lstat.c and stat.c.
2271 (lstat.c, stat.c): New rules.
2273 * lib/canon-host.c (main) [TEST_CANON_HOST]: Add a simple test driver.
2275 * configure.in: Require autoconf-2.13.
2276 Use new AC_SEARCH_LIBS to see if we need nsl or inet libraries
2277 to resolve gethostbyname.
2279 1998-12-22 Jim Meyering <meyering@ascend.com>
2281 * configure.in (ALL_LINGUAS): Add chinese (zh).
2283 1998-12-13 Jim Meyering <meyering@ascend.com>
2285 * lib/putenv.c: Don't include stdlib.h and declare malloc and free.
2286 This works around Solaris 5.7's conflicting prototype.
2287 Reported by Karl Berry.
2289 * lib/Makefile.am (lstat.c): Add rule to generate this from xstat.in.
2291 (EXTRA_DIST): Add xstat.in.
2292 * lib/stat.c: Remove file.
2293 * lib/lstat.c: Remove file.
2294 * lib/xstat.in (xstat@): New file.
2296 1998-12-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2298 * src/date.c (main): Arrange to exit unsuccessfully when stime fails.
2300 1998-12-07 Jim Meyering <meyering@ascend.com>
2302 * configure.in (ALL_LINGUAS): Add Russian (ru).
2304 1998-10-31 Jim Meyering <meyering@ascend.com>
2306 * tests/Makefile.am (EXTRA_DIST): Add Fetish.pm.
2307 * tests/Fetish.pm: New file.
2309 * tests/factor/Makefile.am: Rewrite to use new testing framework.
2310 * tests/factor/Test.pm: Remove file.
2311 * tests/factor/factor-tests: Remove file.
2312 * tests/factor/basic: New file (rewrite of Test.pm).
2314 * acconfig.h (stat): New #undef.
2316 1998-10-03 Jim Meyering <meyering@ascend.com>
2318 * man/Makefile.am: Switch to using help2man.
2319 (EXTRA_DIST): Add Makefile.summ.
2321 * man/help2man: Invoke program with --manhelp option only if
2322 --name=STRING not specified. Otherwise, this would fail with `yes'.
2323 * man/Makefile.summ: New file.
2324 * man/Makefile.maint: Include it.
2325 * man/help2man: New file.
2326 * man/GNUmakefile: New file.
2327 * man/Makefile.maint: New file.
2328 * man/*.x: New files.
2329 * man/*.1: Remove files.
2331 * src/Makefile.am (install-exec-local): Change comments to use `##'
2332 to avoid automake warning.
2334 * lib/Makefile.am (noinst_HEADERS): s/posixtm.c/posixtm.h/
2335 (libsu_a_SOURCES): s/posixtm.y/posixtm.y/
2336 (libsu_a_SOURCES): Remove getdate.c. Add fnmatch.h.
2338 * src/date.c (main): Update to use new version of posixtime.
2339 * lib/posixtm.c: New file.
2340 * lib/posixtm.h: New file.
2341 * lib/posixtm.y: Remove file.
2343 * lib/fnmatch.c: New file. (unused)
2344 * lib/fnmatch.h: New file. (unused)
2346 1998-09-27 Jim Meyering <meyering@ascend.com>
2348 * src/seq.c (main): Decrement optind when we find an `option' that
2349 looks like -N. Reported by Clark Morgan.
2351 1998-09-26 Jim Meyering <meyering@ascend.com>
2353 * lib/xstrtol.c (__xstrtol) [STRING_TO_UNSIGNED]: Return
2354 LONGINT_INVALID for strings that begin with `-'.
2356 * tests/factor/Test.pm: Add a test for negative argument.
2357 Tweak postprocessing framework.
2359 1998-09-19 Jim Meyering <meyering@ascend.com>
2361 * src/stty.c (main): Revamp option processing, again.
2362 stty couldn't parse some of its options.
2363 * tests/stty/basic-1: New test.
2364 * tests/stty/Makefile.am (TESTS): Add basic-1.
2366 1998-08-29 Jim Meyering <meyering@ascend.com>
2368 * src/su.c (longopts): Use corresponding short-option character
2369 in place of `1', and `NULL' in place of pointer in initialization.
2371 1998-08-11 Jim Meyering <meyering@ascend.com>
2373 * src/uptime.c (usage): Correct description. Reported by John Murphy.
2375 1998-07-16 Jim Meyering <meyering@ascend.com>
2377 * lib/Makefile.am (noinst_HEADERS): Add lchown.h.
2378 * lib/lchown.h: New file, just to define ENOSYS on systems that lack it.
2379 * lib/lchown.c: Include lchown.h.
2381 1998-07-15 Jim Meyering <meyering@ascend.com>
2383 * src/seq.c (check_format): Add `5' to the list of digits.
2384 Reported by Donni Erpel.
2386 1998-07-12 Jim Meyering <meyering@ascend.com>
2388 * tests/test: New directory and tests.
2389 * tests/Makefile.am (SUBDIRS): Add test.
2390 * configure.in (AC_OUTPUT): Add tests/test/Makefile.
2392 1998-07-04 Jim Meyering <meyering@ascend.com>
2394 * lib/Makefile.am (libsu_a_SOURCES): Remove regex.c, now that it's
2395 automatically discovered by automake.
2396 (noinst_HEADERS): Remove unused safe-read.h.
2398 * src/Makefile.am (CLEANFILES): Put $(SCRIPTS) here rather than in
2400 (CLEANFILES): Add su, since we build it unconditionally, yet it's
2401 never put in @OPTIONAL_BIN_PROGS@.
2403 1998-06-29 Jim Meyering <meyering@ascend.com>
2405 * src/uptime.c: Include system.h only after error.h and readutmp.h
2406 so we don't get redefinition warnings about getc, etc.
2407 * src/who.c: Likewise.
2408 * src/users.c: Likewise.
2410 1998-06-28 Jim Meyering <meyering@ascend.com>
2412 * src/sys2.h: Add macro definitions for GNU libc *_unlocked wrappers.
2414 1998-06-06 Jim Meyering <meyering@ascend.com>
2416 * src/test.c (unary_operator): Fail if the operand to -t is not valid.
2417 (posixtest): Treat `test -t' the same as `test -t 1'.
2419 1998-05-26 Jim Meyering <meyering@ascend.com>
2421 * src/test.c (two_arguments): Don't test argv[pos][2] if it's
2424 1998-05-25 Jim Meyering <meyering@ascend.com>
2426 * configure.in (_GNU_SOURCE): AC_DEFINE it here.
2427 * acconfig.h (_GNU_SOURCE): Remove definition from @TOP@ section.
2428 [!_GNU_SOURCE]: Add #undef instead.
2430 1998-05-16 Jim Meyering <meyering@ascend.com>
2432 * lib/readutmp.c (read_utmp): Add variant for systems that have
2433 the utmpname function.
2435 * configure.in: Check for utmpname.
2437 * configure.in (jm_MACROS): New wrapper macro.
2438 Remove uses of most jm_* macros.
2440 * acconfig.h (chown): Add undef.
2441 (D_INO_IN_DIRENT): Likewise.
2442 (D_TYPE_IN_DIRENT): Likewise.
2443 (ssize_t): Likewise.
2445 * lib/Makefile.am (EXTRA_DIST): Remove. Automake groks the `LIBOBJS='
2446 lines from the m4/*.m4 macros, so the hack of including some
2447 custom-replaced C source file names here is no longer needed.
2449 1998-05-03 Jim Meyering <meyering@ascend.com>
2451 * po/: Update from gettext-0.10.35.
2453 * configure.in: Remove use of AC_LINK_FILES.
2454 (AC_OUTPUT): Remove po/Makefile-generating sed command.
2456 1998-05-02 Jim Meyering <meyering@ascend.com>
2458 * src/seq.c (check_format): Use ISDIGIT, not isdigit.
2460 1998-04-26 Jim Meyering <meyering@ascend.com>
2462 * configure.in: Use jm_ASSERT.
2463 * acconfig.h: Add NDEBUG.
2465 1998-04-13 Jim Meyering <meyering@eng.ascend.com>
2467 * lib/Makefile.am (noinst_HEADERS): Add safe-read.h.
2469 1998-04-09 Jim Meyering <meyering@ascend.com>
2471 * configure.in (AM_MAINTAINER_MODE): Remove it.
2472 No longer use AC_PATH_PROG to check for perl.
2473 (jm_PERL): Use this instead.
2475 1998-04-04 Jim Meyering <meyering@ascend.com>
2477 * lib/readutmp.h (PARAMS): Define.
2479 * tests/Makefile.am (SUBDIRS): Add stty.
2480 * tests/stty/row-col-1: New file.
2481 * tests/stty: New directory.
2482 * configure.in (AC_OUTPUT): Add tests/stty/Makefile.
2484 * src/stty.c: Use STREQ in place of strcmp everywhere.
2485 (valid_options): Indent.
2486 Parenthesize assignment in while expr.
2487 (main): s/case 'f':/case 'F':/
2488 Tweak error messages to make them consistent.
2489 Remove #if-0'd block.
2490 Move dcl of `fdflags' into scope where it's used.
2491 Remove dcl of unused `cp'.
2492 Use "%s", not device_name, as the format string, in case the
2493 latter contains `%'.
2495 [1998-03-31 Theodore Ts'o <tytso@rsts-11.mit.edu>]
2496 * src/stty.c (valid_options): New function.
2497 (main): Fix broken options parsing that worked only
2498 by serendipity (getopt_long_only already parsed short options; no
2499 need to parse them again manually!). Add support for the --file
2500 option, which allows the user to specify the device whose line
2501 settings are to be set. This is necessary because POSIX ttys will
2502 block waiting for carrier detect to go high if CLOCAL is not set,
2503 unless the device is opened with the O_NONBLOCK flag.
2504 Unfortunately, the shell doesn't use this flag, so users lose.
2505 Opening the device in stty is the easist way to fix this.
2506 (speeds): Add support for 230400 and 460800 line speeds, which are
2509 * acconfig.h (uintmax_t): Add #undef.
2511 * configure.in (jm_AC_HEADER_INTTYPES_H): Use it.
2512 (jm_AC_TYPE_UINTMAX_T): Use it.
2513 (jm_PREREQ): Use it.
2515 * src/system.h: Sync with system.c from fileutils.
2517 * Makefile.am (ACLOCAL_AMFLAGS): Define this, so automake/aclocal
2518 know about the m4/ subdirectory.
2519 * Makefile.maint (aclocal-files): Remove now-unnecessary (with
2520 automake-1.2h and the above change) aclocal-related rules and includes.
2522 1998-04-03 Jim Meyering <meyering@eng.ascend.com>
2524 * lib/closeout.c: New file.
2525 * lib/closeout.h: New file.
2526 * lib/Makefile.am (libsu_a_SOURCES): Add closeout.c.
2527 (noinst_HEADERS): Add closeout.h.
2529 1998-03-27 Jim Meyering <meyering@eng.ascend.com>
2531 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.2h.
2533 1998-03-26 Jim Meyering <meyering@eng.ascend.com>
2535 * src/date.c (batch_convert): Remove spurious space in error message.
2536 Reported by Karl Berry.
2538 1998-03-13 Jim Meyering <meyering@eng.ascend.com>
2540 * lib/getugroups.c (getugroups): Don't add a group number if it
2541 would be a duplicate. From Ulrich Drepper.
2543 1998-02-22 Jim Meyering <meyering@eng.ascend.com>
2545 * tests/Makefile.am (EXTRA_DIST): Add mk-script.
2546 * tests/Makefile.am.in (EXTRA_DIST): Remove mk-script.pl.
2547 (mk_script): Set to ../mk-script.
2548 (x-tests): Use `$(PERL) -w -- $(mk_script)', not ./mk-script.
2549 Remove @MAINT@ cruft.
2550 (Makefile.am): Likewise.
2551 Remove @MAINT@ cruft. Now `missing' will explain the failure
2552 when people don't have Perl yet modify a file whose rebuilding
2553 would lead to the use of Perl.
2555 * src/Makefile.am (pinky_LDADD): Explicitly add @GETHOSTBYNAME_LIB@.
2556 (who_LDADD): Likewise.
2557 (pinky_DEPENDENCIES): Set to $(LDADD)
2558 (who_DEPENDENCIES): Likewise.
2560 1998-02-20 Jim Meyering <meyering@eng.ascend.com>
2562 * lib/getdate.h: Removed. Could cause confusion with an
2563 automake-generated `.y.h' rule.
2564 * lib/get-date.h: Renamed from getdate.h.
2565 * lib/getdate.y: s/getdate.h/get-date.h/
2566 * lib/Makefile.am (noinst_HEADERS): s/getdate.h/get-date.h/
2567 * src/date.c: s/getdate.h/get-date.h/
2569 1998-02-16 Jim Meyering <meyering@eng.ascend.com>
2571 * configure.in (jm_FUNC_LSTAT): Use it.
2572 (jm_FUNC_STAT): Use it.
2573 * acconfig.h: Add lstat.
2574 * lib/Makefile.am (EXTRA_DIST): Add lstat.c and stat.c.
2576 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
2578 * tests/nice: Fail immediately if this test is run with `nice'
2579 level different from zero. Reported by Philippe De Muyter.
2581 1998-02-03 Philippe De Muyter <phdm@macqel.be>
2583 * src/id.c (xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
2585 * lib/putenv.c (sys/types.h): Include to get size_t on some systems.
2586 (NULL): Define if needed.
2588 1998-01-31 Jim Meyering <meyering@na-net.ornl.gov>
2590 * configure.in (AC_LFS): Use it.
2592 1998-01-25 Jim Meyering <meyering@na-net.ornl.gov>
2594 * Makefile.maint: New file.
2595 * Makefile.am: Move rules common to textutils, fileutils, sh-utils
2596 into Makefile.maint.
2597 Include Makefile.maint.
2598 (EXTRA_DIST): Add Makefile.maint.
2600 1998-01-03 Jim Meyering <meyering@na-net.ornl.gov>
2602 * lib/Makefile.am (AUTOMAKE_OPTIONS): Define to ../src/ansi2knr.
2604 * configure.in: Convert the .o suffix on files in LIBOBJS to $U.o so
2605 those files will be built via the ANSI2KNR-filtering rules if necessary.
2607 1997-12-25 Jim Meyering <meyering@na-net.ornl.gov>
2609 * configure.in: Remove AC_DEFINE of _GNU_SOURCE.
2610 * acconfig.h (_GNU_SOURCE): Define if not already defined.
2611 Put this code in @TOP@ section.
2612 (_GNU_SOURCE): Remove #undef.
2614 1997-12-22 Jim Meyering <meyering@na-net.ornl.gov>
2616 * configure.in: AC_DEFINE _GNU_SOURCE.
2617 * acconfig.h: Add _GNU_SOURCE.
2619 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
2621 * src/date.c: s/__P/PARAMS/
2622 * src/env.c: Likewise.
2623 * src/expr.c: Likewise.
2624 * src/id.c: Likewise.
2625 * src/nice.c: Likewise.
2626 * src/pathchk.c: Likewise.
2627 * src/seq.c: Likewise.
2628 * src/sleep.c: Likewise.
2629 * src/stty.c: Likewise.
2630 * src/tee.c: Likewise.
2631 * src/test.c: Likewise.
2632 * src/tty.c: Likewise.
2633 * src/uname.c: Likewise.
2635 * src/system.h: Merge in several things from fileutils' version of
2638 * src/factor.c: Don't include limits.h.
2639 (UINT_MAX): Don't define.
2640 (INT_MAX): Don't define.
2641 These are all done in system.h now.
2642 * src/hostname.c: Don't include limits.h.
2643 * src/id.c: Don't include limits.h or sys/param.h.
2644 * src/pathchk.c: Don't include limits.h.
2645 * src/su.c: Likewise.
2647 1997-12-10 Jim Meyering <meyering@na-net.ornl.gov>
2649 * src/su.c (main): Make sure pw->pw_shell is non-NULL before trying
2651 Patch from Dick Streefland.
2653 1997-11-17 Paul Eggert <eggert@twinsun.com>
2655 * lib/mktime.c, lib/strftime.c (_REENTRANT): #define,
2656 as some hosts need this to declare localtime_r properly.
2658 1997-11-15 Jim Meyering <meyering@na-net.ornl.gov>
2660 * intl/Makefile.in (distclean): Don't remove libintl.h here.
2661 * Makefile.am (DISTCLEANFILES): Remove it here instead.
2663 * m4/Makefile.am (EXTRA_DIST): Add mktime.m4.
2664 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not the one from automake.
2666 * m4/strftime.m4: Check for %F format.
2668 1997-11-14 Jim Meyering <meyering@na-net.ornl.gov>
2670 * m4/mktime.m4: Temporarily add a copy of this file from the automake
2672 (jm_AM_FUNC_MKTIME): Renamed from AM_FUNC_MKTIME.
2673 (irix_6_4_bug): New function based on code from Ariel Faigon.
2674 (bigtime_test): New function from Paul Eggert to detect SunOS4.1.4's
2675 infinite looping mktime.
2676 Portability tweaks from Paul Eggert.
2678 1997-11-13 Jim Meyering <meyering@na-net.ornl.gov>
2680 * lib/mktime.c: Update from FSF.
2681 * lib/strftime.c: Update from FSF.
2682 * m4/strftime.m4: Check for POSIX.2's %f format spec.
2684 1997-11-12 Jim Meyering <meyering@na-net.ornl.gov>
2686 * configure.in (AC_CHECK_FUNCS): Add mempcpy.
2687 * src/system.h [!HAVE_MEMPCPY] (mempcpy): Define.
2688 * src/date.c (batch_convert): Use mempcpy rather than stpcpy.
2690 1997-11-09 Jim Meyering <meyering@na-net.ornl.gov>
2692 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Check for localtime_r.
2693 * m4/strftime.m4 (jm_STRFTIME_PREREQS): Check for localtime_r.
2694 (jm_FUNC_GNU_STRFTIME): Use new macro.
2695 (jm_FUNC_STRFTIME): New macro. Likewise.
2696 Reported by Noel Cragg.
2698 1997-11-02 Jim Meyering <meyering@na-net.ornl.gov>
2700 * acconfig.h: Add malloc and realloc.
2702 1997-10-25 Jim Meyering <meyering@na-net.ornl.gov>
2704 * lib/xmalloc.c (xalloc_fail): Renamed from fixup_null_alloc.
2705 (xcalloc): #ifdef-out unused function.
2706 (xrealloc): Remove code to work around deficient versions of realloc.
2707 Now we have an autoconf-enabled replacement version.
2708 (xmalloc): Remove code to work around deficient versions of malloc.
2709 Now we have an autoconf-enabled replacement version.
2711 * configure.in (jm_FUNC_MALLOC): Use it.
2712 (jm_FUNC_REALLOC): Use it.
2713 * lib/Makefile.am (noinst_HEADERS): Add xalloc.h.
2714 (EXTRA_DIST): Add realloc.c.
2715 (EXTRA_DIST): Add malloc.c.
2717 * lib/malloc.c: New file.
2718 * m4/malloc.m4: New file.
2719 * m4/Makefile.am (EXTRA_DIST): Add malloc.m4.
2721 * lib/xalloc.h: New file.
2722 * lib/xmalloc.c: Updated from textutils.
2724 * src/*.c: Remove old-style xmalloc and xrealloc decls.
2725 * src/system.h: Include xalloc.h.
2726 Remove dcls of xmalloc, xcalloc and xrealloc.
2728 1997-10-23 Jim Meyering <meyering@na-net.ornl.gov>
2730 * Makefile.am (aclocal-files): Also depend on m4/Makefile.am.
2732 * src/system.h [!HAVE_DECLARATION_FREE]: Declare free.
2733 [!HAVE_DECLARATION_MALLOC]: Declare malloc.
2734 [!HAVE_DECLARATION_REALLOC]: Declare realloc.
2735 [!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
2736 [!HAVE_DECLARATION_STRSTR]: Declare strstr.
2738 * src/date.c: Remove stpcpy decl.
2739 * src/expr.c: Remove strstr decl.
2740 * src/test.c [STREQ]: Undef then redefine.
2741 On some systems, strstr and stpcpy are macros, so declaring them
2742 unconditionally gets syntax errors.
2743 Reported by Mark M. Kettenis.
2745 * configure.in: Use jm_CHECK_DECLS.
2746 * m4/Makefile.am (EXTRA_DIST): Add decl.m4 and check-decl.m4.
2748 1997-10-22 Jim Meyering <meyering@na-net.ornl.gov>
2750 * m4/decl.m4: New file.
2751 * m4/check-decl.m4: New file. New macro, jm_CHECK_DECLS.
2753 1997-10-07 Jim Meyering <meyering@na-net.ornl.gov>
2755 * src/*.c: Update bug-reporting address.
2756 * src/*.sh: Update bug-reporting address.
2758 1997-10-02 Jim Meyering <meyering@na-net.ornl.gov>
2760 * tests/date/Test.pm (test_vector): Remove _%Z from test `9'.
2761 The timezone string was too system dependent.
2763 1997-09-25 Jim Meyering <meyering@na-net.ornl.gov>
2765 * src/echo.c: Make echo conform to POSIX. By default, don't
2766 interpret backslash escape sequences.
2767 [V9_DEFAULT]: Don't #define.
2768 (usage): Document -e option.
2769 (main): Recognize options iff POSIXLY_CORRECT is not set.
2772 1997-09-19 Jim Meyering <meyering@na-net.ornl.gov>
2774 * lib/getusershell.c (IN_CTYPE_DOMAIN): Define.
2776 (readname): Use ISSPACE, not isspace.
2777 * lib/strtod.c (IN_CTYPE_DOMAIN): Define.
2781 Use upper-case versions of ctype macros.
2782 * lib/strtol.c (IN_CTYPE_DOMAIN): Define.
2783 (ISSPACE): Guard with IN_CTYPE_DOMAIN.
2784 (ISDIGIT): Guard with IN_CTYPE_DOMAIN.
2785 (TOUPPER): Guard with IN_CTYPE_DOMAIN.
2788 1997-09-17 Jim Meyering <meyering@na-net.ornl.gov>
2790 * src/yes.c (main): Call parse_long_options only if POSIXLY_CORRECT
2791 is *not* set. Reported by Frank T Lofaro.
2793 * src/hostid.c: New file.
2794 * src/Makefile.am (EXTRA_PROGRAMS): Add hostid.
2795 * configure.in (OPTIONAL_BIN_PROGS): Check for gethostid,
2796 and if found add hostid to the list.
2797 * man/hostid.1: New file.
2798 * man/Makefile.am (man_MANS): Add hostid.1.
2800 1997-08-31 Jim Meyering <meyering@na-net.ornl.gov>
2802 * src/who.c (main): New option --lookup (-l).
2803 (print_entry): Only call canon_host if user explicitly asks for it.
2804 (usage): Describe --lookup.
2805 From Galen Hazelwood.
2807 * configure.in (ALL_LINGUAS): Add Spanish (es).
2809 1997-08-02 Jim Meyering <meyering@na-net.ornl.gov>
2811 * src/Makefile.am (bin_PROGRAMS): Add pinky.
2813 * src/pinky.c: New file. From Kaveh Ghazi.
2814 * po/POTFILES.in: Add pinky.c.
2816 1997-07-19 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
2818 * src/date.c (show_date): Don't hang if strftime produces an empty
2821 1997-07-16 Jim Meyering <meyering@na-net.ornl.gov>
2823 * src/groups.sh: Exit with status from subsidiary `id' command.
2824 Don't print `$name : $groups' if id fails.
2825 Reported by Austin Donnelly.
2827 1997-07-15 Jim Meyering <meyering@na-net.ornl.gov>
2829 * lib/getloadavg.c: Merge in changes from FSF.
2831 1997-07-13 Jim Meyering <meyering@na-net.ornl.gov>
2833 * doc/Makefile.am (EXTRA_DIST): Remove explicit mention of texinfo.texi.
2834 Now, automake includes it automatically.
2836 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
2838 * po/Makefile.in.in (DISTFILES): Remove ChangeLog.
2839 * po/POTFILES.in: Add who.c, users.c, uptime.c.
2842 * src/who.c: Rename lots of `this' locals.
2843 Make some parameters `const'.
2844 (who): Update read_utmp caller.
2845 (search_entries): Take additional param: utmp_buf.
2846 Update read_utmp caller.
2847 (who_am_i): Update read_utmp caller.
2849 * src/users.c (users): Update read_utmp caller.
2850 * src/uptime.c (uptime): Update read_utmp caller.
2852 * lib/readutmp.h (PARAMS): Update prototype.
2853 (utmp_contents): Remove dcl.
2855 * lib/readutmp.c (read_utmp): Take new params: count and buffer.
2856 Return boolean indicating failure.
2857 Now, caller must give diagnostic upon failure.
2859 1997-07-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2861 * lib/readutmp.c, lib/readutmp.h: New files implementing shared
2862 functionality from src/who-users.c.
2864 * lib/Makefile.am (libsu_a_SOURCES): Add readutmp.c.
2865 (noinst_HEADERS): Add readutmp.h.
2867 * src/who.c, src/users.c, src/uptime.c: Split these so they no
2868 longer derive from the template source file who-users.c. Use
2869 shared functionality from lib/readutmp.c instead.
2871 * src/Makefile.am: Remove rules to build who.c, users.c and
2872 uptime.c from template source file who-users.c. Handle these
2873 files as stand-alone sources.
2875 * src/who-users.c: Remove file. It is no longer used.
2877 1997-07-12 Jim Meyering <meyering@na-net.ornl.gov>
2879 * src/date.c (MAYBE_SET_TZ_UTC0): New macro.
2880 (set_tz): New function.
2881 (batch_convert): If necessary, save the initial value of TZ and
2882 for each date in the file, restore it before each call to get_date,
2883 then set it to UTC0 before each show_date call.
2884 (main): Don't set TZ before calling get_date.
2885 Set TZ after get_date call and before show_date call.
2886 Reported by Matthew Braun.
2887 * tests/date/Test.pm: Add new tests for this bug.
2888 Add tests based on new examples in documentation.
2890 * stpcpy.c: New file.
2891 * configure.in (AC_REPLACE_FUNCS): Add stpcpy.c
2893 1997-07-05 Jim Meyering <meyering@na-net.ornl.gov>
2895 * src/Makefile.am (EXTRA_PROGRAMS): Add su here.
2896 (bin_PROGRAMS): Remove su here.
2897 (install-exec-local): Rewrite rule so that su is installed only if
2898 it can be made setuid root. Before it was always installed and then
2899 removed if it could *not* be made setuid root. That had the potential
2900 undesirable side effect of removing (and not replacing) a working
2902 (all_local): New target. Dependend on su. Required now that su is
2903 no longer in bin_PROGRAMS.
2904 (uninstall-local): Remove su only if it comes from the GNU sh-utils.
2906 * src/su.c: Redefine/undef getusershell around inclusion of <unistd.h>
2907 (via system.h) so Cray's int-returning prototype doesn't conflict
2908 with our char*-returning one. Reported by Johan Danielsson.
2910 1997-07-04 Jim Meyering <meyering@na-net.ornl.gov>
2912 * tests/Makefile.am.in (Makefile.am): Clean up and enable rule to
2913 generate tests/*/Makefile.am.
2915 * configure.in (ALL_LINGUAS): Add Norwegian (no).
2917 * tests/date/mk-script.pl (validate): Create test files in $(srcdir),
2919 * tests/Makefile.am.in ($x-tests): Create $x-tests in $(srcdir),
2921 * Makefile.am (aclocal-files): Look in source directory, not build dir.
2922 From Andreas Schwab.
2924 1997-07-03 Jim Meyering <meyering@na-net.ornl.gov>
2926 * tests/date/Test.pm (test_vector): Remove bogus TZ=GMT environment
2929 Wed Jul 2 11:05:09 1997 Jim Meyering <meyering@na-net.ornl.gov>
2931 * src/printf.c (STRTOX): Convert function header in macro definition
2932 to K&R-style. Otherwise, ansi2knr would fail to convert the function
2933 definitions to K&R for old style compilers. From Kaveh Ghazi.
2935 Tue Jul 1 06:28:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
2937 * lib/putenv.c [putenv]: Undefine before including system headers.
2938 Otherwise, the declaration of *rpl_putenv* conflicts with the system
2939 prototype on at least Irix5.3. From Marcus Daniels.
2941 Sun Jun 29 07:18:25 1997 Jim Meyering <meyering@na-net.ornl.gov>
2943 * lib/putenv.c (rpl_putenv): Renamed from putenv.
2944 [putenv]: Remove definition and subsequent #undef hack that avoided
2945 conflicts with system prototypes. That didn't let the definition of
2946 putenv to rpl_putenv from config.h get through.
2947 Suggestion from Marcus Daniels.
2949 * configure.in (LIB_CRYPT): AC_SUBST new variable. Use it to add
2950 crypt-related library (-lufc or -lcrypt) only for the program that
2951 needs it (su), rather than to all executables.
2952 * src/Makefile.am (su_LDADD): Set to `$(LDADD) @LIB_CRYPT@'.
2953 Suggestion from Ulrich Drepper.
2955 * tests/date/mk-script.pl: Set and export LANGUAGE, LC_ALL, and LANG
2956 so tests get english strings. From Ulrich Drepper.
2958 Mon Jun 16 11:06:57 1997 Jim Meyering <meyering@na-net.ornl.gov>
2960 * m4/putenv.m4 (jm_FUNC_PUTENV): New file and macro.
2961 * configure.in (jm_FUNC_PUTENV): Use it.
2962 * acconfig.h (putenv): Add #undef.
2963 * lib/Makefile.am (EXTRA_DIST): Add putenv.c.
2964 (libsu_a_SOURCES): Remove putenv.c.
2965 * m4/Makefile.am (EXTRA_DIST): Add putenv.m4.
2967 Thu Jun 12 06:48:23 1997 Jim Meyering <meyering@na-net.ornl.gov>
2969 * src/expr.c (eval6): Accept new unary operator, quote.
2972 Wed Jun 11 15:13:56 1997 Jim Meyering <meyering@na-net.ornl.gov>
2974 * src/expr.c (docolon): Test (re_buffer.re_nsub > 0) rather than
2975 searching for `\(' to determine whether to return 0 or the empty
2976 string. Before it would improperly return '' if the pattern
2977 contained a substring like this: `\\('. From Karl Heuer.
2978 For example, running expr c : '\\(' should print `0'.
2980 Sun Jun 1 12:00:10 1997 Jim Meyering <meyering@na-net.ornl.gov>
2982 * lib/getdate.y (OtherTable): Interpret `next' as 1 (not 2) units.
2983 Patch from Richard Sharman <rsharman@magmacom.com>.
2984 * tests/date/Test.pm: Add tests using `next'.
2986 Tue May 27 06:08:06 1997 Jim Meyering <meyering@na-net.ornl.gov>
2988 * lib/basename.c: Don't include backupfile.h.
2990 * lib/Makefile.am (noinst_HEADERS): Add backupfile.h.
2992 * src/basename.c: Use base_name, not basename.
2993 * src/su.c: Use base_name, not basename.
2995 * configure.in: Don't replace basename. Now it's always required.
2997 * lib/Makefile.am (libsu_a_SOURCES): Add basename.c.
2999 * lib/getopt.c: Update from glibc via patch-2.2.93.
3000 * lib/getopt1.c: Likewise.
3001 * lib/getopt.h: Likewise.
3002 * lib/basename.c: Likewise.
3004 Sat May 24 13:26:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
3006 * man/Makefile.am (EXTRA_DIST): Put man_MANS here so they are
3007 distributed. This seems to be necessary for automake-1.1p.
3009 Thu May 1 00:10:11 1997 Jim Meyering <meyering@na-net.ornl.gov>
3011 * ansi2knr.c echo.c factor.c hostname.c id.c nice.c pathchk.c
3012 spline.c test.c uname.c: Indent cpp-directives.
3014 * src/system.h (N_): Define.
3016 Sun Apr 27 18:30:53 1997 Jim Meyering <meyering@na-net.ornl.gov>
3018 * src/printf.c (cfcc_msg): File-scope constant.
3019 (STRTOX): Use new constant as error message format string in macro.
3020 Suggestion from Andreas Schwab.
3021 (STRTOX): Don't fail because of extra character(s) following a
3022 character constant. Give the *warning* only if !POSIXLY_CORRECT.
3024 Sun Apr 6 14:29:14 1997 Jim Meyering <meyering@na-net.ornl.gov>
3026 * src/printf.c: Reorder functions to obviate forward decls.
3027 Change most char* dcls to const char*.
3028 (STRTOX): New macro to eliminate code duplication.
3029 (xstrtod, xstrtol, xstrtoul): Remove functions.
3030 Use the STRTOX instead.
3032 * src/printf.c (STRTOX): Interpret arguments like 'a and "a
3033 as POSIX requires. Derived from a patch by Dennis Henriksen.
3035 Sun Mar 23 15:20:17 1997 Jim Meyering <meyering@na-net.ornl.gov>
3037 * configure.in (ALL_LINGUAS): Add polish (pl).
3039 Sat Mar 22 00:03:02 1997 Jim Meyering <meyering@na-net.ornl.gov>
3041 * Makefile.am (AUTOMAKE_OPTIONS): Require automake-1.1l.
3042 (aclocal.m4): Use aclocal's new -I option.
3044 * missing: New file -- from the automake-1.1m distribution.
3046 Thu Mar 20 21:10:44 1997 Jim Meyering <meyering@na-net.ornl.gov>
3048 * m4/ccstdc.m4: Remove file.
3049 * m4/init.m4: Likewise.
3050 * m4/sanity.m: Likewise.
3051 * m4/protos.m: Likewise.
3052 * m4/dmalloc.m4: Likewise.
3053 * m4/error.m4: Likewise.
3054 * m4/header.m4: Likewise.
3055 * m4/install.m4: Likewise.
3056 * m4/lispdir.m4: Likewise.
3057 * m4/maintainer.m4: Likewise.
3058 * m4/obstack.m4: Likewise.
3059 * m4/ptrdiff.m4: Likewise.
3060 * m4/regex.m4: Likewise.
3061 * m4/strtod.m4: Likewise.
3062 * m4/termios.m4: Likewise.
3063 * m4/winsz.m4: Likewise.
3065 Tue Mar 18 06:46:54 1997 Jim Meyering <meyering@na-net.ornl.gov>
3067 * src/su.c: Indent cpp-directives to reflect nesting.
3068 Change a few #ifdef to #if.
3069 Remove 3 spurious #ifdef that were guarding an #undef each.
3071 * src/seq.c (check_format): Rename local, FORMAT_STRING, to avoid
3073 (print_numbers): Likewise.
3075 * src/who-users.c (idle_string): Rename local, IDLE, to avoid
3078 * src/su.c (log_su): Resort to getpwuid if getlogin fails.
3079 If no tty name is found, use `none' in the log message.
3080 Based on a patch from Galen Hazelwood.
3082 Thu Mar 13 21:27:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
3084 * lib/mktime.c (TIME_T_MIN): Work around a bug in Cray C 5.0.3.0.
3086 Wed Feb 19 23:06:46 1997 Jim Meyering <meyering@na-net.ornl.gov>
3088 * src/factor.c (factor): Rewrite inner loop to be more efficient.
3089 Patch from Torbjorn Granlund.
3091 Tue Feb 18 21:18:04 1997 Jim Meyering <meyering@na-net.ornl.gov>
3093 * tests/date/Test.pm: Add tests for %U, %V, and %W and for a bug
3094 fixed on 1996-03-05.
3095 Remove misleading `-' from leap-1 test.
3097 * tests/Makefile.am (SUBDIRS): Add factor.
3098 * tests/factor: New directory.
3099 * configure.in (AC_OUTPUT): Add tests/factor/Makefile.
3101 Tue Feb 4 22:03:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
3103 * src/stty.c: Bracket inclusion of termios.h with #if HAVE_TERMIOS_H.
3104 Masami Takikawa reported that NeXTStep 3.0 doesn't have termios.h.
3105 * configure.in (AC_CHECK_HEADERS): Add termios.h.
3107 Fri Jan 31 21:13:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
3109 * src/*.c (usage): Bracket bug-reporting address with <> and append
3111 * src/*.sh: Likewise.
3113 * src/*.c: Compare getopt_long return value against -1, not EOF.
3114 Use NULL, not `(int *) 0' as last parameter in getopt_long call.
3116 Mon Jan 27 21:43:50 1997 Jim Meyering <meyering@na-net.ornl.gov>
3118 * src/chroot.c (usage): Remove one space in message to make
3121 Sun Jan 26 12:51:05 1997 Jim Meyering <meyering@na-net.ornl.gov>
3125 * src/who-users.c (usage): Fix typo (--writeable -> --writable)
3126 in help output. From Galen Hazelwood.
3128 Sat Jan 25 21:01:13 1997 Jim Meyering <meyering@na-net.ornl.gov>
3130 * src/factor.c (print_factors): Reflect changes to xstrtoul interface.
3132 * tests/date/mk-script.pl: Generated script now reflects
3133 specification (in Test.pm) of default and per-test environment
3136 Fri Jan 24 23:36:00 1997 Jim Meyering <meyering@na-net.ornl.gov>
3138 * lib/long-options.c (parse_long_options): Reset optind to zero
3139 before just returning so that getopt internals get initialized from
3140 the probably-new parameters when/if getopt is called later.
3141 This solves the problem (reintroduced with 1.15) where `stty -tabs'
3142 would not work as advertised but instead act like `stty -a'.
3143 Reported by Arne Juul.
3144 Suggested fix from Ulrich Drepper.
3146 Wed Jan 22 20:12:31 1997 Jim Meyering <meyering@na-net.ornl.gov>
3148 * lib/getopt.c: Update from GNU C library.
3149 * lib/getopt1.c: Update from GNU C library.
3150 * lib/getopt.h: Update from GNU C library.
3152 * tests/Makefile.am (EXTRA_DIST): Add README Makefile.am.in.
3153 (SUBDIRS): Set to `date'.
3155 * configure.in: Check for perl.
3156 (AC_OUTPUT): Add tests/date/Makefile.
3157 * tests/date: New directory.
3159 * m4/getgroups.m4: Move the code from configure.in into
3160 this macro that resorts to looking for getgroups in -lbsd.
3161 Set new shell variable, GETGROUPS_LIB (that callers should check),
3162 if it is found there.
3163 * configure.in: Check $GETGROUPS_LIB just after jm_FUNC_GETGROUPS.
3164 (AC_CHECK_FUNCS): Remove getgroups.
3165 Remove code that resorts to looking for getgroups in -lbsd.
3167 * m4/mktime.m4 (AM_FUNC_MKTIME): Run tests for each of a few values
3168 for the TZ environment variable. Andre Novaes Cunha provided the
3169 hairy TZ setting that exercized the Solaris tzset bug.
3171 1997-01-22 Paul Eggert <eggert@twinsun.com>
3173 * lib/strftime.c (_strftime_copytm):
3174 New function, to work around Solaris 2.5 tzset bug.
3176 * m4/mktime.m4 (AM_FUNC_MKTIME): Fix bug in mktime test -- don't
3177 test now, test a couple of thousand times.
3179 * m4/strftime.m4 (main): Use TZ=GMT0, not TZ=GMT, since only GMT0 is
3180 specified by Posix.1.
3182 Sat Jan 18 09:32:26 1997 Jim Meyering <meyering@na-net.ornl.gov>
3184 * lib/getdate.y (get_date): Change prototype to reflect const'ness
3186 Indent cpp-directives to reflect nesting.
3187 Indent with GNU indent.
3189 * lib/getdate.h: New file.
3190 * src/date.c: Include getdate.h.
3191 (<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
3192 (get_date): Don't declare. getdate.h does it.
3194 * lib/Makefile.am (noinst_HEADERS): Add getdate.h.
3196 1997-01-06 Paul Eggert <eggert@twinsun.com>
3198 * getdate.y: Rewrite to use mktime.
3200 <sys/timeb.h>: Don't include.
3203 (struct timeb, timezone, DOOMSDAY, SECSPERDAY, DSTMODE, yyDSTmode,
3204 ToSeconds, Convert, DSTcorrect, RelativeDate, RelativeMonth): Remove.
3205 (ToHour): New function (part of the old ToSeconds fn).
3206 (ToYear): New function (part of the old Convert fn).
3208 (TABLE.value, yyDayOrdinal, yyDayNumber, yyTimezone, yyDay, yyHour,
3209 yyMinutes, yyMonth, yySeconds, yyYear, yyRelMonth, yyRelSeconds,
3210 Number): Now int instead of time_t.
3211 (HOUR): Don't cast to time_t.
3213 (tDAY_UNIT, tHOUR_UNIT, tYEAR_UNIT): New %tokens.
3214 (UnitsTable): Use new units that are closer to the keywords.
3216 (yyRelDay, yyRelHour, yyRelMinutes, yyRelYear): New variables.
3217 (rel, relunit, get_date): Add support for them.
3219 (time): Fix timezone calculations for negative half-hour offsets
3220 when integer division truncates towards minus infinity.
3222 (zone): Incorporiate DST calculation directly.
3224 (get_date): 2nd arg is now time_t *, not struct timeb *.
3225 Use mktime to do most of the work, instead of computing it ourselves.
3226 Guard against falsely reporting errors near the time_t boundaries
3227 when parsing times in other time zones.
3229 Thu Jan 16 20:58:40 1997 Jim Meyering <meyering@na-net.ornl.gov>
3231 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Check for pstat_getdynamic.
3232 * configure.in (AC_CHECK_FUNCS): Don't check for pstat_getdynamic here.
3234 Tue Jan 14 22:45:36 1997 Jim Meyering <meyering@na-net.ornl.gov>
3236 * configure.in (AC_CHECK_FUNCS): Add pstat_getdynamic.
3237 Alphabetize functions.
3239 * lib/getloadavg.c [hpux && HAVE_PSTAT_GETDYNAMIC]: Use HPUX's
3240 pstat_getdynamic function so we don't need any special privileges
3241 to determine load averages. Patch from Kaveh Ghazi, based on a
3242 sample implementation from Richard J. Rauenzahn.
3243 Indent cpp-directives to reflect nesting.
3245 Wed Jan 8 16:38:24 1997 Jim Meyering <meyering@na-net.ornl.gov>
3249 * lib/getopt.c (_getopt_internal): Use `_', rather than the
3250 (sometimes-)expansion `gettext'.
3252 Tue Jan 7 22:10:51 1997 Jim Meyering <meyering@na-net.ornl.gov>
3254 * src/nice.c (main): Work around failures induced by new version of
3255 getopt.c by not modifying optind before the first getopt_long call
3256 in main. With suggestions from Ulrich Drepper.
3258 * lib/getopt.c: New (more POSIX compliant) version from GNU libc.
3259 [_]: Define to gettext also if ENABLE_NLS is defined.
3262 Fri Jan 3 21:08:29 1997 Jim Meyering <meyering@na-net.ornl.gov>
3264 * acconfig.h (getgroups): Add #undef.
3265 From Marcus Daniels.
3267 Fri Dec 27 17:25:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
3269 * src/who-users.c [!WTMP_FILE]: Provide default path.
3270 (UTMP_FILE) [UTMPX_FILE]: Use UTMPX_FILE in favor of UTMP_FILE.
3271 Patch from Kaveh R. Ghazi.
3272 Indent cpp directives.
3274 * m4/getgroups.m4: Rewrite the test so that systems lacking
3275 getgroups don't try to use the supplied replacement function --
3276 that depends on the existence of such a function.
3278 * Makefile.am (aclocal.m4): No longer depend on acinclude.m4.
3280 * configure.in (jm_FUNC_GETGROUPS): Use it.
3281 Reported by Marcus Daniels.
3282 AC_REQUIRE version 2.12 of autoconf.
3284 Sun Dec 22 23:31:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
3286 * configure.in: Increment version to 1.14a.
3288 * m4/Makefile.am (EXTRA_DIST): Add README.
3290 Fri Dec 20 19:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
3292 * src/who-users.c (usage): Say that UTMP_FILE is the default FILE
3293 rather than hard-coding /etc/utmp. Replace hard-coded /etc/wtmp
3294 with WTMP_FILE. Suggestion from Eivind.
3296 * src/seq.c (usage): Tweak --help text.
3298 * configure.in (AC_OUTPUT): Add m4/Makefile.
3300 * lib/Makefile.am (EXTRA_DIST): Add getgroups.c.
3302 * Makefile.am (SUBDIRS): Add m4.
3303 (aclocal-files): Add rules that rely on (GNU) make's include
3304 directive that computes dependencies for aclocal.m4.
3305 (aclocal.m4): Override automake-generated rule.
3307 * m4/Makefile.am: New file.
3309 * lib/strftime.c: Update from GNU libc.
3311 * m4/getline.m4: New file, extracted from acinclude.m4.
3312 * m4/getloadavg.m4: Likewise.
3313 * m4/jm-mktime.m4: Likewise.
3314 * m4/jm-winsz1.m4: Likewise.
3315 * m4/jm-winsz2.m4: Likewise.
3316 * m4/memcmp.m4: Likewise.
3317 * m4/strftime.m4: Likewise.
3318 * m4/uptime.m4: Likewise.
3320 * m4/ccstdc.m4: Copied from automake-1.1l.
3321 * m4/dmalloc.m4: Likewise.
3322 * m4/error.m4: Likewise.
3323 * m4/gettext.m4: Likewise.
3324 * m4/header.m4: Likewise.
3325 * m4/init.m4: Likewise.
3326 * m4/install.m4: Likewise.
3327 * m4/lcmessage.m4: Likewise.
3328 * m4/lispdir.m4: Likewise.
3329 * m4/maintainer.m4: Likewise.
3330 * m4/mktime.m4: Likewise.
3331 * m4/obstack.m4: Likewise.
3332 * m4/progtest.m4: Likewise.
3333 * m4/protos.m4: Likewise.
3334 * m4/ptrdiff.m4: Likewise.
3335 * m4/regex.m4: Likewise.
3336 * m4/sanity.m4: Likewise.
3337 * m4/strtod.m4: Likewise.
3338 * m4/termios.m4: Likewise.
3339 * m4/winsz.m4: Likewise.
3341 * m4/getgroups.m4: New file.
3342 (jm_FUNC_GETGROUPS): New macro
3343 * lib/getgroups.c: New file.
3345 * m4: New directory.
3347 Wed Dec 18 07:47:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
3349 * configure.in (AC_CHECK_HEADERS): Add paths.h.
3350 * src/su.c [HAVE_PATHS_H]: Include <paths.h>.
3351 [_PATH_DEFPATH]: Use this to define DEFAULT_LOGIN_PATH.
3352 [_PATH_DEFPATH_ROOT]: Use this to define DEFAULT_ROOT_LOGIN_PATH.
3355 * acinclude.m4 (jm_FUNC_GNU_STRFTIME): Change m4 quote strings
3356 outside the quoted test program. Quote the test program with <<, >>.
3357 Reported by Andreas Schwab.
3358 (AM_FUNC_GETLOADAVG): Likewise.
3359 (jm_FUNC_GNU_STRFTIME): Add tests for new, upcasing ^ modifier
3361 Tue Dec 17 18:54:32 1996 Jim Meyering <meyering@na-net.ornl.gov>
3363 * src/Makefile.am (install-exec-local): Properly redirect stdout
3364 and stderr to /dev/null. From Eric Backus.
3366 * lib/strftime.c: Update from GNU libc.
3368 * acinclude.m4 (jm_SYS_PROC_UPTIME): Require AC_PROG_CC, rather than
3369 now-obsolete AC_C_CROSS.
3370 (jm_FUNC_MKTIME): When redefining, use rpl_ prefix, not gnu_ one
3371 since there's nothing GNU-specific about the replacement. Contrast
3372 with gnu_ prefix added to strftime.
3373 (jm_FUNC_MEMCMP): New macro.
3374 * configure.in: Use jm_FUNC_MEMCMP instead of AM_FUNC_MEMCMP.
3375 * acconfig.h: Add memcmp.
3377 Sun Dec 15 18:37:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
3379 * configure.in (check for 3-argument setpriority function): Complete
3380 partial change made on Dec 12. From Arne Juul.
3382 Sat Dec 14 14:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
3384 * acinclude.m4 (jm_SYS_PROC_UPTIME): Fix typo in cache variable
3385 name for cross compiling.
3386 Remove definitions of gettext-related macros. The gettext
3387 installation procedure installs corresponding .m4 files so that
3388 aclocal will use them.
3390 Thu Dec 12 06:07:30 1996 Jim Meyering <meyering@na-net.ornl.gov>
3394 * src/system.h (ISDIGIT): Replace with smaller, faster edition
3395 that yields nonzero only on ASCII digits.
3396 (ISDIGIT_LOCALE): New macro, with same meaning that ISDIGIT
3397 used to have. From Paul Eggert.
3399 * configure.in: Bump version to 1.14.
3401 * lib/getdate.y (IN_CTYPE_DOMAIN): Rename from ISASCII.
3402 (ISDIGIT): New definition from Paul Eggert.
3403 This one evaluates its argument exactly once.
3404 (yylex): Move increment out of ISALPHA argument. Use a
3405 comma-expression instead.
3407 * src/false.sh (usage): Update bug-reporting address.
3408 * src/groups.sh (usage): Likewise.
3409 * src/nohup.sh (usage): Likewise.
3410 * src/true.sh (usage): Likewise.
3411 Reported by Karl Heuer.
3413 * configure.in (check for 3-argument setpriority function): Add nohup
3414 to list of scripts, not the list of programs.
3417 * POTFILES.in: Add chroot.c. Reported by Michel Robitaille.
3419 Wed Dec 11 19:33:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
3423 Tue Dec 10 06:36:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
3425 * acinclude.m4 (jm_SYS_PROC_UPTIME): New macro. Derived from the
3426 code in configure.in, except now it punts when cross compiling.
3427 Suggestion from Karl Heuer.
3428 * configure.in (jm_SYS_PROC_UPTIME): Use it instead of open-coded
3431 * lib/Makefile.am (EXTRA_DIST): Add mktime.c.
3432 Reported by Thomas Bushnell.
3434 * configure.in: Bump version to 1.12t.
3436 * Regenerate all Makefile.in using a patched version of automake-1.1l.
3438 * acconfig.h (strftime): Add #undef.
3441 * acinclude.m4 (AM_GNU_GETTEXT): Don't require AC_ISC_POSIX.
3444 Mon Dec 9 06:58:11 1996 Jim Meyering <meyering@na-net.ornl.gov>
3446 * configure.in: Bump version to 1.12s.
3448 * lib/getdate.y (Convert): Don't reject all dates in 2038.
3449 Some fit in 31 bits.
3451 * configure.in (jm_FUNC_GNU_STRFTIME): Use it.
3453 * acinclude.m4 (AC_REPLACE_GNU_GETOPT): Remove unused macro.
3454 (jm_FUNC_GNU_STRFTIME): New macro.
3456 * lib/Makefile.am (libsu_a_SOURCES): Remove strftime.c.
3457 (EXTRA_DIST): Add strftime.c.
3459 * configure.in (jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Fix typo:
3460 Change $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h to
3461 $jm_cv_sys_tiocgwinsz_needs_sys_ioctl_h.
3462 Patch from Kaveh R. Ghazi.
3464 * src/stty.c: Include config.h before testing for
3465 TERMIOS_NEEDS_XOPEN_SOURCE.
3466 Patch from Karl Heuer.
3468 * configure.in (AC_ISC_POSIX): Remove kludgy macro.
3469 Use this test instead:
3470 (LIBS): Add -lcposix if it contains strerror.
3471 Patch from Karl Heuer.
3473 * acinclude.m4 (AM_FUNC_GETLOADAVG): Put shell assignments to
3474 ac_save_LIBS and LIBS on separate lines to avoid order-of-evaluation
3475 problems -- some versions of sh (e.g. SunOS4.1.3's) evaluate such
3476 space-separated assignments from right to left. Patch from Karl Heuer.
3477 (AM_FUNC_GETLOADAVG): Fix typo: su_save_LIBS => am_cv_saved_LIBS.
3478 Patch from Karl Heuer.
3480 * lib/strftime.c [HAVE_TZNAME]: Declare tzname.
3481 Patch from Karl Heuer.
3483 * src/Makefile.am (.sh): Also substitute @bindir@.
3484 Reported by Karl Heuer.
3486 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3488 =========== Update for automake-1.1k.
3489 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
3490 * configure.in (AM_CONFIG_HEADER): Use it.
3491 (AC_OUTPUT): Remove stamp-h timestamping statement.
3492 Now, AM_CONFIG_HEADER does it automatically.
3493 * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
3494 new automake requirement.
3495 Rename su_* variables to libsu_a_*.
3497 Sun Dec 8 00:08:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
3499 * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
3501 Sat Dec 7 12:52:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
3503 * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
3504 From Michel Robitaille.
3506 * configure.in (ALL_LINGUAS): Add Portuguese (pt).
3508 * lib/getloadavg.c [__SVR4]: Define SVR4.
3509 Remove duplicate `|| defined(SVR4)' disjunct guarding the
3510 #define KERNEL_FILE "/unix" definiton.
3512 * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
3513 of the AM_ prefixed macro.
3514 (check for TIOCGWINSZ in sys/pty): In essence, require
3515 jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
3516 $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
3517 $gwinsz_in_termios_h) is defined.
3519 * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
3520 Correction from Paul Eggert.
3522 Fri Dec 6 20:52:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
3524 * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
3525 AM_FUNC_MKTIME, simply AC_REQUIRE it.
3527 Mon Dec 2 20:59:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3529 * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
3530 define WINSIZE_IN_PTEM to precede test that checks whether
3531 `TIOCGWINSZ in sys/pty.h'. The latter test uses the symbol.
3532 (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
3534 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
3536 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
3537 if L >= 1000, otherwise as MM/DD/YY. With this change,
3538 date --date=DATE accepts dates like those in an RCS log listing.
3540 Sat Nov 30 22:08:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
3542 * lib/strftime.c: Update from GNU libc.
3544 Fri Nov 29 22:16:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
3546 * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
3547 --processor (-p). Print processor type.
3548 (usage): Document it.
3550 Thu Nov 28 00:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
3552 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
3553 for gettext-0.10.25.
3554 (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
3556 Sun Nov 24 11:02:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
3558 * src/system.h [!defined STDIN_FILENO]: Define it.
3559 [!defined STDOUT_FILENO]: Define it.
3560 [!defined STDERR_FILENO]: Define it.
3562 * src/stty.c (get_win_size): Take a FILENO parameter rather than
3563 trying to get a size from both stdin and stdout.
3565 Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
3567 ========== From Karl Heuer =========
3568 * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
3569 i386-pc-isc3.0, needs that in order to cause all of the useful
3570 termios symbols to be defined, instead of just those that are
3571 required by POSIX. This enables all of: iuclc ixany olcuc ocrnl
3572 onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
3574 [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
3576 [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
3577 termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
3578 POSIX requires that symbol). Define VSWTCH as a synonym if needed,
3579 so that either one can be used on input.
3580 (display_changed): If the slot for swtch is the same as the one for
3581 susp, display only the setting for susp.
3582 (display_all): Likewise.
3584 (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
3585 On such systems, it's confusing to print both pairs. So, skip eof and
3586 eol when icanon is unset, and skip min and time when icanon is set.
3587 (display_all): Likewise.
3589 (set_window_size): Check only stdin (the device being queried) for
3590 window size info. You don't want "stty </dev/foo" to report the size
3591 of your current window when /dev/foo has no size info.
3592 (display_window_size): Likewise.
3594 (screen_columns): Check only stdout for window size info. You want
3595 "stty </dev/foo" to wrap columns at the right margin of your current
3596 window, not the /dev/foo width.
3598 * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
3599 (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
3601 * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
3602 (whether TIOCGWINSZ is defined in sys/pty.h): New test.
3604 Sat Nov 23 16:15:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
3606 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
3607 isn't mentioned in AC_REPLACE_FUNCS.
3609 * env.c (usage): Alphabetize option descriptions the way sort -f would.
3610 * test.c (usage): Likewise.
3611 * who-users.c (usage): Likewise.
3614 Fri Nov 22 20:33:26 1996 Jim Meyering <meyering@na-net.ornl.gov>
3616 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
3617 way. AM_FUNC_GETLINE does it now.
3619 * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
3620 * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
3623 * src/printf.c (main): Warn if excess arguments are ignored.
3624 E.g., printf foo bar now warns that it is ignoring the single
3625 non-format argument, bar.
3627 Wed Nov 20 20:37:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
3629 * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
3630 gethostname. Reported by Fletcher Mattox.
3632 Tue Nov 19 23:01:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
3634 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
3636 (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
3637 automake-1.1g couldn't deal with the _SCRIPTS suffix.
3638 * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
3640 Sun Nov 17 20:49:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
3642 * src/id.c (main): Ignore -a, for compatibility with SVR4.
3643 Suggestion from Noah Friedman.
3645 Mon Nov 4 20:24:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
3647 * configure.in (test for group_member): Handle it separately
3648 so I can keep the hyphen (not the underscore) in the filename.
3650 Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
3652 * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
3653 returns an error other than buffer overflow, exit with an error
3654 message instead of allocating infinite amounts of space.
3655 [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
3656 <errno.h>: New include.
3657 [!errno] (errno): New declaration.
3659 * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
3661 * configure.in: Check for -linet library before checking for the
3662 gethostbyname function. Suggested by Karl Heuer.
3663 Use AM_FUNC_GETLINE.
3665 * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
3666 Based on a test from Karl Heuer.
3668 Sun Nov 3 14:57:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
3670 * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
3671 am_cv_saved_LIBS from LIBS. From Karl Heuer.
3673 * src/stty.c (recover_mode): Fail also if there are too many fields.
3676 * lib/canon-host.c: Include sys/types.h for the definitions
3677 (otherwise missing on some systems) of caddr_t (used by
3678 sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
3680 Sat Nov 2 00:16:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
3682 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
3683 Otherwise, the generated info files have names longer than
3684 the 14-byte max of some old systems.
3685 Reported by Karl Heuer.
3687 * src/date.c (main): Give better diagnostic.
3688 Suggestion from Karl Berry.
3690 Thu Oct 31 18:28:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
3692 * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
3693 * lib/getdate.y: Remap yacc globals to have gd_ prefix.
3694 Suggestion to do as in gdb/c-exp.y from Tom Tromey.
3696 Mon Oct 28 17:40:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
3698 * src/Makefile.am (install-exec-local): Redirect stderr of chown to
3699 /dev/null and suggest running `make install-root' upon failure to
3700 install su. Suggestions from François Pinard.
3702 * configure.in: Don't output confusing diagnostic: `checking for
3703 shadow password routines'. Suggestion from François Pinard.
3705 Thu Oct 24 13:50:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
3707 * src/tee.c (main): Ignore SIGPIPE.
3709 Wed Oct 23 23:42:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
3711 * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
3712 with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
3713 loses with Dynix/PTX.
3714 (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
3715 Suggestion from Marcus Daniels.
3717 Mon Oct 21 16:49:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
3719 * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
3720 defines or includes -- Linux systems simply read /proc/loadavg.
3721 From Ulrich Drepper.
3723 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
3725 * configure.in: Remove hack that created link from group_member.c
3728 * lib/group_member.c: New file. Renamed from group-member.c.
3729 * lib/group-member.c: Delete.
3731 * src/stty.c (main): Remove TAB from diagnostic, for consistency.
3733 Sun Oct 20 09:03:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
3735 * Makefile.am (install-root): Add it here, too.
3737 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
3739 * src/Makefile.am (install-root): New rule.
3740 Suggestion from François Pinard.
3742 * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
3743 directly. From Ulrich Drepper.
3745 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
3746 (EXTRA_DIST): Remove @README_ALPHA@.
3748 * configure.in: Remove README_ALPHA related code. Automake takes
3749 care of it automatically now when in gnits mode.
3751 * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
3752 #include $srcdir/lib/getloadavg.c. The latter isn't defined at that
3753 point in configure script. From Eric Backus.
3755 Fri Oct 18 21:31:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
3757 * Makefile.am (cvs-dist): Uncomment cvs tag command.
3758 (cvs-dist): Use cvs tag's -c option.
3760 Thu Oct 17 23:48:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
3762 * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
3763 using YP. From Arne Juul.
3765 Sun Oct 13 07:34:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
3767 * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
3768 * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
3769 (by saving and restoring initial value). Instead, arrange for
3770 substitution of @GETLOADAVG_LIBS@.
3771 * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
3774 * configure.in (ALL_LINGUAS): Add swedish (sv).
3776 Fri Oct 11 22:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
3778 * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
3779 call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
3780 From Kaveh R. Ghazi.
3782 * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
3784 * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
3785 with the following changes:
3786 - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
3787 Reported by Eric Backus.
3788 - Check for Solaris' libkstat.
3789 - Define C_GETLOADAVG if we end up using getloadavg.c.
3790 From Kaveh R. Ghazi.
3791 * acconfig.h (C_GETLOADAVG): Add it.
3792 From Kaveh R. Ghazi.
3794 * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
3795 getloadavg-related libraries only when linking uptime.
3797 Thu Oct 10 23:50:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
3799 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
3800 (su_SOURCES): Put them here instead.
3801 Remove rules for building getdate.c and posixtm.c; now automake
3802 generates those rules.
3803 * lib/ylwrap: New file.
3804 * lib/interlock: New file.
3806 Wed Oct 9 00:26:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3808 * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi.
3810 * lib/strftime.c (strftime): Accommodate the broken C compiler
3811 that comes with SunOS -- don't initialize aggregates in decls of
3812 automatic variables. Reported by Kaveh Ghazi.
3814 * tests/: Renamed checks/ directory.
3815 * Makefile.am (SUBDIRS): Rename checks to tests.
3816 * configure.in (AC_OUTPUT): Rename checks to tests.
3818 * configure.in (/proc/uptime check): Guard the read of /proc/uptime
3819 with an existence test to avoid a messy configure-time warning on
3820 systems that lack that special file. Reported by Kaveh R. Ghazi.
3822 * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
3823 not $LIB. From Kaveh R. Ghazi.
3825 * checks/nice: Protect echoed args with leading `x' so echo doesn't
3826 interpret leading -n on e.g. SunOS systems.
3828 Mon Oct 7 18:46:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
3830 * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
3832 * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
3833 (su_SOURCES): Remove memcmp.c.
3834 Automake automatically includes at least these, now.
3835 From François Pinard.
3837 * lib/Makefile.am (su_SOURCES): Remove getline.c.
3839 Sat Oct 5 11:38:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
3841 * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
3842 it's AC_REPLACE'd and already in EXTRA_DIST.
3844 * configure.in: Use AM_SANITY_CHECK_CC.
3846 * configure.in: Use AM_FUNC_ERROR_AT_LINE.
3847 * lib/Makefile.am (EXTRA_DIST): Put error.c here.
3848 (su_SOURCES): Remove error.c
3849 Suggested by Ulrich Drepper.
3851 * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
3852 * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
3853 in the four installed scripts.
3854 * src/*.sh: Update --version output to conform to the coding standard.
3856 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
3857 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
3858 checking... messages don't get nested.
3860 * configure.in (GNU_PACKAGE): New variable.
3861 (PACKAGE_VERSION): Remove it.
3863 * acconfig.h (GNU_PACKAGE): New variable.
3864 (PACKAGE_VERSION): Remove now-unused variable.
3866 * src/*.c: Update --version output to conform to the coding standard.
3868 Sun Sep 22 22:41:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
3870 * configure.in (AC_CHECK_HEADERS): Alphabetize.
3871 Update for automake-1.1e.
3873 Thu Sep 19 07:47:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
3875 * lib/regex.c: Merge with FSF version.
3876 * lib/getloadavg.c: Replace with FSF version.
3878 Mon Sep 16 23:13:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
3880 * lib/strftime.c (strftime): New version, from GNU libc.
3882 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
3884 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
3886 Mon Sep 9 22:10:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
3888 * configure.in: Improve handling of math library so -lm is used
3889 only when it's actually required. That makes a difference when
3890 using dynamic linking.
3891 Remove check that added -lm to LIBS.
3892 (SQRT_LIBM): Test for and AC_SUBST it.
3893 (POW_LIBM): Likewise.
3894 (SEQ_LIBM): Likewise.
3895 Motivation and suggestions from Ulrich Drepper.
3897 * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
3898 Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
3899 Also set corresponding _DEPENDENCIES variables.
3901 Sat Sep 7 12:41:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
3903 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
3905 * lib/getdate.y: Define and use upper case variants of ctype.h
3906 is* macros. From Bruno Haible.
3908 Thu Sep 5 22:12:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
3910 * lib/strftime.c: New version from glibc.
3912 Wed Sep 4 23:39:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
3914 * configure.in (ALL_LINGUAS): Add dutch (nl).
3916 Mon Sep 2 10:52:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3918 * src/*.c (usage): Tell where to report bugs.
3920 Sun Sep 1 07:56:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
3922 * configure.in (AM_FUNC_MKTIME): Use it.
3923 (AC_REPLACE_FUNCS): Remove mktime.
3924 (AM_INIT_AUTOMAKE): Use it.
3925 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
3926 (AC_PROG_MAKE_SET): Likewise.
3927 (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
3928 AM_ prefix for latest automake/aclocal.
3930 * Makefile.am (EXTRA_DIST): Add acinclude.m4.
3932 * acinclude.m4: New file -- derived from aclocal.m4.
3933 * aclocal.m4: This file is now generated by the aclocal program
3934 (which comes with the automake package.)
3936 Sat Aug 17 00:14:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3938 * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
3939 formats and reverts to old behavior where unrecognized format like
3940 %E is treated as eqivalent to `E'.
3942 Sun Aug 4 09:14:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
3944 * checks/: New directory.
3945 * checks/Makefile.am: New file.
3946 * checks/nice: New file. Derived from tests from Eric Backus.
3947 * configure.in (AC_OUTPUT): Add new directory: checks.
3948 * Makefile.am (SUBDIRS): Likewise.
3950 * src/nice.c (main): Allow `+' in options like -+8 and -+13.
3952 Fri Aug 2 21:45:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
3954 * src/nice.c (main): Set minus_flag to zero in two places.
3955 Otherwise, `nice --1 -3' would mistakenly do the equivalent of
3956 `nice --3'. Thanks to Eric Backus <ericb@lsid.hp.com> for the
3959 * configure.in (check for /proc/uptime): New check.
3960 * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols
3962 *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
3964 From Ulrich Drepper.
3966 Thu Aug 1 22:38:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3968 * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
3969 It isn't necessary because the cpp-time checks of getopt.c and
3970 getopt1.c are at least as good.
3971 * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
3972 (su_SOURCES): Add getopt.c and getopt1.c
3973 This reverts much of the April 23 change.
3975 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
3977 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
3978 redefinition warnings on solaris.
3979 (textdomain) [!ENABLE_NLS]: Likewise.
3981 Sun Jul 21 09:47:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
3983 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
3984 Add related check for the getdelim function.
3985 From Ulrich Drepper -- as done in gettext.
3987 * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
3988 From Thomas Olsson <d95to@efd.lth.se>.
3990 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
3992 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
3993 separate PACKAGE and VERSION.
3995 Wed Jul 17 23:13:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
3997 * src/chroot.c: Include <sys/types.h> before system.h.
3998 * src/seq.c: Likewise.
3999 * src/yes.c: Likewise.
4002 Tue Jul 16 00:06:33 1996 Jim Meyering <meyering@na-net.ornl.gov>
4004 * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
4005 Omitting that second arg made some HPUX C compiler report an error.
4006 From Kaveh R. Ghazi.
4008 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
4010 * src/who-users.c (print_uptime): Reverse `days' and `day' in
4011 uptime message. From Kaveh R. Ghazi.
4013 * Many files: Update FSF address.
4015 Sun Jul 14 20:05:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
4017 * src/who-users.c (print_uptime): Use 0, not undefined errno in
4018 couldn't-get-boot-time diagnostic. From Ulrich Drepper.
4020 Sat Jul 13 14:22:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
4022 * src/chroot.c (usage): Add a `\' after `\n' in usage message.
4023 Otherwise, SunOS's /bin/cc chokes.
4025 * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
4026 GWINSZ_BROKEN can't be defined anymore.
4028 * configure.in (boot time test): Use AC_EGREP_CPP instead of
4029 AC_EGREP_HEADER; #endif, instead of #fi.
4030 (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
4031 these macros instead of the tests from which they were derived.
4032 ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
4034 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
4036 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
4037 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
4038 those options on that system, sys/stat.h gets compile errors.
4039 With help from Marcus Daniels.
4041 * getopt.c: Update from gettext-0.10.23.
4042 * getopt1.c: Likewise.
4043 * getopt.h: Likewise.
4045 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
4047 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
4049 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
4051 Sat Jul 6 12:47:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
4053 * configure.in (AC_REPLACE_FUNCS): Add group_member.
4054 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
4055 * lib/Makefile.am (su_SOURCES): Remove group-member.c.
4056 (EXTRA_DIST): Add group-member.c here.
4058 Thu Jul 4 22:40:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
4060 * src/expr.c (docolon): Remove space before newline in usage message.
4062 Sat Jun 29 18:58:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
4064 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
4065 it in the output of --version. Reported by RMS.
4067 Tue Jun 18 22:14:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
4069 * aclocal.m4: Update from gettext-0.10.20.
4070 * ABOUT-NLS: Likewise.
4073 Sun Jun 16 13:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
4075 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
4077 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
4079 * po/Makefile.in.in: Update from gettext-0.10.16.
4081 * ABOUT-NLS: Likewise.
4082 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
4083 gettext-related ones.
4084 Update from gettext-0.10.16.
4086 Wed May 29 21:28:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
4088 * expr.c (docolon): Give a warning when the first character
4089 of the basic regular expression is `^'.
4091 Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
4093 * id.c (xgetgroups): New function, factored out of
4094 print_group_list and print_full_info.
4095 (print_group_list): Call it.
4096 (print_full_info): Call it.
4098 * lib/Makefile.am (getdate.c): Disable dependencies that can
4099 require rerunning YACC when not in maintainer mode.
4100 (posixtm.c): Likewise.
4102 Tue May 14 18:47:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4104 * id.c (print_group_list): When USERNAME is specified use
4105 getugroups to get the number of groups.
4106 (print_full_info): Likewise.
4108 Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
4110 * seq.c (usage): Make it clearer.
4112 Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
4114 * expr.c (main): Don't recognize --help, --h, --he, --version,
4115 --v, etc. if the POSIXLY_CORRECT environment variable is set.
4116 * echo.c (main): Likewise.
4117 * printf.c (main): Likewise.
4118 * test.c (main): Likewise.
4120 * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
4122 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
4124 * configure.in: Require autoconf-2.10.
4126 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
4127 * configure.in (jm_MAINTAINER_MODE): Use it.
4129 Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
4131 * lib/strftime.c: Update from GNU libc.
4133 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
4135 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
4136 * seq.c: Remove useless void casts of *printf return values.
4138 Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
4140 * basename.c (usage): Mark translatable strings.
4141 * chroot.c (main): Likewise.
4142 * basename.c (main): Separate messages about `too few' and `too many'
4143 arguments to ease translation.
4144 * dirname.c (main): Likewise.
4145 * date.c (usage): Change TAB in message to spaces. Doing that seems
4146 to have worked around a problem with something in gettext that was
4147 producing a truncated usage message for date's usage.
4148 From François Pinard.
4150 Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
4152 * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
4153 Otherwise, some systems lose because the value AC_C_INLINE choses
4154 with plain `cc' is different from that chosen when using the ANSI-mode
4155 C compiler. From Kaveh Ghazi.
4157 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
4159 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
4160 * configure.in: Use it.
4161 * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
4162 (EXTRA_DIST): Add getopt.c and getopt1.c
4164 * whoami.c (main): Declare to return int, not void.
4165 * who-users.c (main): Likewise.
4166 * yes.c (main): Likewise.
4168 * src/*.c, src/*.h: Update Copyright years to include 1996.
4170 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
4172 * date.c (usage): Describe new %V format. From Karl Berry.
4174 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
4176 Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov)
4178 * chroot.c (usage): Improve help message.
4179 Enclose message strings in _().
4180 * seq.c (usage): Improve help message.
4181 * factor.c (usage): Likewise.
4184 Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov)
4186 * Makefile.am (cvs-dist): New rule. Based on the one from
4187 Tom Tromey's automake.
4189 Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
4191 * basename.c (basename): Rewrite so it doesn't rely on strrchr,
4192 and hence doesn't need to include string.h -- on some alpha-based
4193 OSF systems, there's a conflicting prototype for basename in string.h.
4194 Reported by Kaveh Ghazi.
4196 * configure.in (AC_REPLACE_FUNCS): Add basename.
4197 * lib/Makefile.am (EXTRA_DIST): Add basename.c.
4198 (su_SOURCES): Remove basename.c.
4201 Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
4203 * src/Makefile.am (who.c): Qualify who-users.c reference with
4205 (users.c): Likewise.
4206 (uptime.c): Likewise.
4207 From François Pinard.
4209 * configure.in: Always invoke AC_GETLOADAVG, not just if we're
4212 Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
4214 * getloadavg.c: Test cpp-defined __sun as well as sun, because
4215 in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
4217 * date.c (usage): Add missing `\n\' at the end of newly added
4218 lines for %e and %z.
4220 * who-users.c (print_uptime): Call getloadavg only if we have it.
4222 Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
4224 * configure.in (LINGUAS): Add de.
4226 * date.c (usage): Describe %e and %z. Reported by Karl Berry.
4228 * who-users.c: Mark translatable strings in new code.
4230 Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov)
4232 * configure.in: Add test for boot_time.
4235 * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
4237 * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
4238 (BUILT_SOURCES): Add uptime.c.
4239 (MOSTLYCLEANFILES): Add uptime.c.
4240 (uptime.c): Add rule to build it from who-users.c.
4242 * who-users.c: Reindent.
4243 (UT_TIME_MEMBER): New macro.
4244 (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
4245 (print_entry): Likewise.
4247 Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov)
4249 * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
4251 Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
4253 * seq.c (print_numbers): Rearrange loops to get it right.
4254 Reported by Karl Eichwalder <ke@ke.Central.DE>.
4256 * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
4257 is inconsistent with START and LIMIT.
4258 (usage): Clean up help message.
4260 * factor.c (usage): Give minimal description of the program.
4261 (print_factors): Give a better diagnostic.
4262 (main): Suggest --help upon failure.
4263 Reported by Karl Eichwalder <ke@ke.Central.DE>.
4265 * seq.c (print_numbers): Fix off-by-one error in
4266 backwards-counting loop. Reported by Karl Eichwalder.
4268 * strftime.c (mon_week_ISO): New function to implement new %V format.
4269 (sun_week): Make TM parameter `const'.
4270 (mon_week): Likewise.
4271 (mon_week): Rewrite to implement %W format correctly.
4272 (strftime): Handle %V format.
4273 Reported by Arne Juul.
4275 Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
4277 * strftime.c (sun_week): Make %U work properly.
4278 Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'.
4280 * nice.c (main): Simplify option handling. Before, `nice -18 -- nice'
4281 improperly printed `8'. Patch from Frank Korz.
4282 (main): Use `if' stmt, not while loop, around getopt invocation.
4283 Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
4284 follows a long option) gets an error.
4286 Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
4288 * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
4289 `-Xc -D__EXTENSIONS__' because of problems with Solaris header
4290 files. Suggested by Kaveh Ghazi.
4292 Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov)
4294 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
4295 when srcdir != builddir. From Kaveh Ghazi.
4297 * lib/getugroups.c: Include stdio.h before grp.h. Because
4298 <grp.h> on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi.
4300 Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
4302 * configure.in: Simplify checking for math library.
4303 This also eliminates some confusing output from configure.
4304 Suggested by François Pinard.
4306 Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov)
4308 * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
4309 -I../intl. With the former, compiles didn't find libintl.h when
4310 configured with `--srcdir=..'. Reported by Marcus Daniels
4311 <marcus@sysc.pdx.edu>.
4313 * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
4316 * src/Makefile.am (EXTRAdir): Set to $(bindir).
4318 Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov)
4320 * ChangeLog.0: New file.
4321 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
4323 Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov)
4325 * man/Makefile.am (man_MANS): Add chroot.1.
4326 * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
4328 Sun Dec 24 10:55:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
4330 * configure.in: Check for chroot a la uname.
4331 * src/chroot.c, man/chroot.1: New files.
4333 Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
4335 * su.c: Protoize and reorder functions to obviate forward decls.
4337 * seq.c: Make parameters const where appropriate.
4338 Rename global FROM to START.
4339 (print_numbers): Rewrite loops to avoid incrementing. Instead,
4340 use `x = first + i * increment' paradigm. Otherwise, with inexact
4341 increment, you could miss the last value.
4343 * xstrtod.c: New file.
4344 * xstrtod.h: New file.
4345 * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
4346 * seq.c: Include xstrtod.h.
4347 (scan_double_arg): Use xstrtod rather than strtod directly.
4349 * src/*: Update FSF's address.
4351 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
4353 * src/*.c (main): Declare to be of type int, not void.
4355 Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
4357 * configure.in (PACKAGE_VERSION): New macro.
4358 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
4359 * acconfig.h (PACKAGE_VERSION): Add it.
4360 * src/Makefile.am: Remove rules for generating version.c.
4361 Remove references to version.o, version.h, and stamp-v.
4362 [.sh]: Change @VERSION@ to @PKG_VERSION@.
4363 On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
4364 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
4365 (install-exec-local): New target/rules to make the installed su
4366 binary setuid root or failing that, to delete it.
4367 * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
4369 * version.c: Remove file.
4370 * version.h: Remove file.
4371 * basename.c date.c dirname.c echo.c env.c expr.c factor.c
4372 hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
4373 pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
4374 who-users.c whoami.c yes.c: Don't include version.h.
4375 (main): Use PACKAGE_VERSION instead of version_string.
4377 Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
4379 * basename.c: Remove __P-protected prototype for basename.
4380 Reported by François Pinard.
4381 (remove_suffix): Move to precede use. Remove prototype.
4382 Declare formal parameter SUFFIX to be const.
4384 * pathchk.c (validate_path): Cast path_max to size_t before
4385 comparing with strlen(path).
4387 * who-users.c (read_utmp): Declare n_read to be of type size_t
4390 Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
4392 * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
4393 id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
4394 sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
4395 yes.c (main): Initialize for internationalized message support:
4396 call setlocale, bindtextdomain, and textdomain.
4397 * system.h: Add definitions and includes for NLS.
4398 * Makefile.am (SUBDIRS): Add intl and po.
4399 * src/Makefile.am (datadir): Define.
4400 (localedir): Define.
4401 (DEFS): Add LOCALEDIR definition.
4402 (LDADD): Add @INTLLIBS@.
4403 * aclocal.m4: Add NLS-related macro definitions from
4404 gettext distribution.
4405 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
4406 HAVE_STPCPY): New macros.
4407 Add PACKAGE and VERSION.
4408 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
4409 (VERSION): Likewise.
4410 (ALL_LINGUAS): Define.
4411 (ud_GNU_GETTEXT): Use it.
4413 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
4415 Mostly from François Pinard.
4417 Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov)
4419 * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
4420 declare formal parameter.
4422 Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov)
4424 * getdate.y (RelativeMonth): Add 1900 to the year so that relative
4425 date specs that push the year through the end of the century work.
4426 For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
4427 From Peter Dalgaard (pd@kubism.ku.dk).
4429 Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
4431 * seq.c (main): Exit after processing --version.
4432 Reported by François Pinard.
4434 Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
4436 * expr.c (docolon): Don't initialize re_syntax_options to
4437 deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
4438 \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
4440 * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
4441 (skip) [_WIN32 && _O_BINARY]: Use it.
4442 (read_char): Likewise.
4443 (read_block): Likewise.
4444 [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
4445 Based on changes by Gary Newman <gnewman@shore.net>.
4447 Wed Feb 28 21:48:07 1996 Paul Eggert <eggert@twinsun.com>
4449 * configure.in (LOCALTIME_CACHE):
4450 Also define if localtime mishandles unsetting TZ.
4451 This works around a localtime bug in mips-dec-ultrix.
4453 Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov)
4455 * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
4456 (noinst_HEADERS): Add xstrtoul.h.
4458 * factor.c: General cleanup. Use xstrtoul, not atoi.
4459 Change output format. Allow inputs as large as ULONG_MAX.
4460 Allow more than one command line argument.
4462 * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
4463 of the pre-ANSI function definition so ansi2knr doesn't munge it.
4465 * src/Makefile.am: Adapt for automake-0.30.
4466 * lib/Makefile.am: Likewise.
4468 * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
4470 Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov)
4472 * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
4473 (MOSTLYCLEANFILES): Add who.c and users.c.
4474 (who.c): New rule to create this file. Concatenate definition of
4475 WHO and contents of who-users.c.
4476 (users.c): New rule to create this file. Concatenate definition of
4477 USERS and contents of who-users.c.
4479 Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
4481 * readtokens.c: Unprotoize.
4483 * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
4484 for function dcls and munge them.
4486 (arithdivf): Likewise.
4488 * test.c: __P-protect forward declarations.
4489 (main): Protoize function definition.
4491 * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
4494 * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
4495 so expr's pattern matching uses BASIC (not GNU-extended) REs.
4496 Reported by Jim Kingdon.
4498 * who-users.c (print_entry): Use strchr, not index.
4500 * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
4501 * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
4502 definition of AF_INET on at least SunOS 4.
4504 Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov)
4506 * who-users.c (main): When failing because there were
4507 `too many arguments,' say so.
4509 Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
4511 * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
4513 (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
4514 * lib/canon-host.c: New file.
4515 * lib/Makefile.am (su_SOURCES): Add canon-host.c.
4516 * src/who.c (print_entry): If possible, canonicalize the host hame.
4517 From Miles Bader (miles@gnu.ai.mit.edu).
4519 Update for automake-0.29.
4520 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
4521 * src/Makefile.am: Likewise.
4522 * lib/Makefile.am: Likewise.
4523 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
4524 * man/Makefile.am (man_MANS): Renamed from MANS.
4526 Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov)
4528 * lib/strftime.c (add_num_tz): New function.
4529 (strftime): Handle new %z format.
4530 * date.c (main): Accept new option, --rfc-822 (-R).
4531 (show_date): Use RFC822-mandated strftime format.
4532 From H. Peter Anvin (hpa@storm.net).
4533 (usage): Add a line describing the new option.
4535 * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
4536 before it's defined.
4538 Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov)
4540 * acconfig.h (PROTOTYPES): Define it.
4542 Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov)
4544 * aclocal.m4 (fp_PROG_INSTALL): New macro.
4545 * configure.in: Use it instead of AC_PROG_INSTALL.
4547 * who-users.c: Protoize.
4549 Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
4551 * stty.c: Protoize and __P-protect forward dcls.
4552 (visible): Change parameter type to unsigned int from unsigned char.
4553 (integer_arg): Use xstrtol instead of open-coding this.
4555 * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
4556 (HEADERS): Add xstrtol.h.
4558 * test.c (advance): Protoize function.
4560 * sleep.c (argdecode): Declare parameter const.
4562 Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
4564 * stty.c: Indent cpp directives.
4566 Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
4568 Use automake to generate Makefile.in files.
4569 * Makefile.am: New file.
4570 * doc/Makefile.am: New file.
4571 * lib/Makefile.am: New file.
4572 * man/Makefile.am: New file.
4573 * src/Makefile.am: New file.
4575 * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
4576 used in place of PROGS.
4578 Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
4580 * configure.in (PACKAGE, VERSION): New variables.
4581 (fp_C_PROTOTYPES): Use it.
4583 * printf.c (print_esc_char): Change type of argument from char
4584 to int to avoid potential promotion problem.
4585 * uname.c (print_element): Likewise.
4587 * system.h [__P]: New macro.
4589 * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
4590 hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
4591 printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
4592 whoami.c, yes.c: Protoize and __P-protect forward dcls.
4594 * who-users.c: New file. Renamed from who.c.
4595 * who.c: Define WHO and include who-users.c.
4596 * uses.c: Define USERS and include who-users.c.
4598 * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
4599 (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
4600 getgroups (0, NULL) to compute number of groups at run time
4601 rather than relying on NGROUPS_MAX at compile time.
4602 (print_full_info) [HAVE_GETGROUPS]: Likewise.
4603 Suggestion from Roland McGrath.
4605 * su.c: Remove NGROUPS_MAX junk. It wasn't being used.
4607 Wed Jan 3 19:03:26 1996 Paul Eggert <eggert@twinsun.com>
4609 * configure.in (LOCALTIME_CACHE): Define if tzset exists and
4610 if localtime caches TZ. Check for tzset.
4611 * acconfig.h (LOCALTIME_CACHE): New macro.
4612 * date.c (putenv): Declare.
4613 (universal_time): Remove.
4614 (main): If -u is given, set TZ to "UTC0"; this causes date to use
4615 UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
4616 (show_date): Just use localtime and a single format, since TZ will
4617 be set properly if -u is given.
4619 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
4621 * configure.in: Touch stamp-h only if config.h is remade.
4623 Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com)
4625 * test.c (usage): Clarify usage. From Karl Berry.
4627 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
4629 * Makefile.in (all et. al.): If make was invoked with -k and a
4630 sub-make fails, fail after the loop rather than exiting right away.
4631 Otherwise, make's -k option could be ineffective.
4633 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
4635 * Makefile.in (default): New default target. Depend on `all' to work
4636 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
4639 Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com)
4641 * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
4642 From Theodore Ts'o and Ulrich Windl.
4644 Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com)
4646 * test.c [TEST_STANDALONE]: Define.
4647 * src/Makefile.in (test.o): Remove special rule.
4649 Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com)
4651 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
4652 * configure.in: Use it.
4654 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
4655 (.c.o): Rewrite to be more like src/Makefile.in.
4656 Add line that (--with-autodeps) will include mkdep-Makefile.
4657 (distclean): Remove .deps.
4658 * src/Makefile.in: Likewise.
4660 * mkdep-Makefile: New file.
4661 * Makefile.in (DISTFILES): Add mkdep-Makefile.
4663 * doc/Makefile.in (mostlyclean): Remove *.info.
4665 * date.c: New option --reference=FILE (-r FILE) analogous to the
4666 like-named touch option.
4667 (main): Recognize it and give diagnostic for misuse.
4668 (usage): Describe briefly.
4669 From Franc,ois Pinard.
4671 * date.c (batch_convert): Close input stream also when it's not stdin.
4672 (main): Reorganize to do option-consistency checks before all else.
4674 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
4676 * man/Makefile.in (install-data, uninstall): Use sed not basename.
4677 The GNU Coding Standard suggests that only a select set of
4678 relatively standard utilities be used in Makefiles. basename is
4679 not among them. Suggested by Ulrich Drepper.
4681 Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com)
4683 * yes.c: Include system.h to get definition of _.
4685 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
4687 * system.h (_): Define macro -- as empty for now.
4688 * src/*.c: Annotate localizable strings with _(...). From Franc,ois.
4690 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
4693 Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com)
4695 * configure.in (AC_REPLACE_FUNCS): Add memcpy and memset.
4696 Add checks for floor, modf, and rint -- all used by seq.c.
4698 Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com)
4700 * getdate.y (Convert): Use 2037 as threshold, not 1999.
4701 Before years after 1999 were treated as invalid.
4702 From Andreas Schwab.
4704 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
4706 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
4707 Without this, SunOS doesn't get type for memchr.
4708 Reported by Kaveh Ghazi.
4710 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
4712 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
4714 * All Makefile.in (install-exec, install-exec): New targets.
4717 * all Makefile.in (maintainer-clean): Renamed from realclean
4720 Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com)
4722 * all source files (usage): Include one- or two-line synopsis
4723 in --help output. From Karl Berry.
4725 Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com)
4727 * lib/Makefile.in (maintainer-clean): Rename from realclean.
4728 (.PHONY): New dependencies.
4729 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
4731 Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com)
4733 * test.c (usage): Remove duplicate descriptions of --help
4734 and --version. From Karl Berry.
4736 * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
4740 * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
4741 Remove all reference to (now unused) safe-xstat.hin.
4743 Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com)
4745 * configure.in (AC_OUTPUT): Use echo, not date, to avoid creating
4746 unnecessary conflicts for people using version control software
4748 (AC_ARG_PROGRAM): Use it.
4750 Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com)
4752 * src/*.c: Update Copyright dates.
4754 Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com)
4756 * system.h: Separate errno declaration from STDC_HEADERS.
4757 Remove bcopy, bzero, strchr, strrchr definitions.
4759 * stty.c (main, set_window_size): Use memset instead of bzero.
4760 * su.c (correct_password): Likewise.
4762 * seq.c Remove \n's from error format strings.
4763 (main): Let `seq 1 1' work.
4764 Invoke usage always with 1 when failing.
4766 Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com)
4768 * src/Makefile.in (install): Fix rules for su to avoid relying on
4769 just-built `id' executable. That would lose when cross-compiling and
4770 on systems like GNU in which a user may have several effective IDs.
4771 (SOURCES, OBJECTS, PROGS): Add seq.
4772 * Makefile.in (PROGS): Add seq.
4774 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
4775 (AC_CHECK_FUNCS): Add strchr and strrchr.
4776 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
4778 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
4779 Separate errno declaration from STDC_HEADERS.
4781 Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com)
4783 * getdate.y (ToSeconds): Properly convert 12am and 12pm.
4784 From Takeshi Sone <ts1@tsn.or.jp>.
4786 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
4787 (all): Depend on safe-stat.h and safe-lstat.h.
4789 * date.c (batch_convert): Remove any trailing newline from offending
4790 line before including it in the `invalid date' error from `date -f'.
4791 Reported by Franc,ois Pinard.
4793 Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com)
4795 * factor.c: New file.
4796 * Makefile.in (PROGS): Add factor.
4797 * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
4800 Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com)
4802 * test.c (term): Running `./test \( a -o b' got a seg fault.
4803 From from Klaus.Reichl@aut.alcatel.at.
4805 Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com)
4807 * src/*.c: Include "error.h" rather than simply declaring
4809 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
4811 * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
4812 (distclean): Remove references to safe-l?stat.c.
4813 Remove all related rules and dependencies.
4815 * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
4816 Now that we always define the functions, these are no longer needed.
4818 * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
4819 * who.c (print_entry): Likewise.
4820 * test.c (test_stat, binary_operator): Likewise.
4821 (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
4823 Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com)
4825 * expr.c (docolon): Zero out re_buffer and re_regs before using them.
4826 From H.J. Lu <hjl@nynexst.com>.
4828 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
4830 * dirname.c (main): Use strchr and strrchr instead of index and rindex.
4831 * echo.c (main): Likewise.
4832 * env.c (main): Likewise.
4833 * pathchk.c (validate_path): Likewise.
4834 * printf.c (print_formatted, print_esc): Likewise.
4835 * test.c [member]: Likewise.
4836 * who.c (extract_trimmed_name): Likewise.
4837 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
4838 rindex instead of the other way around.
4840 * doc/Makefile.in (DISTFILES): Add getdate.texi.
4842 Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com)
4844 * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
4845 (AC_CHECK_HEADERS): Add stdlib.h.
4846 (LIBS): If the strtod replacement is required, check for pow in -lm.
4847 * src/Makefile.in (printf): Remove hard-coded -lm. Not every
4850 Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com)
4852 * who.c (list_entries): Delete. Split in two actually...
4853 (list_entries_users, list_entries_who, userid_compare): New functions.
4854 (list_entries_users): Sort the user names. Reported by
4856 Topologically sort the functions and remove fwd declarations.
4861 Copyright (C) 1994, 1995, 1996, 1997, 1999, 2000, 2001, 2002, 2006
4862 Free Software Foundation, Inc.
4864 Copying and distribution of this file, with or without
4865 modification, are permitted provided the copyright notice
4866 and this notice are preserved.