1 Mon Nov 4 20:24:31 1996 Jim Meyering <meyering@na-net.ornl.gov>
3 Thu Oct 31 19:32:32 1996 Miles Bader <miles@gnu.ai.mit.edu>
5 * lib/xgethostname.c [ENAMETOOLONG] (xgethostname): If gethostname
6 returns an error other than buffer overflow, exit with an error
7 message instead of allocating infinite amounts of space.
8 [!EXIT_FAILURE] (EXIT_FAILURE): New macro.
9 <errno.h>: New include.
10 [!errno] (errno): New declaration.
12 * acinclude.m4 (AM_FUNC_GETLINE): Use cache.
14 * configure.in: Check for -linet library before checking for the
15 gethostbyname function. Suggested by Karl Heuer.
18 * acinclude.m4 (AM_FUNC_GETLINE): Add run-time test for getline.
19 Based on a test from Karl Heuer.
21 Sun Nov 3 14:57:09 1996 Jim Meyering <meyering@na-net.ornl.gov>
23 * acinclude.m4 (GETLOADAVG_LIBS): Unanchor the sed regexp that removes
24 am_cv_saved_LIBS from LIBS. From Karl Heuer.
26 * src/stty.c (recover_mode): Fail also if there are too many fields.
29 * lib/canon-host.c: Include sys/types.h for the definitions
30 (otherwise missing on some systems) of caddr_t (used by
31 sys/socket.h) and ushort (used by netinet/in.h). From Karl Heuer.
33 Sat Nov 2 00:16:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
35 * doc/Makefile.am (MAKEINFO): Set to makeinfo --no-split.
36 Otherwise, the generated info files have names longer than
37 the 14-byte max of some old systems.
38 Reported by Karl Heuer.
40 * src/date.c (main): Give better diagnostic.
41 Suggestion from Karl Berry.
43 Thu Oct 31 18:28:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
45 * lib/posixtm.y: Remap yacc globals to have pt_ prefix.
46 * lib/getdate.y: Remap yacc globals to have gd_ prefix.
47 Suggestion to do as in gdb/c-exp.y from Tom Tromey.
49 Mon Oct 28 17:40:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
51 * src/Makefile.am (install-exec-local): Redirect stderr of chown to
52 /dev/null and suggest running `make install-root' upon failure to
53 install su. Suggestions from François Pinard.
55 * configure.in: Don't output confusing diagnostic: `checking for
56 shadow password routines'. Suggestion from François Pinard.
58 Thu Oct 24 13:50:46 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund\
61 * src/tee.c (main): Ignore SIGPIPE.
63 Wed Oct 23 23:42:43 1996 Jim Meyering <meyering@na-net.ornl.gov>
65 * src/stty.c: Guard inclusion of stdarg.h and definition of VA_START
66 with #if PROTOTYPES rather than with #ifdef __STDC__. The latter
68 (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition.
69 Suggestion from Marcus Daniels.
71 Mon Oct 21 16:49:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
73 * lib/getloadavg.c [__linux__]: Don't bother with a.out/nlist/kernel
74 defines or includes -- Linux systems simply read /proc/loadavg.
77 * lib/Makefile.am (EXTRA_DIST): Remove group-member.c.
79 * configure.in: Remove hack that created link from group_member.c
82 * lib/group_member.c: New file. Renamed from group-member.c.
83 * lib/group-member.c: Delete.
85 * src/stty.c (main): Remove TAB from diagnostic, for consistency.
87 Sun Oct 20 09:03:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
89 * Makefile.am (install-root): Add it here, too.
91 * lib/Makefile.am (INCLUDES): Add -I../intl. Reported by Eric Backus.
93 * src/Makefile.am (install-root): New rule.
94 Suggestion from François Pinard.
96 * src/who-users.c (print_entry): Don't take address of UT_TIME_MEMBER
97 directly. From Ulrich Drepper.
99 * Makefile.am (AUTOMAKE_OPTIONS): Set to `gnits'.
100 (EXTRA_DIST): Remove @README_ALPHA@.
102 * configure.in: Remove README_ALPHA related code. Automake takes
103 care of it automatically now when in gnits mode.
105 * acinclude.m4 (AM_FUNC_GETLOADAVG): Use $srcdir (not $top_srcdir) in
106 #include $srcdir/lib/getloadavg.c. The latter isn't defined at that
107 point in configure script. From Eric Backus.
109 Fri Oct 18 21:31:58 1996 Jim Meyering <meyering@na-net.ornl.gov>
111 * Makefile.am (cvs-dist): Uncomment cvs tag command.
112 (cvs-dist): Use cvs tag's -c option.
114 Thu Oct 17 23:48:16 1996 Jim Meyering <meyering@na-net.ornl.gov>
116 * configure.in (LIBS): Add -lypsec on m88k/svr3 DolphinOS systems
117 using YP. From Arne Juul.
119 Sun Oct 13 07:34:15 1996 Jim Meyering <meyering@na-net.ornl.gov>
121 * configure.in: Don't save and restore LIBS around AM_FUNC_GETLOADAVG.
122 * acinclude.m4 (AM_FUNC_GETLOADAVG): Don't modify LIBS in this macro
123 (by saving and restoring initial value). Instead, arrange for
124 substitution of @GETLOADAVG_LIBS@.
125 * src/Makefile.am (uptime_LDADD): Add @GETLOADAVG_LIBS@,
128 * configure.in (ALL_LINGUAS): Add swedish (sv).
130 Fri Oct 11 22:51:50 1996 Jim Meyering <meyering@na-net.ornl.gov>
132 * src/who-users.c (print_uptime): Change #ifdef guard on getloadavg
133 call from just HAVE_GETLOADAVG to HAVE_GETLOADAVG || C_GETLOADAVG.
136 * src/Makefile.am (uptime_LDADD): Add @UPTIME_LIBS@.
138 * acinclude.m4 (AM_FUNC_GETLOADAVG): Like AC_FUNC_GETLOADAVG, but
139 with the following changes:
140 - include $top_srcdir/lib/getloadavg.c, not src/getloadavg.c.
141 Reported by Eric Backus.
142 - Check for Solaris' libkstat.
143 - Define C_GETLOADAVG if we end up using getloadavg.c.
145 * acconfig.h (C_GETLOADAVG): Add it.
148 * configure.in: Use new AM_FUNC_GETLOADAVG and be careful to add
149 getloadavg-related libraries only when linking uptime.
151 Thu Oct 10 23:50:05 1996 Jim Meyering <meyering@na-net.ornl.gov>
153 * lib/Makefile.am (EXTRA_DIST): Remove posixtm.y and getdate.y.
154 (su_SOURCES): Put them here instead.
155 Remove rules for building getdate.c and posixtm.c; now automake
156 generates those rules.
157 * lib/ylwrap: New file.
158 * lib/interlock: New file.
160 Wed Oct 9 00:26:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
162 * lib/getloadavg.c [__sun]: Define sun. Reported by Kaveh Ghazi.
164 * lib/strftime.c (strftime): Accommodate the broken C compiler
165 that comes with SunOS -- don't initialize aggregates in decls of
166 automatic variables. Reported by Kaveh Ghazi.
168 * tests/: Renamed checks/ directory.
169 * Makefile.am (SUBDIRS): Rename checks to tests.
170 * configure.in (AC_OUTPUT): Rename checks to tests.
172 * configure.in (/proc/uptime check): Guard the read of /proc/uptime
173 with an existence test to avoid a messy configure-time warning on
174 systems that lack that special file. Reported by Kaveh R. Ghazi.
176 * configure.in (check whether floor needs -lm): Fix typo: save $LIBS,
177 not $LIB. From Kaveh R. Ghazi.
179 * checks/nice: Protect echoed args with leading `x' so echo doesn't
180 interpret leading -n on e.g. SunOS systems.
182 Mon Oct 7 18:46:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
184 * lib/getloadavg.c [__hpux]: Define hpux. From Eric Backus.
186 * lib/Makefile.am (EXTRA_DIST): Remove alloca.c, error.c, and mktime.
187 (su_SOURCES): Remove memcmp.c.
188 Automake automatically includes at least these, now.
189 From François Pinard.
191 * lib/Makefile.am (su_SOURCES): Remove getline.c.
193 Sat Oct 5 11:38:23 1996 Jim Meyering <meyering@na-net.ornl.gov>
195 * lib/Makefile.am (su_SOURCES): Remove gethostname.c --
196 it's AC_REPLACE'd and already in EXTRA_DIST.
198 * configure.in: Use AM_SANITY_CHECK_CC.
200 * configure.in: Use AM_FUNC_ERROR_AT_LINE.
201 * lib/Makefile.am (EXTRA_DIST): Put error.c here.
202 (su_SOURCES): Remove error.c
203 Suggested by Ulrich Drepper.
205 * configure.in (GNU_PACKAGE): AC_SUBST it for the src/*.sh scripts.
206 * src/Makefile.am (.sh): Substitute for @GNU_PACKAGE@ and @VERSION@
207 in the four installed scripts.
208 * src/*.sh: Update --version output to conform to the coding standard.
210 * acinclude.m4 (AC_HEADER_SYS_TIME_H): New macro.
211 (AM_FUNC_MKTIME): Require AC_HEADER_SYS_TIME_H so that configure's
212 checking... messages don't get nested.
214 * configure.in (GNU_PACKAGE): New variable.
215 (PACKAGE_VERSION): Remove it.
217 * acconfig.h (GNU_PACKAGE): New variable.
218 (PACKAGE_VERSION): Remove now-unused variable.
220 * src/*.c: Update --version output to conform to the coding standard.
222 Sun Sep 22 22:41:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
224 * configure.in (AC_CHECK_HEADERS): Alphabetize.
225 Update for automake-1.1e.
227 Thu Sep 19 07:47:18 1996 Jim Meyering <meyering@na-net.ornl.gov>
229 * lib/regex.c: Merge with FSF version.
230 * lib/getloadavg.c: Replace with FSF version.
232 Mon Sep 16 23:13:04 1996 Jim Meyering <meyering@na-net.ornl.gov>
234 * lib/strftime.c (strftime): New version, from GNU libc.
236 Sun Sep 15 23:08:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
238 * Makefile.am (EXTRA_DIST): Remove acinclude.m4.
240 Mon Sep 9 22:10:45 1996 Jim Meyering <meyering@na-net.ornl.gov>
242 * configure.in: Improve handling of math library so -lm is used
243 only when it's actually required. That makes a difference when
244 using dynamic linking.
245 Remove check that added -lm to LIBS.
246 (SQRT_LIBM): Test for and AC_SUBST it.
247 (POW_LIBM): Likewise.
248 (SEQ_LIBM): Likewise.
249 Motivation and suggestions from Ulrich Drepper.
251 * src/Makefile.am (factor_LDADD, printf_LDADD, seq_LDADD):
252 Set these using new @SQRT_LIBM@, @POW_LIBM@, and @SEQ_LIBM@ resp.
253 Also set corresponding _DEPENDENCIES variables.
255 Sat Sep 7 12:41:39 1996 Jim Meyering <meyering@na-net.ornl.gov>
257 * src/system.h: Add comments justifying IS* versions of ctype.h macros.
259 * lib/getdate.y: Define and use upper case variants of ctype.h
260 is* macros. From Bruno Haible.
262 Thu Sep 5 22:12:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
264 * lib/strftime.c: New version from glibc.
266 Wed Sep 4 23:39:51 1996 Jim Meyering <meyering@na-net.ornl.gov>
268 * configure.in (ALL_LINGUAS): Add dutch (nl).
270 Mon Sep 2 10:52:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
272 * src/*.c (usage): Tell where to report bugs.
274 Sun Sep 1 07:56:07 1996 Jim Meyering <meyering@na-net.ornl.gov>
276 * configure.in (AM_FUNC_MKTIME): Use it.
277 (AC_REPLACE_FUNCS): Remove mktime.
278 (AM_INIT_AUTOMAKE): Use it.
279 (AM_PROG_INSTALL): Remove. AM_INIT_AUTOMAKE does this.
280 (AC_PROG_MAKE_SET): Likewise.
281 (jm_MAINTAINER_MODE, fp_C_PROTOTYPES): Rename with
282 AM_ prefix for latest automake/aclocal.
284 * Makefile.am (EXTRA_DIST): Add acinclude.m4.
286 * acinclude.m4: New file -- derived from aclocal.m4.
287 * aclocal.m4: This file is now generated by the aclocal program
288 (which comes with the automake package.)
290 Sat Aug 17 00:14:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
292 * lib/strftime.c: Update from GNU libc -- this adds back %z and %s
293 formats and reverts to old behavior where unrecognized format like
294 %E is treated as eqivalent to `E'.
296 Sun Aug 4 09:14:28 1996 Jim Meyering <meyering@na-net.ornl.gov>
298 * checks/: New directory.
299 * checks/Makefile.am: New file.
300 * checks/nice: New file. Derived from tests from Eric Backus.
301 * configure.in (AC_OUTPUT): Add new directory: checks.
302 * Makefile.am (SUBDIRS): Likewise.
304 * src/nice.c (main): Allow `+' in options like -+8 and -+13.
306 Fri Aug 2 21:45:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
308 * src/nice.c (main): Set minus_flag to zero in two places.
309 Otherwise, `nice --1 -3' would mistakenly do the equivalent of
310 `nice --3'. Thanks to Eric Backus <ericb@lsid.hp.com> for the
313 * configure.in (check for /proc/uptime): New check.
314 * acconfig.h (SAVE_PROC_UPTIME): #undef it. Reorder so symbols
316 *src/who-users.c (print_uptime) [HAVE_PROC_UPTIME]: Read from
320 Thu Aug 1 22:38:38 1996 Jim Meyering <meyering@na-net.ornl.gov>
322 * configure.in (AC_REPLACE_GNU_GETOPT): No longer use it.
323 It isn't necessary because the cpp-time checks of getopt.c and
324 getopt1.c are at least as good.
325 * lib/Makefile.am (EXTRA_DIST): Remove getopt.c and getopt1.c.
326 (su_SOURCES): Add getopt.c and getopt1.c
327 This reverts much of the April 23 change.
329 Sat Jul 27 17:22:14 1996 Jim Meyering <meyering@na-net.ornl.gov>
331 * src/system.h (bindtextdomain) [!ENABLE_NLS]: Undefine to avoid
332 redefinition warnings on solaris.
333 (textdomain) [!ENABLE_NLS]: Likewise.
335 Sun Jul 21 09:47:55 1996 Jim Meyering <meyering@na-net.ornl.gov>
337 * configure.in (AC_REPLACE_FUNCS): Replace getline.c.
338 Add related check for the getdelim function.
339 From Ulrich Drepper -- as done in gettext.
341 * src/stty.c (usage): Correct typo (-iucl -> -iuclc) in usage message.
342 From Thomas Olsson <d95to@efd.lth.se>.
344 Sat Jul 20 17:01:56 1996 Jim Meyering <meyering@na-net.ornl.gov>
346 * configure.in (PACKAGE_VERSION): Use space instead of hyphen to
347 separate PACKAGE and VERSION.
349 Wed Jul 17 23:13:19 1996 Jim Meyering <meyering@na-net.ornl.gov>
351 * src/chroot.c: Include <sys/types.h> before system.h.
352 * src/seq.c: Likewise.
353 * src/yes.c: Likewise.
356 Tue Jul 16 00:06:33 1996 Jim Meyering <meyering@na-net.ornl.gov>
358 * lib/strftime.c (strftime): Use `(void)0' as second arg to add macro.
359 Omitting that second arg made some HPUX C compiler report an error.
362 Mon Jul 15 23:42:57 1996 Jim Meyering <meyering@na-net.ornl.gov>
364 * src/who-users.c (print_uptime): Reverse `days' and `day' in
365 uptime message. From Kaveh R. Ghazi.
367 * Many files: Update FSF address.
369 Sun Jul 14 20:05:34 1996 Jim Meyering <meyering@na-net.ornl.gov>
371 * src/who-users.c (print_uptime): Use 0, not undefined errno in
372 couldn't-get-boot-time diagnostic. From Ulrich Drepper.
374 Sat Jul 13 14:22:54 1996 Jim Meyering <meyering@na-net.ornl.gov>
376 * src/chroot.c (usage): Add a `\' after `\n' in usage message.
377 Otherwise, SunOS's /bin/cc chokes.
379 * src/stty.c [GWINSZ_BROKEN]: Remove thus-guarded `#undef TIOCGWINSZ'.
380 GWINSZ_BROKEN can't be defined anymore.
382 * configure.in (boot time test): Use AC_EGREP_CPP instead of
383 AC_EGREP_HEADER; #endif, instead of #fi.
384 (AM_SYS_POSIX_TERMIOS, AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Use
385 these macros instead of the tests from which they were derived.
386 ($am_cv_sys_posix_termios): Renamed to have am_ prefix instead of su_.
388 Wed Jul 10 22:57:29 1996 Jim Meyering <meyering@na-net.ornl.gov>
390 * aclocal.m4 (fp_PROG_CC_STDC): Include sys/stat.h in test program
391 so that DYNIX/ptx V4.1.3 doesn't use `-Xc -D__EXTENSIONS__' -- with
392 those options on that system, sys/stat.h gets compile errors.
393 With help from Marcus Daniels.
395 * getopt.c: Update from gettext-0.10.23.
396 * getopt1.c: Likewise.
397 * getopt.h: Likewise.
399 Sun Jul 7 22:40:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
401 * aclocal.m4 (AM_SYS_POSIX_TERMIOS): New macro, derived from test
403 (AM_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
405 Sat Jul 6 12:47:48 1996 Jim Meyering <meyering@na-net.ornl.gov>
407 * configure.in (AC_REPLACE_FUNCS): Add group_member.
408 (AC_LINK_FILES): Create link lib/group_member.c to lib/group-member.c.
409 * lib/Makefile.am (su_SOURCES): Remove group-member.c.
410 (EXTRA_DIST): Add group-member.c here.
412 Thu Jul 4 22:40:06 1996 Jim Meyering <meyering@na-net.ornl.gov>
414 * src/expr.c (docolon): Remove space before newline in usage message.
416 Sat Jun 29 18:58:20 1996 Jim Meyering <meyering@na-net.ornl.gov>
418 * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see
419 it in the output of --version. Reported by RMS.
421 Tue Jun 18 22:14:42 1996 Jim Meyering <meyering@na-net.ornl.gov>
423 * aclocal.m4: Update from gettext-0.10.20.
424 * ABOUT-NLS: Likewise.
427 Sun Jun 16 13:44:36 1996 Jim Meyering <meyering@na-net.ornl.gov>
429 * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex.
431 Thu Jun 6 21:57:08 1996 Jim Meyering <meyering@na-net.ornl.gov>
433 * po/Makefile.in.in: Update from gettext-0.10.16.
435 * ABOUT-NLS: Likewise.
436 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede
437 gettext-related ones.
438 Update from gettext-0.10.16.
440 Wed May 29 21:28:53 1996 Jim Meyering <meyering@na-net.ornl.gov>
442 * expr.c (docolon): Give a warning when the first character
443 of the basic regular expression is `^'.
445 Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
447 * id.c (xgetgroups): New function, factored out of
448 print_group_list and print_full_info.
449 (print_group_list): Call it.
450 (print_full_info): Call it.
452 * lib/Makefile.am (getdate.c): Disable dependencies that can
453 require rerunning YACC when not in maintainer mode.
454 (posixtm.c): Likewise.
456 Tue May 14 18:47:35 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
458 * id.c (print_group_list): When USERNAME is specified use
459 getugroups to get the number of groups.
460 (print_full_info): Likewise.
462 Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
464 * seq.c (usage): Make it clearer.
466 Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov)
468 * expr.c (main): Don't recognize --help, --h, --he, --version,
469 --v, etc. if the POSIXLY_CORRECT environment variable is set.
470 * echo.c (main): Likewise.
471 * printf.c (main): Likewise.
472 * test.c (main): Likewise.
474 * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1.
476 Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov)
478 * configure.in: Require autoconf-2.10.
480 * aclocal.m4 (jm_MAINTAINER_MODE): New macro.
481 * configure.in (jm_MAINTAINER_MODE): Use it.
483 Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov)
485 * lib/strftime.c: Update from GNU libc.
487 Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
489 * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII.
490 * seq.c: Remove useless void casts of *printf return values.
492 Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
494 * basename.c (usage): Mark translatable strings.
495 * chroot.c (main): Likewise.
496 * basename.c (main): Separate messages about `too few' and `too many'
497 arguments to ease translation.
498 * dirname.c (main): Likewise.
499 * date.c (usage): Change TAB in message to spaces. Doing that seems
500 to have worked around a problem with something in gettext that was
501 producing a truncated usage message for date's usage.
502 From François Pinard.
504 Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
506 * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE.
507 Otherwise, some systems lose because the value AC_C_INLINE choses
508 with plain `cc' is different from that chosen when using the ANSI-mode
509 C compiler. From Kaveh Ghazi.
511 Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
513 * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro.
514 * configure.in: Use it.
515 * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c.
516 (EXTRA_DIST): Add getopt.c and getopt1.c
518 * whoami.c (main): Declare to return int, not void.
519 * who-users.c (main): Likewise.
520 * yes.c (main): Likewise.
522 * src/*.c, src/*.h: Update Copyright years to include 1996.
524 Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov)
526 * date.c (usage): Describe new %V format. From Karl Berry.
528 * Makefile.am (LDADD): Put @INTLLIBS@ before package library.
530 Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov)
532 * chroot.c (usage): Improve help message.
533 Enclose message strings in _().
534 * seq.c (usage): Improve help message.
535 * factor.c (usage): Likewise.
538 Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov)
540 * Makefile.am (cvs-dist): New rule. Based on the one from
541 Tom Tromey's automake.
543 Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov)
545 * basename.c (basename): Rewrite so it doesn't rely on strrchr,
546 and hence doesn't need to include string.h -- on some alpha-based
547 OSF systems, there's a conflicting prototype for basename in string.h.
548 Reported by Kaveh Ghazi.
550 * configure.in (AC_REPLACE_FUNCS): Add basename.
551 * lib/Makefile.am (EXTRA_DIST): Add basename.c.
552 (su_SOURCES): Remove basename.c.
555 Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov)
557 * src/Makefile.am (who.c): Qualify who-users.c reference with
560 (uptime.c): Likewise.
561 From François Pinard.
563 * configure.in: Always invoke AC_GETLOADAVG, not just if we're
566 Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
568 * getloadavg.c: Test cpp-defined __sun as well as sun, because
569 in strict ANSI mode, only __sun is defined. From Kaveh Ghazi.
571 * date.c (usage): Add missing `\n\' at the end of newly added
574 * who-users.c (print_uptime): Call getloadavg only if we have it.
576 Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
578 * configure.in (LINGUAS): Add de.
580 * date.c (usage): Describe %e and %z. Reported by Karl Berry.
582 * who-users.c: Mark translatable strings in new code.
584 Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov)
586 * configure.in: Add test for boot_time.
589 * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c.
591 * src/Makefile.am (EXTRA_PROGRAMS): Add uptime.
592 (BUILT_SOURCES): Add uptime.c.
593 (MOSTLYCLEANFILES): Add uptime.c.
594 (uptime.c): Add rule to build it from who-users.c.
596 * who-users.c: Reindent.
597 (UT_TIME_MEMBER): New macro.
598 (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else.
599 (print_entry): Likewise.
601 Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov)
603 * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi.
605 Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
607 * seq.c (print_numbers): Rearrange loops to get it right.
608 Reported by Karl Eichwalder <ke@ke.Central.DE>.
610 * seq.c (print_numbers): Give more precise diagnostic when INCREMENT
611 is inconsistent with START and LIMIT.
612 (usage): Clean up help message.
614 * factor.c (usage): Give minimal description of the program.
615 (print_factors): Give a better diagnostic.
616 (main): Suggest --help upon failure.
617 Reported by Karl Eichwalder <ke@ke.Central.DE>.
619 * seq.c (print_numbers): Fix off-by-one error in
620 backwards-counting loop. Reported by Karl Eichwalder.
622 * strftime.c (mon_week_ISO): New function to implement new %V format.
623 (sun_week): Make TM parameter `const'.
624 (mon_week): Likewise.
625 (mon_week): Rewrite to implement %W format correctly.
626 (strftime): Handle %V format.
627 Reported by Arne Juul.
629 Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov)
631 * strftime.c (sun_week): Make %U work properly.
632 Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'.
634 * nice.c (main): Simplify option handling. Before, `nice -18 -- nice'
635 improperly printed `8'. Patch from Frank Korz.
636 (main): Use `if' stmt, not while loop, around getopt invocation.
637 Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option
638 follows a long option) gets an error.
640 Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov)
642 * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to
643 `-Xc -D__EXTENSIONS__' because of problems with Solaris header
644 files. Suggested by Kaveh Ghazi.
646 Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov)
648 * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h
649 when srcdir != builddir. From Kaveh Ghazi.
651 * lib/getugroups.c: Include stdio.h before grp.h. Because
652 <grp.h> on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi.
654 Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov)
656 * configure.in: Simplify checking for math library.
657 This also eliminates some confusing output from configure.
658 Suggested by François Pinard.
660 Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov)
662 * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with
663 -I../intl. With the former, compiles didn't find libintl.h when
664 configured with `--srcdir=..'. Reported by Marcus Daniels
665 <marcus@sysc.pdx.edu>.
667 * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file
670 * src/Makefile.am (EXTRAdir): Set to $(bindir).
672 Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov)
674 * ChangeLog.0: New file.
675 * Makefile.am (EXTRA_DIST): Add ChangeLog.0.
677 Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov)
679 * man/Makefile.am (man_MANS): Add chroot.1.
680 * src/Makefile.am (EXTRA_PROGRAMS): Add chroot.
682 Sun Dec 24 10:55:34 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
684 * configure.in: Check for chroot a la uname.
685 * src/chroot.c, man/chroot.1: New files.
687 Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov)
689 * su.c: Protoize and reorder functions to obviate forward decls.
691 * seq.c: Make parameters const where appropriate.
692 Rename global FROM to START.
693 (print_numbers): Rewrite loops to avoid incrementing. Instead,
694 use `x = first + i * increment' paradigm. Otherwise, with inexact
695 increment, you could miss the last value.
697 * xstrtod.c: New file.
698 * xstrtod.h: New file.
699 * lib/Makefile.am: Add xstrtod.c and xstrtod.h.
700 * seq.c: Include xstrtod.h.
701 (scan_double_arg): Use xstrtod rather than strtod directly.
703 * src/*: Update FSF's address.
705 Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov)
707 * src/*.c (main): Declare to be of type int, not void.
709 Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov)
711 * configure.in (PACKAGE_VERSION): New macro.
712 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
713 * acconfig.h (PACKAGE_VERSION): Add it.
714 * src/Makefile.am: Remove rules for generating version.c.
715 Remove references to version.o, version.h, and stamp-v.
716 [.sh]: Change @VERSION@ to @PKG_VERSION@.
717 On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER.
718 (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS.
719 (install-exec-local): New target/rules to make the installed su
720 binary setuid root or failing that, to delete it.
721 * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@,
723 * version.c: Remove file.
724 * version.h: Remove file.
725 * basename.c date.c dirname.c echo.c env.c expr.c factor.c
726 hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c
727 pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c
728 who-users.c whoami.c yes.c: Don't include version.h.
729 (main): Use PACKAGE_VERSION instead of version_string.
731 Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov)
733 * basename.c: Remove __P-protected prototype for basename.
734 Reported by François Pinard.
735 (remove_suffix): Move to precede use. Remove prototype.
736 Declare formal parameter SUFFIX to be const.
738 * pathchk.c (validate_path): Cast path_max to size_t before
739 comparing with strlen(path).
741 * who-users.c (read_utmp): Declare n_read to be of type size_t
744 Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
746 * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c
747 id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c
748 sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c
749 yes.c (main): Initialize for internationalized message support:
750 call setlocale, bindtextdomain, and textdomain.
751 * system.h: Add definitions and includes for NLS.
752 * Makefile.am (SUBDIRS): Add intl and po.
753 * src/Makefile.am (datadir): Define.
755 (DEFS): Add LOCALEDIR definition.
756 (LDADD): Add @INTLLIBS@.
757 * aclocal.m4: Add NLS-related macro definitions from
758 gettext distribution.
759 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES,
760 HAVE_STPCPY): New macros.
761 Add PACKAGE and VERSION.
762 * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED.
764 (ALL_LINGUAS): Define.
765 (ud_GNU_GETTEXT): Use it.
767 (AC_OUTPUT): Reflect addition of two new directories, intl and po.
769 Mostly from François Pinard.
771 Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov)
773 * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to
774 declare formal parameter.
776 Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov)
778 * getdate.y (RelativeMonth): Add 1900 to the year so that relative
779 date specs that push the year through the end of the century work.
780 For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001.
781 From Peter Dalgaard (pd@kubism.ku.dk).
783 Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov)
785 * seq.c (main): Exit after processing --version.
786 Reported by François Pinard.
788 Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov)
790 * expr.c (docolon): Don't initialize re_syntax_options to
791 deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE
792 \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead.
794 * od.c (WINDOWS_SETFILEMODE_BINARY): New macro.
795 (skip) [_WIN32 && _O_BINARY]: Use it.
796 (read_char): Likewise.
797 (read_block): Likewise.
798 [_WIN32 && _O_BINARY]: Include malloc.h and io.h.
799 Based on changes by Gary Newman <gnewman@shore.net>.
801 Wed Feb 28 21:48:07 1996 Paul Eggert <eggert@twinsun.com>
803 * configure.in (LOCALTIME_CACHE):
804 Also define if localtime mishandles unsetting TZ.
805 This works around a localtime bug in mips-dec-ultrix.
807 Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov)
809 * lib/Makefile.am (su_SOURCES): Add xstrtoul.c.
810 (noinst_HEADERS): Add xstrtoul.h.
812 * factor.c: General cleanup. Use xstrtoul, not atoi.
813 Change output format. Allow inputs as large as ULONG_MAX.
814 Allow more than one command line argument.
816 * stty.c (wrapf) [!__STDC__]: Indent by one space the first line
817 of the pre-ANSI function definition so ansi2knr doesn't munge it.
819 * src/Makefile.am: Adapt for automake-0.30.
820 * lib/Makefile.am: Likewise.
822 * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall.
824 Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov)
826 * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'.
827 (MOSTLYCLEANFILES): Add who.c and users.c.
828 (who.c): New rule to create this file. Concatenate definition of
829 WHO and contents of who-users.c.
830 (users.c): New rule to create this file. Concatenate definition of
831 USERS and contents of who-users.c.
833 Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov)
835 * readtokens.c: Unprotoize.
837 * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them
838 for function dcls and munge them.
840 (arithdivf): Likewise.
842 * test.c: __P-protect forward declarations.
843 (main): Protoize function definition.
845 * date.c (batch_convert): Declare BUFLEN local to be of type size_t,
848 * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC
849 so expr's pattern matching uses BASIC (not GNU-extended) REs.
850 Reported by Jim Kingdon.
852 * who-users.c (print_entry): Use strchr, not index.
854 * configure.in (AC_CHECK_HEADERS): Add sys/socket.h.
855 * canon-host.c [HAVE_SYS_SOCKET_H]: Include <sys/socket.h> for
856 definition of AF_INET on at least SunOS 4.
858 Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov)
860 * who-users.c (main): When failing because there were
861 `too many arguments,' say so.
863 Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov)
865 * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr,
867 (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h.
868 * lib/canon-host.c: New file.
869 * lib/Makefile.am (su_SOURCES): Add canon-host.c.
870 * src/who.c (print_entry): If possible, canonicalize the host hame.
871 From Miles Bader (miles@gnu.ai.mit.edu).
873 Update for automake-0.29.
874 * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it.
875 * src/Makefile.am: Likewise.
876 * lib/Makefile.am: Likewise.
877 * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS.
878 * man/Makefile.am (man_MANS): Renamed from MANS.
880 Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov)
882 * lib/strftime.c (add_num_tz): New function.
883 (strftime): Handle new %z format.
884 * date.c (main): Accept new option, --rfc-822 (-R).
885 (show_date): Use RFC822-mandated strftime format.
886 From H. Peter Anvin (hpa@storm.net).
887 (usage): Add a line describing the new option.
889 * lib/strftime.c (add_num_tz): Don't use local, LENGTH,
892 Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov)
894 * acconfig.h (PROTOTYPES): Define it.
896 Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov)
898 * aclocal.m4 (fp_PROG_INSTALL): New macro.
899 * configure.in: Use it instead of AC_PROG_INSTALL.
901 * who-users.c: Protoize.
903 Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov)
905 * stty.c: Protoize and __P-protect forward dcls.
906 (visible): Change parameter type to unsigned int from unsigned char.
907 (integer_arg): Use xstrtol instead of open-coding this.
909 * lib/Makefile.am (su_SOURCES): Add xstrtol.c.
910 (HEADERS): Add xstrtol.h.
912 * test.c (advance): Protoize function.
914 * sleep.c (argdecode): Declare parameter const.
916 Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov)
918 * stty.c: Indent cpp directives.
920 Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov)
922 Use automake to generate Makefile.in files.
923 * Makefile.am: New file.
924 * doc/Makefile.am: New file.
925 * lib/Makefile.am: New file.
926 * man/Makefile.am: New file.
927 * src/Makefile.am: New file.
929 * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables
930 used in place of PROGS.
932 Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov)
934 * configure.in (PACKAGE, VERSION): New variables.
935 (fp_C_PROTOTYPES): Use it.
937 * printf.c (print_esc_char): Change type of argument from char
938 to int to avoid potential promotion problem.
939 * uname.c (print_element): Likewise.
941 * system.h [__P]: New macro.
943 * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c,
944 hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c,
945 printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c,
946 whoami.c, yes.c: Protoize and __P-protect forward dcls.
948 * who-users.c: New file. Renamed from who.c.
949 * who.c: Define WHO and include who-users.c.
950 * uses.c: Define USERS and include who-users.c.
952 * id.c Remove no-longer-used NGROUPS_MAX cpp macros.
953 (print_group_list) [HAVE_GETGROUPS]: Reorganize to use
954 getgroups (0, NULL) to compute number of groups at run time
955 rather than relying on NGROUPS_MAX at compile time.
956 (print_full_info) [HAVE_GETGROUPS]: Likewise.
957 Suggestion from Roland McGrath.
959 * su.c: Remove NGROUPS_MAX junk. It wasn't being used.
961 Wed Jan 3 19:03:26 1996 Paul Eggert <eggert@twinsun.com>
963 * configure.in (LOCALTIME_CACHE): Define if tzset exists and
964 if localtime caches TZ. Check for tzset.
965 * acconfig.h (LOCALTIME_CACHE): New macro.
966 * date.c (putenv): Declare.
967 (universal_time): Remove.
968 (main): If -u is given, set TZ to "UTC0"; this causes date to use
969 UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'.
970 (show_date): Just use localtime and a single format, since TZ will
971 be set properly if -u is given.
973 Fri Dec 22 21:34:55 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
975 * configure.in: Touch stamp-h only if config.h is remade.
977 Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com)
979 * test.c (usage): Clarify usage. From Karl Berry.
981 Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com)
983 * Makefile.in (all et. al.): If make was invoked with -k and a
984 sub-make fails, fail after the loop rather than exiting right away.
985 Otherwise, make's -k option could be ineffective.
987 Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com)
989 * Makefile.in (default): New default target. Depend on `all' to work
990 around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik
993 Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com)
995 * stty.c (usage): Clarify descriptions of ignpar and ignbrk.
996 From Theodore Ts'o and Ulrich Windl.
998 Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com)
1000 * test.c [TEST_STANDALONE]: Define.
1001 * src/Makefile.in (test.o): Remove special rule.
1003 Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com)
1005 * aclocal.m4 (jm_WITH_AUTODEPS): New directive.
1006 * configure.in: Use it.
1008 * lib/Makefile.in (INCLUDE, COMPILE): New variables.
1009 (.c.o): Rewrite to be more like src/Makefile.in.
1010 Add line that (--with-autodeps) will include mkdep-Makefile.
1011 (distclean): Remove .deps.
1012 * src/Makefile.in: Likewise.
1014 * mkdep-Makefile: New file.
1015 * Makefile.in (DISTFILES): Add mkdep-Makefile.
1017 * doc/Makefile.in (mostlyclean): Remove *.info.
1019 * date.c: New option --reference=FILE (-r FILE) analogous to the
1020 like-named touch option.
1021 (main): Recognize it and give diagnostic for misuse.
1022 (usage): Describe briefly.
1023 From Franc,ois Pinard.
1025 * date.c (batch_convert): Close input stream also when it's not stdin.
1026 (main): Reorganize to do option-consistency checks before all else.
1028 Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com)
1030 * man/Makefile.in (install-data, uninstall): Use sed not basename.
1031 The GNU Coding Standard suggests that only a select set of
1032 relatively standard utilities be used in Makefiles. basename is
1033 not among them. Suggested by Ulrich Drepper.
1035 Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com)
1037 * yes.c: Include system.h to get definition of _.
1039 Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com)
1041 * system.h (_): Define macro -- as empty for now.
1042 * src/*.c: Annotate localizable strings with _(...). From Franc,ois.
1044 * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB.
1047 Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com)
1049 * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset.
1050 Add checks for floor, modf, and rint -- all used by seq.c.
1052 Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com)
1054 * getdate.y (Convert): Use 2037 as threshold, not 1999.
1055 Before years after 1999 were treated as invalid.
1056 From Andreas Schwab.
1058 Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com)
1060 * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h.
1061 Without this, SunOS doesn't get type for memchr.
1062 Reported by Kaveh Ghazi.
1064 Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com)
1066 * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois.
1068 * All Makefile.in (install-exec, install-exec): New targets.
1071 * all Makefile.in (maintainer-clean): Renamed from realclean
1074 Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com)
1076 * all source files (usage): Include one- or two-line synopsis
1077 in --help output. From Karl Berry.
1079 Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com)
1081 * lib/Makefile.in (maintainer-clean): Rename from realclean.
1082 (.PHONY): New dependencies.
1083 [.c.o]: Remove -I. since safe-l?stat.h are no longer used.
1085 Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com)
1087 * test.c (usage): Remove duplicate descriptions of --help
1088 and --version. From Karl Berry.
1090 * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat).
1094 * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c.
1095 Remove all reference to (now unused) safe-xstat.hin.
1097 Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com)
1099 * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating
1100 unnecessary conflicts for people using version control software
1102 (AC_ARG_PROGRAM): Use it.
1104 Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com)
1106 * src/*.c: Update Copyright dates.
1108 Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com)
1110 * system.h: Separate errno declaration from STDC_HEADERS.
1111 Remove bcopy, bzero, strchr, strrchr definitions.
1113 * stty.c (main, set_window_size): Use memset instead of bzero.
1114 * su.c (correct_password): Likewise.
1116 * seq.c Remove \n's from error format strings.
1117 (main): Let `seq 1 1' work.
1118 Invoke usage always with 1 when failing.
1120 Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com)
1122 * src/Makefile.in (install): Fix rules for su to avoid relying on
1123 just-built `id' executable. That would lose when cross-compiling and
1124 on systems like GNU in which a user may have several effective IDs.
1125 (SOURCES, OBJECTS, PROGS): Add seq.
1126 * Makefile.in (PROGS): Add seq.
1128 * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset.
1129 (AC_CHECK_FUNCS): Add strchr and strrchr.
1130 * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c.
1132 * system.h: Remove index/rindex and bcmp/bcopy/bzero references.
1133 Separate errno declaration from STDC_HEADERS.
1135 Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com)
1137 * getdate.y (ToSeconds): Properly convert 12am and 12pm.
1138 From Takeshi Sone <ts1@tsn.or.jp>.
1140 * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh].
1141 (all): Depend on safe-stat.h and safe-lstat.h.
1143 * date.c (batch_convert): Remove any trailing newline from offending
1144 line before including it in the `invalid date' error from `date -f'.
1145 Reported by Franc,ois Pinard.
1147 Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com)
1149 * factor.c: New file.
1150 * Makefile.in (PROGS): Add factor.
1151 * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor.
1154 Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com)
1156 * test.c (term): Running `./test \( a -o b' got a seg fault.
1157 From from Klaus.Reichl@aut.alcatel.at.
1159 Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com)
1161 * src/*.c: Include "error.h" rather than simply declaring
1163 * src/Makefile.in (OBJECTS): Depend on ../lib/error.h.
1165 * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin.
1166 (distclean): Remove references to safe-l?stat.c.
1167 Remove all related rules and dependencies.
1169 * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros.
1170 Now that we always define the functions, these are no longer needed.
1172 * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT.
1173 * who.c (print_entry): Likewise.
1174 * test.c (test_stat, binary_operator): Likewise.
1175 (unary_operator): Use safe_lstat instead of SAFE_LSTAT.
1177 Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com)
1179 * expr.c (docolon): Zero out re_buffer and re_regs before using them.
1180 From H.J. Lu <hjl@nynexst.com>.
1182 Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com)
1184 * dirname.c (main): Use strchr and strrchr instead of index and rindex.
1185 * echo.c (main): Likewise.
1186 * env.c (main): Likewise.
1187 * pathchk.c (validate_path): Likewise.
1188 * printf.c (print_formatted, print_esc): Likewise.
1189 * test.c [member]: Likewise.
1190 * who.c (extract_trimmed_name): Likewise.
1191 * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to
1192 rindex instead of the other way around.
1194 * doc/Makefile.in (DISTFILES): Add getdate.texi.
1196 Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com)
1198 * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr.
1199 (AC_CHECK_HEADERS): Add stdlib.h.
1200 (LIBS): If the strtod replacement is required, check for pow in -lm.
1201 * src/Makefile.in (printf): Remove hard-coded -lm. Not every
1204 Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com)
1206 * who.c (list_entries): Delete. Split in two actually...
1207 (list_entries_users, list_entries_who, userid_compare): New functions.
1208 (list_entries_users): Sort the user names. Reported by
1210 Topologically sort the functions and remove fwd declarations.