1 Sun Dec 8 07:22:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
3 =========== Update for automake-1.1k.
4 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.1k.
5 * configure.in (AM_CONFIG_HEADER): Use it.
6 (AC_OUTPUT): Remove stamp-h timestamping statement.
7 Now, AM_CONFIG_HEADER does it automatically.
8 * lib/Makefile.am (noinst_LIBRARIES): Rename to libsu.a as per
9 new automake requirement.
10 Rename su_* variables to libsu_a_*.
12 Sun Dec 8 00:08:44 1996 Jim Meyering <meyering@na-net.ornl.gov>
14 * src/stty.c (get_win_size): Rename formal parameter from fileno to FD.
16 Sat Dec 7 12:52:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
18 * src/chroot.c (main): Call setlocale, bindtextdomain, and textdomain.
19 From Michel Robitaille.
21 * configure.in (ALL_LINGUAS): Add Portuguese (pt).
23 * lib/getloadavg.c [__SVR4]: Define SVR4.
24 Remove duplicate `|| defined(SVR4)' disjunct guarding the
25 #define KERNEL_FILE "/unix" definiton.
27 * configure.in (jm_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use this variant
28 of the AM_ prefixed macro.
29 (check for TIOCGWINSZ in sys/pty): In essence, require
30 jm_HEADER_TIOCGWINSZ_IN_TERMIOS_H so that
31 $jm_cv_sys_tiocgwinsz_needs_termios_h (renamed from
32 $gwinsz_in_termios_h) is defined.
34 * lib/strftime.c (strftime): Remove " %Z" part of format for %c.
35 Correction from Paul Eggert.
37 Fri Dec 6 20:52:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
39 * acinclude.m4 (jm_FUNC_MKTIME): Rather than including the text of
40 AM_FUNC_MKTIME, simply AC_REQUIRE it.
42 Mon Dec 2 20:59:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
44 * configure.in (su_cv_func_ut_host_in_utmp): Move test that can
45 define WINSIZE_IN_PTEM to precede test that checks whether
46 `TIOCGWINSZ in sys/pty.h'. The latter test uses the symbol.
47 (jm_FUNC_MKTIME): Use this instead of AM_FUNC_MKTIME.
49 Sun Dec 1 13:07:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
51 * lib/getdate.y (date): Interpret the date, L/M/N, as YYYY/MM/DD
52 if L >= 1000, otherwise as MM/DD/YY. With this change,
53 date --date=DATE accepts dates like those in an RCS log listing.
55 Sat Nov 30 22:08:00 1996 Jim Meyering <meyering@na-net.ornl.gov>
57 * lib/strftime.c: Update from GNU libc.
59 Fri Nov 29 22:16:40 1996 Jim Meyering <meyering@na-net.ornl.gov>
61 * src/uname.c (main) [HAVE_SYSINFO && SI_ARCHITECTURE]: Support
62 --processor (-p). Print processor type.
65 Thu Nov 28 00:28:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
67 * configure.in (AM_GNU_GETTEXT): Renamed from ud_GNU_GETTEXT
69 (AM_FUNC_GETLINE): Move the test to just before the check for getdelim.
71 Sun Nov 24 11:02:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
73 * src/system.h [!defined STDIN_FILENO]: Define it.
74 [!defined STDOUT_FILENO]: Define it.
75 [!defined STDERR_FILENO]: Define it.
77 * src/stty.c (get_win_size): Take a FILENO parameter rather than
78 trying to get a size from both stdin and stdout.
80 Use STDIN_FILENO and STDOUT_FILENO instead of literal 0, 1.
82 ========== From Karl Heuer =========
83 * src/stty.c [TERMIOS_NEEDS_XOPEN_SOURCE]: Define _XOPEN_SOURCE.
84 i386-pc-isc3.0, needs that in order to cause all of the useful
85 termios symbols to be defined, instead of just those that are
86 required by POSIX. This enables all of: iuclc ixany olcuc ocrnl
87 onlcr onocr onlret ofill ofdel nl0 cr0 tab0 bs0 vt0 ff0 xcase.
89 [GWINSZ_IN_SYS_PTY]: Include sys/ioctl.h, sys/tty.h, and sys/pty.h.
91 [!VSUSP && !VSWTCH]: Map VSWTCH and CSWTCH to VSUSP and CSUSP resp.
92 termio.h defines VSWTCH, but termios.h defines VSUSP instead (since
93 POSIX requires that symbol). Define VSWTCH as a synonym if needed,
94 so that either one can be used on input.
95 (display_changed): If the slot for swtch is the same as the one for
96 susp, display only the setting for susp.
97 (display_all): Likewise.
99 (display_changed): Some systems still have (VEOF,VEOL) == (VMIN,VTIME).
100 On such systems, it's confusing to print both pairs. So, skip eof and
101 eol when icanon is unset, and skip min and time when icanon is set.
102 (display_all): Likewise.
104 (set_window_size): Check only stdin (the device being queried) for
105 window size info. You don't want "stty </dev/foo" to report the size
106 of your current window when /dev/foo has no size info.
107 (display_window_size): Likewise.
109 (screen_columns): Check only stdout for window size info. You want
110 "stty </dev/foo" to wrap columns at the right margin of your current
111 window, not the /dev/foo width.
113 * acconfig.h (GWINSZ_IN_SYS_PTY): Add #undef.
114 (TERMIOS_NEEDS_XOPEN_SOURCE): Add #undef.
116 * configure.in (whether termios.h needs _XOPEN_SOURCE): New test.
117 (whether TIOCGWINSZ is defined in sys/pty.h): New test.
119 Sat Nov 23 16:15:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
121 * lib/Makefile.am (EXTRA_DIST): Add getline.c now that getline
122 isn't mentioned in AC_REPLACE_FUNCS.
124 * env.c (usage): Alphabetize option descriptions the way sort -f would.
125 * test.c (usage): Likewise.
126 * who-users.c (usage): Likewise.
129 Fri Nov 22 20:33:26 1996 Jim Meyering <meyering@na-net.ornl.gov>
131 * configure.in (AC_REPLACE_FUNCS): Don't try to replace getline this
132 way. AM_FUNC_GETLINE does it now.
134 * configure.in New test to check for TIOCGWINSZ in sys/pty.h.
135 * config.h.in (GWINSZ_IN_SYS_PTY): Add #undef.
138 * src/printf.c (main): Warn if excess arguments are ignored.
139 E.g., printf foo bar now warns that it is ignoring the single
140 non-format argument, bar.
142 Wed Nov 20 20:37:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
144 * lib/xgethostname.c (xgethostname): Work around bug in SunOS5.5's
145 gethostname. Reported by Fletcher Mattox.
147 Tue Nov 19 23:01:01 1996 Jim Meyering <meyering@na-net.ornl.gov>
149 * configure.in (AM_SANITY_CHECK_CC): Remove it. Autoconf-2.11
151 (OPTIONAL_BIN_ZCRIPTS): Rename from OPTIONAL_SCRIPTS -- because
152 automake-1.1g couldn't deal with the _SCRIPTS suffix.
153 * src/Makefile.am (bin_SCRIPTS): Rename @OPTIONAL_SCRIPTS@.
155 Sun Nov 17 20:49:37 1996 Jim Meyering <meyering@na-net.ornl.gov>
157 * src/id.c (main): Ignore -a, for compatibility with SVR4.
158 Suggestion from Noah Friedman.
160 Mon Nov 4 20:24:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
162 * configure.in (test for group_member): Handle it separately
163 so I can keep the hyphen (not the underscore) in the filename.
165 Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
167 * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
168 returns an error other than buffer overflow, exit with an error
169 message instead of allocating infinite amounts of space.
170 [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
171 <errno.h>: New include.
172 [!errno] (errno): New declaration.
174 * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
176 * configure.in: Check for -linet library before checking for the
177 gethostbyname function. Suggested by Karl Heuer.
180 * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
181 Based on a test from Karl Heuer.
183 Sun Nov 3 14:57:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
185 * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
186 am_cv_saved_LIBS from LIBS. From Karl Heuer.
188 * src/stty.c (recover_mode): Fail also if there are too many fields.
191 * lib/canon-host.c: Include sys/types.h for the definitions
192 (otherwise missing on some systems) of caddr_t (used by
193 sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
195 Sat Nov 2 00:16:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
197 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
198 Otherwise, the generated info files have names longer than
199 the 14-byte max of some old systems.
200 Reported by Karl Heuer.
202 * src/date.c (main): Give better diagnostic.
203 Suggestion from Karl Berry.
205 Thu Oct 31 18:28:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
207 * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
208 * lib/getdate.y: Remap yacc globals to have gd_ prefix.
209 Suggestion to do as in gdb/c-exp.y from Tom Tromey.
211 Mon Oct 28 17:40:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
213 * src/Makefile.am (install-exec-local): Redirect stderr of chown to
214 /dev/null and suggest running `make install-root' upon failure to
215 install su. Suggestions from François Pinard.
217 * configure.in: Don't output confusing diagnostic: `checking for
218 shadow password routines'. Suggestion from François Pinard.
220 Thu Oct 24 13:50:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund\
223 * src/tee.c (main): Ignore SIGPIPE.
225 Wed Oct 23 23:42:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
227 * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
228 with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
229 loses with Dynix/PTX.
230 (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
231 Suggestion from Marcus Daniels.
233 Mon Oct 21 16:49:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
235 * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
236 defines or includes -- Linux systems simply read /proc/loadavg.
239 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
241 * configure.in: Remove hack that created link from group_member.c
244 * lib/group_member.c: New file. Renamed from group-member.c.
245 * lib/group-member.c: Delete.
247 * src/stty.c (main): Remove TAB from diagnostic, for consistency.
249 Sun Oct 20 09:03:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
251 * Makefile.am (install-root): Add it here, too.
253 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
255 * src/Makefile.am (install-root): New rule.
256 Suggestion from François Pinard.
258 * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
259 directly. From Ulrich Drepper.
261 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
262 (EXTRA_DIST): Remove @README_ALPHA@.
264 * configure.in: Remove README_ALPHA related code. Automake takes
265 care of it automatically now when in gnits mode.
267 * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
268 #include $srcdir/lib/getloadavg.c. The latter isn't defined at that
269 point in configure script. From Eric Backus.
271 Fri Oct 18 21:31:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
273 * Makefile.am (cvs-dist): Uncomment cvs tag command.
274 (cvs-dist): Use cvs tag's -c option.
276 Thu Oct 17 23:48:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
278 * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
279 using YP. From Arne Juul.
281 Sun Oct 13 07:34:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
283 * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
284 * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
285 (by saving and restoring initial value). Instead, arrange for
286 substitution of @GETLOADAVG_LIBS@.
287 * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
290 * configure.in (ALL_LINGUAS): Add swedish (sv).
292 Fri Oct 11 22:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
294 * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
295 call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
298 * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
300 * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
301 with the following changes:
302 - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
303 Reported by Eric Backus.
304 - Check for Solaris' libkstat.
305 - Define C_GETLOADAVG if we end up using getloadavg.c.
307 * acconfig.h (C_GETLOADAVG): Add it.
310 * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
311 getloadavg-related libraries only when linking uptime.
313 Thu Oct 10 23:50:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
315 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
316 (su_SOURCES): Put them here instead.
317 Remove rules for building getdate.c and posixtm.c; now automake
318 generates those rules.
319 * lib/ylwrap: New file.
320 * lib/interlock: New file.
322 Wed Oct 9 00:26:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
324 * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi.
326 * lib/strftime.c (strftime): Accommodate the broken C compiler
327 that comes with SunOS -- don't initialize aggregates in decls of
328 automatic variables. Reported by Kaveh Ghazi.
330 * tests/: Renamed checks/ directory.
331 * Makefile.am (SUBDIRS): Rename checks to tests.
332 * configure.in (AC_OUTPUT): Rename checks to tests.
334 * configure.in (/proc/uptime check): Guard the read of /proc/uptime
335 with an existence test to avoid a messy configure-time warning on
336 systems that lack that special file. Reported by Kaveh R. Ghazi.
338 * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
339 not $LIB. From Kaveh R. Ghazi.
341 * checks/nice: Protect echoed args with leading `x' so echo doesn't
342 interpret leading -n on e.g. SunOS systems.
344 Mon Oct 7 18:46:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
346 * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
348 * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
349 (su_SOURCES): Remove memcmp.c.
350 Automake automatically includes at least these, now.
351 From François Pinard.
353 * lib/Makefile.am (su_SOURCES): Remove getline.c.
355 Sat Oct 5 11:38:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
357 * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
358 it's AC_REPLACE'd and already in EXTRA_DIST.
360 * configure.in: Use AM_SANITY_CHECK_CC.
362 * configure.in: Use AM_FUNC_ERROR_AT_LINE.
363 * lib/Makefile.am (EXTRA_DIST): Put error.c here.
364 (su_SOURCES): Remove error.c
365 Suggested by Ulrich Drepper.
367 * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
368 * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
369 in the four installed scripts.
370 * src/*.sh: Update --version output to conform to the coding standard.
372 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
373 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
374 checking... messages don't get nested.
376 * configure.in (GNU_PACKAGE): New variable.
377 (PACKAGE_VERSION): Remove it.
379 * acconfig.h (GNU_PACKAGE): New variable.
380 (PACKAGE_VERSION): Remove now-unused variable.
382 * src/*.c: Update --version output to conform to the coding standard.
384 Sun Sep 22 22:41:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
386 * configure.in (AC_CHECK_HEADERS): Alphabetize.
387 Update for automake-1.1e.
389 Thu Sep 19 07:47:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
391 * lib/regex.c: Merge with FSF version.
392 * lib/getloadavg.c: Replace with FSF version.
394 Mon Sep 16 23:13:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
396 * lib/strftime.c (strftime): New version, from GNU libc.
398 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
400 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
402 Mon Sep 9 22:10:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
404 * configure.in: Improve handling of math library so -lm is used
405 only when it's actually required. That makes a difference when
406 using dynamic linking.
407 Remove check that added -lm to LIBS.
408 (SQRT_LIBM): Test for and AC_SUBST it.
409 (POW_LIBM): Likewise.
410 (SEQ_LIBM): Likewise.
411 Motivation and suggestions from Ulrich Drepper.
413 * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
414 Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
415 Also set corresponding _DEPENDENCIES variables.
417 Sat Sep 7 12:41:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
419 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
421 * lib/getdate.y: Define and use upper case variants of ctype.h
422 is* macros. From Bruno Haible.
424 Thu Sep 5 22:12:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
426 * lib/strftime.c: New version from glibc.
428 Wed Sep 4 23:39:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
430 * configure.in (ALL_LINGUAS): Add dutch (nl).
432 Mon Sep 2 10:52:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
434 * src/*.c (usage): Tell where to report bugs.
436 Sun Sep 1 07:56:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
438 * configure.in (AM_FUNC_MKTIME): Use it.
439 (AC_REPLACE_FUNCS): Remove mktime.
440 (AM_INIT_AUTOMAKE): Use it.
441 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
442 (AC_PROG_MAKE_SET): Likewise.
443 (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
444 AM_ prefix for latest automake/aclocal.
446 * Makefile.am (EXTRA_DIST): Add acinclude.m4.
448 * acinclude.m4: New file -- derived from aclocal.m4.
449 * aclocal.m4: This file is now generated by the aclocal program
450 (which comes with the automake package.)
452 Sat Aug 17 00:14:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
454 * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
455 formats and reverts to old behavior where unrecognized format like
456 %E is treated as eqivalent to `E'.
458 Sun Aug 4 09:14:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
460 * checks/: New directory.
461 * checks/Makefile.am: New file.
462 * checks/nice: New file. Derived from tests from Eric Backus.
463 * configure.in (AC_OUTPUT): Add new directory: checks.
464 * Makefile.am (SUBDIRS): Likewise.
466 * src/nice.c (main): Allow `+' in options like -+8 and -+13.
468 Fri Aug 2 21:45:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
470 * src/nice.c (main): Set minus_flag to zero in two places.
471 Otherwise, `nice --1 -3' would mistakenly do the equivalent of
472 `nice --3'. Thanks to Eric Backus <ericb@lsid.hp.com> for the
475 * configure.in (check for /proc/uptime): New check.
476 * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols
478 *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
482 Thu Aug 1 22:38:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
484 * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
485 It isn't necessary because the cpp-time checks of getopt.c and
486 getopt1.c are at least as good.
487 * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
488 (su_SOURCES): Add getopt.c and getopt1.c
489 This reverts much of the April 23 change.
491 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
493 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
494 redefinition warnings on solaris.
495 (textdomain) [!ENABLE_NLS]: Likewise.
497 Sun Jul 21 09:47:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
499 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
500 Add related check for the getdelim function.
501 From Ulrich Drepper -- as done in gettext.
503 * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
504 From Thomas Olsson <d95to@efd.lth.se>.
506 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
508 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
509 separate PACKAGE and VERSION.
511 Wed Jul 17 23:13:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
513 * src/chroot.c: Include <sys/types.h> before system.h.
514 * src/seq.c: Likewise.
515 * src/yes.c: Likewise.
518 Tue Jul 16 00:06:33 1996 Jim Meyering <meyering@na-net.ornl.gov>
520 * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
521 Omitting that second arg made some HPUX C compiler report an error.
524 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
526 * src/who-users.c (print_uptime): Reverse `days' and `day' in
527 uptime message. From Kaveh R. Ghazi.
529 * Many files: Update FSF address.
531 Sun Jul 14 20:05:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
533 * src/who-users.c (print_uptime): Use 0, not undefined errno in
534 couldn't-get-boot-time diagnostic. From Ulrich Drepper.
536 Sat Jul 13 14:22:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
538 * src/chroot.c (usage): Add a `\' after `\n' in usage message.
539 Otherwise, SunOS's /bin/cc chokes.
541 * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
542 GWINSZ_BROKEN can't be defined anymore.
544 * configure.in (boot time test): Use AC_EGREP_CPP instead of
545 AC_EGREP_HEADER; #endif, instead of #fi.
546 (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
547 these macros instead of the tests from which they were derived.
548 ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
550 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
552 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
553 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
554 those options on that system, sys/stat.h gets compile errors.
555 With help from Marcus Daniels.
557 * getopt.c: Update from gettext-0.10.23.
558 * getopt1.c: Likewise.
559 * getopt.h: Likewise.
561 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
563 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
565 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
567 Sat Jul 6 12:47:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
569 * configure.in (AC_REPLACE_FUNCS): Add group_member.
570 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
571 * lib/Makefile.am (su_SOURCES): Remove group-member.c.
572 (EXTRA_DIST): Add group-member.c here.
574 Thu Jul 4 22:40:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
576 * src/expr.c (docolon): Remove space before newline in usage message.
578 Sat Jun 29 18:58:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
580 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
581 it in the output of --version. Reported by RMS.
583 Tue Jun 18 22:14:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
585 * aclocal.m4: Update from gettext-0.10.20.
586 * ABOUT-NLS: Likewise.
589 Sun Jun 16 13:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
591 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
593 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
595 * po/Makefile.in.in: Update from gettext-0.10.16.
597 * ABOUT-NLS: Likewise.
598 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
599 gettext-related ones.
600 Update from gettext-0.10.16.
602 Wed May 29 21:28:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
604 * expr.c (docolon): Give a warning when the first character
605 of the basic regular expression is `^'.
607 Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
609 * id.c (xgetgroups): New function, factored out of
610 print_group_list and print_full_info.
611 (print_group_list): Call it.
612 (print_full_info): Call it.
614 * lib/Makefile.am (getdate.c): Disable dependencies that can
615 require rerunning YACC when not in maintainer mode.
616 (posixtm.c): Likewise.
618 Tue May 14 18:47:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
620 * id.c (print_group_list): When USERNAME is specified use
621 getugroups to get the number of groups.
622 (print_full_info): Likewise.
624 Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
626 * seq.c (usage): Make it clearer.
628 Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
630 * expr.c (main): Don't recognize --help, --h, --he, --version,
631 --v, etc. if the POSIXLY_CORRECT environment variable is set.
632 * echo.c (main): Likewise.
633 * printf.c (main): Likewise.
634 * test.c (main): Likewise.
636 * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
638 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
640 * configure.in: Require autoconf-2.10.
642 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
643 * configure.in (jm_MAINTAINER_MODE): Use it.
645 Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
647 * lib/strftime.c: Update from GNU libc.
649 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
651 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
652 * seq.c: Remove useless void casts of *printf return values.
654 Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
656 * basename.c (usage): Mark translatable strings.
657 * chroot.c (main): Likewise.
658 * basename.c (main): Separate messages about `too few' and `too many'
659 arguments to ease translation.
660 * dirname.c (main): Likewise.
661 * date.c (usage): Change TAB in message to spaces. Doing that seems
662 to have worked around a problem with something in gettext that was
663 producing a truncated usage message for date's usage.
664 From François Pinard.
666 Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
668 * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
669 Otherwise, some systems lose because the value AC_C_INLINE choses
670 with plain `cc' is different from that chosen when using the ANSI-mode
671 C compiler. From Kaveh Ghazi.
673 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
675 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
676 * configure.in: Use it.
677 * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
678 (EXTRA_DIST): Add getopt.c and getopt1.c
680 * whoami.c (main): Declare to return int, not void.
681 * who-users.c (main): Likewise.
682 * yes.c (main): Likewise.
684 * src/*.c, src/*.h: Update Copyright years to include 1996.
686 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
688 * date.c (usage): Describe new %V format. From Karl Berry.
690 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
692 Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov)
694 * chroot.c (usage): Improve help message.
695 Enclose message strings in _().
696 * seq.c (usage): Improve help message.
697 * factor.c (usage): Likewise.
700 Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov)
702 * Makefile.am (cvs-dist): New rule. Based on the one from
703 Tom Tromey's automake.
705 Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
707 * basename.c (basename): Rewrite so it doesn't rely on strrchr,
708 and hence doesn't need to include string.h -- on some alpha-based
709 OSF systems, there's a conflicting prototype for basename in string.h.
710 Reported by Kaveh Ghazi.
712 * configure.in (AC_REPLACE_FUNCS): Add basename.
713 * lib/Makefile.am (EXTRA_DIST): Add basename.c.
714 (su_SOURCES): Remove basename.c.
717 Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
719 * src/Makefile.am (who.c): Qualify who-users.c reference with
722 (uptime.c): Likewise.
723 From François Pinard.
725 * configure.in: Always invoke AC_GETLOADAVG, not just if we're
728 Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
730 * getloadavg.c: Test cpp-defined __sun as well as sun, because
731 in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
733 * date.c (usage): Add missing `\n\' at the end of newly added
736 * who-users.c (print_uptime): Call getloadavg only if we have it.
738 Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
740 * configure.in (LINGUAS): Add de.
742 * date.c (usage): Describe %e and %z. Reported by Karl Berry.
744 * who-users.c: Mark translatable strings in new code.
746 Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov)
748 * configure.in: Add test for boot_time.
751 * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
753 * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
754 (BUILT_SOURCES): Add uptime.c.
755 (MOSTLYCLEANFILES): Add uptime.c.
756 (uptime.c): Add rule to build it from who-users.c.
758 * who-users.c: Reindent.
759 (UT_TIME_MEMBER): New macro.
760 (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
761 (print_entry): Likewise.
763 Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov)
765 * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
767 Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
769 * seq.c (print_numbers): Rearrange loops to get it right.
770 Reported by Karl Eichwalder <ke@ke.Central.DE>.
772 * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
773 is inconsistent with START and LIMIT.
774 (usage): Clean up help message.
776 * factor.c (usage): Give minimal description of the program.
777 (print_factors): Give a better diagnostic.
778 (main): Suggest --help upon failure.
779 Reported by Karl Eichwalder <ke@ke.Central.DE>.
781 * seq.c (print_numbers): Fix off-by-one error in
782 backwards-counting loop. Reported by Karl Eichwalder.
784 * strftime.c (mon_week_ISO): New function to implement new %V format.
785 (sun_week): Make TM parameter `const'.
786 (mon_week): Likewise.
787 (mon_week): Rewrite to implement %W format correctly.
788 (strftime): Handle %V format.
789 Reported by Arne Juul.
791 Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
793 * strftime.c (sun_week): Make %U work properly.
794 Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'.
796 * nice.c (main): Simplify option handling. Before, `nice -18 -- nice'
797 improperly printed `8'. Patch from Frank Korz.
798 (main): Use `if' stmt, not while loop, around getopt invocation.
799 Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
800 follows a long option) gets an error.
802 Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
804 * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
805 `-Xc -D__EXTENSIONS__' because of problems with Solaris header
806 files. Suggested by Kaveh Ghazi.
808 Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov)
810 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
811 when srcdir != builddir. From Kaveh Ghazi.
813 * lib/getugroups.c: Include stdio.h before grp.h. Because
814 <grp.h> on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi.
816 Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
818 * configure.in: Simplify checking for math library.
819 This also eliminates some confusing output from configure.
820 Suggested by François Pinard.
822 Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov)
824 * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
825 -I../intl. With the former, compiles didn't find libintl.h when
826 configured with `--srcdir=..'. Reported by Marcus Daniels
827 <marcus@sysc.pdx.edu>.
829 * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
832 * src/Makefile.am (EXTRAdir): Set to $(bindir).
834 Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov)
836 * ChangeLog.0: New file.
837 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
839 Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov)
841 * man/Makefile.am (man_MANS): Add chroot.1.
842 * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
844 Sun Dec 24 10:55:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
846 * configure.in: Check for chroot a la uname.
847 * src/chroot.c, man/chroot.1: New files.
849 Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
851 * su.c: Protoize and reorder functions to obviate forward decls.
853 * seq.c: Make parameters const where appropriate.
854 Rename global FROM to START.
855 (print_numbers): Rewrite loops to avoid incrementing. Instead,
856 use `x = first + i * increment' paradigm. Otherwise, with inexact
857 increment, you could miss the last value.
859 * xstrtod.c: New file.
860 * xstrtod.h: New file.
861 * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
862 * seq.c: Include xstrtod.h.
863 (scan_double_arg): Use xstrtod rather than strtod directly.
865 * src/*: Update FSF's address.
867 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
869 * src/*.c (main): Declare to be of type int, not void.
871 Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
873 * configure.in (PACKAGE_VERSION): New macro.
874 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
875 * acconfig.h (PACKAGE_VERSION): Add it.
876 * src/Makefile.am: Remove rules for generating version.c.
877 Remove references to version.o, version.h, and stamp-v.
878 [.sh]: Change @VERSION@ to @PKG_VERSION@.
879 On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
880 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
881 (install-exec-local): New target/rules to make the installed su
882 binary setuid root or failing that, to delete it.
883 * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
885 * version.c: Remove file.
886 * version.h: Remove file.
887 * basename.c date.c dirname.c echo.c env.c expr.c factor.c
888 hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
889 pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
890 who-users.c whoami.c yes.c: Don't include version.h.
891 (main): Use PACKAGE_VERSION instead of version_string.
893 Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
895 * basename.c: Remove __P-protected prototype for basename.
896 Reported by François Pinard.
897 (remove_suffix): Move to precede use. Remove prototype.
898 Declare formal parameter SUFFIX to be const.
900 * pathchk.c (validate_path): Cast path_max to size_t before
901 comparing with strlen(path).
903 * who-users.c (read_utmp): Declare n_read to be of type size_t
906 Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
908 * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
909 id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
910 sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
911 yes.c (main): Initialize for internationalized message support:
912 call setlocale, bindtextdomain, and textdomain.
913 * system.h: Add definitions and includes for NLS.
914 * Makefile.am (SUBDIRS): Add intl and po.
915 * src/Makefile.am (datadir): Define.
917 (DEFS): Add LOCALEDIR definition.
918 (LDADD): Add @INTLLIBS@.
919 * aclocal.m4: Add NLS-related macro definitions from
920 gettext distribution.
921 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
922 HAVE_STPCPY): New macros.
923 Add PACKAGE and VERSION.
924 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
926 (ALL_LINGUAS): Define.
927 (ud_GNU_GETTEXT): Use it.
929 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
931 Mostly from François Pinard.
933 Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov)
935 * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
936 declare formal parameter.
938 Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov)
940 * getdate.y (RelativeMonth): Add 1900 to the year so that relative
941 date specs that push the year through the end of the century work.
942 For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
943 From Peter Dalgaard (pd@kubism.ku.dk).
945 Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
947 * seq.c (main): Exit after processing --version.
948 Reported by François Pinard.
950 Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
952 * expr.c (docolon): Don't initialize re_syntax_options to
953 deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
954 \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
956 * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
957 (skip) [_WIN32 && _O_BINARY]: Use it.
958 (read_char): Likewise.
959 (read_block): Likewise.
960 [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
961 Based on changes by Gary Newman <gnewman@shore.net>.
963 Wed Feb 28 21:48:07 1996 Paul Eggert <eggert@twinsun.com>
965 * configure.in (LOCALTIME_CACHE):
966 Also define if localtime mishandles unsetting TZ.
967 This works around a localtime bug in mips-dec-ultrix.
969 Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov)
971 * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
972 (noinst_HEADERS): Add xstrtoul.h.
974 * factor.c: General cleanup. Use xstrtoul, not atoi.
975 Change output format. Allow inputs as large as ULONG_MAX.
976 Allow more than one command line argument.
978 * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
979 of the pre-ANSI function definition so ansi2knr doesn't munge it.
981 * src/Makefile.am: Adapt for automake-0.30.
982 * lib/Makefile.am: Likewise.
984 * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
986 Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov)
988 * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
989 (MOSTLYCLEANFILES): Add who.c and users.c.
990 (who.c): New rule to create this file. Concatenate definition of
991 WHO and contents of who-users.c.
992 (users.c): New rule to create this file. Concatenate definition of
993 USERS and contents of who-users.c.
995 Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
997 * readtokens.c: Unprotoize.
999 * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
1000 for function dcls and munge them.
1002 (arithdivf): Likewise.
1004 * test.c: __P-protect forward declarations.
1005 (main): Protoize function definition.
1007 * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
1010 * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
1011 so expr's pattern matching uses BASIC (not GNU-extended) REs.
1012 Reported by Jim Kingdon.
1014 * who-users.c (print_entry): Use strchr, not index.
1016 * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
1017 * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
1018 definition of AF_INET on at least SunOS 4.
1020 Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov)
1022 * who-users.c (main): When failing because there were
1023 `too many arguments,' say so.
1025 Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
1027 * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
1029 (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
1030 * lib/canon-host.c: New file.
1031 * lib/Makefile.am (su_SOURCES): Add canon-host.c.
1032 * src/who.c (print_entry): If possible, canonicalize the host hame.
1033 From Miles Bader (miles@gnu.ai.mit.edu).
1035 Update for automake-0.29.
1036 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
1037 * src/Makefile.am: Likewise.
1038 * lib/Makefile.am: Likewise.
1039 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
1040 * man/Makefile.am (man_MANS): Renamed from MANS.
1042 Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov)
1044 * lib/strftime.c (add_num_tz): New function.
1045 (strftime): Handle new %z format.
1046 * date.c (main): Accept new option, --rfc-822 (-R).
1047 (show_date): Use RFC822-mandated strftime format.
1048 From H. Peter Anvin (hpa@storm.net).
1049 (usage): Add a line describing the new option.
1051 * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
1052 before it's defined.
1054 Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov)
1056 * acconfig.h (PROTOTYPES): Define it.
1058 Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov)
1060 * aclocal.m4 (fp_PROG_INSTALL): New macro.
1061 * configure.in: Use it instead of AC_PROG_INSTALL.
1063 * who-users.c: Protoize.
1065 Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
1067 * stty.c: Protoize and __P-protect forward dcls.
1068 (visible): Change parameter type to unsigned int from unsigned char.
1069 (integer_arg): Use xstrtol instead of open-coding this.
1071 * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
1072 (HEADERS): Add xstrtol.h.
1074 * test.c (advance): Protoize function.
1076 * sleep.c (argdecode): Declare parameter const.
1078 Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
1080 * stty.c: Indent cpp directives.
1082 Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
1084 Use automake to generate Makefile.in files.
1085 * Makefile.am: New file.
1086 * doc/Makefile.am: New file.
1087 * lib/Makefile.am: New file.
1088 * man/Makefile.am: New file.
1089 * src/Makefile.am: New file.
1091 * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
1092 used in place of PROGS.
1094 Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
1096 * configure.in (PACKAGE, VERSION): New variables.
1097 (fp_C_PROTOTYPES): Use it.
1099 * printf.c (print_esc_char): Change type of argument from char
1100 to int to avoid potential promotion problem.
1101 * uname.c (print_element): Likewise.
1103 * system.h [__P]: New macro.
1105 * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
1106 hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
1107 printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
1108 whoami.c, yes.c: Protoize and __P-protect forward dcls.
1110 * who-users.c: New file. Renamed from who.c.
1111 * who.c: Define WHO and include who-users.c.
1112 * uses.c: Define USERS and include who-users.c.
1114 * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
1115 (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
1116 getgroups (0, NULL) to compute number of groups at run time
1117 rather than relying on NGROUPS_MAX at compile time.
1118 (print_full_info) [HAVE_GETGROUPS]: Likewise.
1119 Suggestion from Roland McGrath.
1121 * su.c: Remove NGROUPS_MAX junk. It wasn't being used.
1123 Wed Jan 3 19:03:26 1996 Paul Eggert <eggert@twinsun.com>
1125 * configure.in (LOCALTIME_CACHE): Define if tzset exists and
1126 if localtime caches TZ. Check for tzset.
1127 * acconfig.h (LOCALTIME_CACHE): New macro.
1128 * date.c (putenv): Declare.
1129 (universal_time): Remove.
1130 (main): If -u is given, set TZ to "UTC0"; this causes date to use
1131 UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
1132 (show_date): Just use localtime and a single format, since TZ will
1133 be set properly if -u is given.
1135 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1137 * configure.in: Touch stamp-h only if config.h is remade.
1139 Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com)
1141 * test.c (usage): Clarify usage. From Karl Berry.
1143 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
1145 * Makefile.in (all et. al.): If make was invoked with -k and a
1146 sub-make fails, fail after the loop rather than exiting right away.
1147 Otherwise, make's -k option could be ineffective.
1149 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
1151 * Makefile.in (default): New default target. Depend on `all' to work
1152 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
1155 Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com)
1157 * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
1158 From Theodore Ts'o and Ulrich Windl.
1160 Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com)
1162 * test.c [TEST_STANDALONE]: Define.
1163 * src/Makefile.in (test.o): Remove special rule.
1165 Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com)
1167 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
1168 * configure.in: Use it.
1170 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
1171 (.c.o): Rewrite to be more like src/Makefile.in.
1172 Add line that (--with-autodeps) will include mkdep-Makefile.
1173 (distclean): Remove .deps.
1174 * src/Makefile.in: Likewise.
1176 * mkdep-Makefile: New file.
1177 * Makefile.in (DISTFILES): Add mkdep-Makefile.
1179 * doc/Makefile.in (mostlyclean): Remove *.info.
1181 * date.c: New option --reference=FILE (-r FILE) analogous to the
1182 like-named touch option.
1183 (main): Recognize it and give diagnostic for misuse.
1184 (usage): Describe briefly.
1185 From Franc,ois Pinard.
1187 * date.c (batch_convert): Close input stream also when it's not stdin.
1188 (main): Reorganize to do option-consistency checks before all else.
1190 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
1192 * man/Makefile.in (install-data, uninstall): Use sed not basename.
1193 The GNU Coding Standard suggests that only a select set of
1194 relatively standard utilities be used in Makefiles. basename is
1195 not among them. Suggested by Ulrich Drepper.
1197 Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com)
1199 * yes.c: Include system.h to get definition of _.
1201 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
1203 * system.h (_): Define macro -- as empty for now.
1204 * src/*.c: Annotate localizable strings with _(...). From Franc,ois.
1206 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
1209 Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com)
1211 * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
1212 Add checks for floor, modf, and rint -- all used by seq.c.
1214 Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com)
1216 * getdate.y (Convert): Use 2037 as threshold, not 1999.
1217 Before years after 1999 were treated as invalid.
1218 From Andreas Schwab.
1220 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
1222 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
1223 Without this, SunOS doesn't get type for memchr.
1224 Reported by Kaveh Ghazi.
1226 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
1228 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
1230 * All Makefile.in (install-exec, install-exec): New targets.
1233 * all Makefile.in (maintainer-clean): Renamed from realclean
1236 Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com)
1238 * all source files (usage): Include one- or two-line synopsis
1239 in --help output. From Karl Berry.
1241 Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com)
1243 * lib/Makefile.in (maintainer-clean): Rename from realclean.
1244 (.PHONY): New dependencies.
1245 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
1247 Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com)
1249 * test.c (usage): Remove duplicate descriptions of --help
1250 and --version. From Karl Berry.
1252 * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
1256 * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
1257 Remove all reference to (now unused) safe-xstat.hin.
1259 Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com)
1261 * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
1262 unnecessary conflicts for people using version control software
1264 (AC_ARG_PROGRAM): Use it.
1266 Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com)
1268 * src/*.c: Update Copyright dates.
1270 Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com)
1272 * system.h: Separate errno declaration from STDC_HEADERS.
1273 Remove bcopy, bzero, strchr, strrchr definitions.
1275 * stty.c (main, set_window_size): Use memset instead of bzero.
1276 * su.c (correct_password): Likewise.
1278 * seq.c Remove \n's from error format strings.
1279 (main): Let `seq 1 1' work.
1280 Invoke usage always with 1 when failing.
1282 Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com)
1284 * src/Makefile.in (install): Fix rules for su to avoid relying on
1285 just-built `id' executable. That would lose when cross-compiling and
1286 on systems like GNU in which a user may have several effective IDs.
1287 (SOURCES, OBJECTS, PROGS): Add seq.
1288 * Makefile.in (PROGS): Add seq.
1290 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
1291 (AC_CHECK_FUNCS): Add strchr and strrchr.
1292 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
1294 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
1295 Separate errno declaration from STDC_HEADERS.
1297 Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com)
1299 * getdate.y (ToSeconds): Properly convert 12am and 12pm.
1300 From Takeshi Sone <ts1@tsn.or.jp>.
1302 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
1303 (all): Depend on safe-stat.h and safe-lstat.h.
1305 * date.c (batch_convert): Remove any trailing newline from offending
1306 line before including it in the `invalid date' error from `date -f'.
1307 Reported by Franc,ois Pinard.
1309 Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com)
1311 * factor.c: New file.
1312 * Makefile.in (PROGS): Add factor.
1313 * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
1316 Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com)
1318 * test.c (term): Running `./test \( a -o b' got a seg fault.
1319 From from Klaus.Reichl@aut.alcatel.at.
1321 Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com)
1323 * src/*.c: Include "error.h" rather than simply declaring
1325 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
1327 * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
1328 (distclean): Remove references to safe-l?stat.c.
1329 Remove all related rules and dependencies.
1331 * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
1332 Now that we always define the functions, these are no longer needed.
1334 * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
1335 * who.c (print_entry): Likewise.
1336 * test.c (test_stat, binary_operator): Likewise.
1337 (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
1339 Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com)
1341 * expr.c (docolon): Zero out re_buffer and re_regs before using them.
1342 From H.J. Lu <hjl@nynexst.com>.
1344 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
1346 * dirname.c (main): Use strchr and strrchr instead of index and rindex.
1347 * echo.c (main): Likewise.
1348 * env.c (main): Likewise.
1349 * pathchk.c (validate_path): Likewise.
1350 * printf.c (print_formatted, print_esc): Likewise.
1351 * test.c [member]: Likewise.
1352 * who.c (extract_trimmed_name): Likewise.
1353 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
1354 rindex instead of the other way around.
1356 * doc/Makefile.in (DISTFILES): Add getdate.texi.
1358 Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com)
1360 * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
1361 (AC_CHECK_HEADERS): Add stdlib.h.
1362 (LIBS): If the strtod replacement is required, check for pow in -lm.
1363 * src/Makefile.in (printf): Remove hard-coded -lm. Not every
1366 Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com)
1368 * who.c (list_entries): Delete. Split in two actually...
1369 (list_entries_users, list_entries_who, userid_compare): New functions.
1370 (list_entries_users): Sort the user names. Reported by
1372 Topologically sort the functions and remove fwd declarations.