Sat Jun 29 18:58:20 1996 Jim Meyering * configure.in (PACKAGE_VERSION): Add `GNU ' prefix so we see it in the output of --version. Reported by RMS. Tue Jun 18 22:14:42 1996 Jim Meyering * aclocal.m4: Update from gettext-0.10.20. * ABOUT-NLS: Likewise. * intl/*: Likewise. Sun Jun 16 13:44:36 1996 Jim Meyering * doc/Makefile.am (EXTRA_DIST): Add texinfo.tex. Thu Jun 6 21:57:08 1996 Jim Meyering * po/Makefile.in.in: Update from gettext-0.10.16. * intl/*: Likewise. * ABOUT-NLS: Likewise. * aclocal.m4 (AC_REPLACE_GNU_GETOPT): Move definition to precede gettext-related ones. Update from gettext-0.10.16. Wed May 29 21:28:53 1996 Jim Meyering * expr.c (docolon): Give a warning when the first character of the basic regular expression is `^'. Mon May 20 22:56:06 1996 Jim Meyering (meyering@na-net.ornl.gov) * id.c (xgetgroups): New function, factored out of print_group_list and print_full_info. (print_group_list): Call it. (print_full_info): Call it. * lib/Makefile.am (getdate.c): Disable dependencies that can require rerunning YACC when not in maintainer mode. (posixtm.c): Likewise. Tue May 14 18:47:35 1996 Andreas Schwab * id.c (print_group_list): When USERNAME is specified use getugroups to get the number of groups. (print_full_info): Likewise. Sun May 19 21:45:49 1996 Jim Meyering (meyering@na-net.ornl.gov) * seq.c (usage): Make it clearer. Sat May 18 13:29:46 1996 Jim Meyering (meyering@na-net.ornl.gov) * expr.c (main): Don't recognize --help, --h, --he, --version, --v, etc. if the POSIXLY_CORRECT environment variable is set. * echo.c (main): Likewise. * printf.c (main): Likewise. * test.c (main): Likewise. * expr.c (docolon) [RE_SYNTAX_POSIX_BASIC]: Revert change of Mar 1. Tue May 7 22:10:20 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in: Require autoconf-2.10. * aclocal.m4 (jm_MAINTAINER_MODE): New macro. * configure.in (jm_MAINTAINER_MODE): Use it. Mon May 6 22:40:54 1996 Jim Meyering (meyering@na-net.ornl.gov) * lib/strftime.c: Update from GNU libc. Sat May 4 20:54:32 1996 Jim Meyering (meyering@na-net.ornl.gov) * system.h [IN_CTYPE_DOMAIN]: Rename from ISASCII. * seq.c: Remove useless void casts of *printf return values. Mon Apr 29 22:23:40 1996 Jim Meyering (meyering@na-net.ornl.gov) * basename.c (usage): Mark translatable strings. * chroot.c (main): Likewise. * basename.c (main): Separate messages about `too few' and `too many' arguments to ease translation. * dirname.c (main): Likewise. * date.c (usage): Change TAB in message to spaces. Doing that seems to have worked around a problem with something in gettext that was producing a truncated usage message for date's usage. From François Pinard. Sun Apr 28 17:10:03 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in: Make fp_C_PROTOTYPES precede AC_C_INLINE. Otherwise, some systems lose because the value AC_C_INLINE choses with plain `cc' is different from that chosen when using the ANSI-mode C compiler. From Kaveh Ghazi. Tue Apr 23 22:05:35 1996 Jim Meyering (meyering@na-net.ornl.gov) * aclocal.m4 (AC_REPLACE_GNU_GETOPT): New macro. * configure.in: Use it. * lib/Makefile.am (su_SOURCES): Remove getopt.c and getopt1.c. (EXTRA_DIST): Add getopt.c and getopt1.c * whoami.c (main): Declare to return int, not void. * who-users.c (main): Likewise. * yes.c (main): Likewise. * src/*.c, src/*.h: Update Copyright years to include 1996. Sun Apr 21 08:04:51 1996 Jim Meyering (meyering@na-net.ornl.gov) * date.c (usage): Describe new %V format. From Karl Berry. * Makefile.am (LDADD): Put @INTLLIBS@ before package library. Sat Apr 20 22:22:01 1996 Jim Meyering (meyering@na-net.ornl.gov) * chroot.c (usage): Improve help message. Enclose message strings in _(). * seq.c (usage): Improve help message. * factor.c (usage): Likewise. From Karl Berry. Fri Apr 19 23:48:53 1996 Jim Meyering (meyering@na-net.ornl.gov) * Makefile.am (cvs-dist): New rule. Based on the one from Tom Tromey's automake. Thu Apr 18 23:16:41 1996 Jim Meyering (meyering@na-net.ornl.gov) * basename.c (basename): Rewrite so it doesn't rely on strrchr, and hence doesn't need to include string.h -- on some alpha-based OSF systems, there's a conflicting prototype for basename in string.h. Reported by Kaveh Ghazi. * configure.in (AC_REPLACE_FUNCS): Add basename. * lib/Makefile.am (EXTRA_DIST): Add basename.c. (su_SOURCES): Remove basename.c. From Kaveh Ghazi. Tue Apr 16 20:24:44 1996 Jim Meyering (meyering@na-net.ornl.gov) * src/Makefile.am (who.c): Qualify who-users.c reference with $(srcdir)/ prefix. (users.c): Likewise. (uptime.c): Likewise. From François Pinard. * configure.in: Always invoke AC_GETLOADAVG, not just if we're building uptime. Sat Apr 13 13:24:35 1996 Jim Meyering (meyering@na-net.ornl.gov) * getloadavg.c: Test cpp-defined __sun as well as sun, because in strict ANSI mode, only __sun is defined. From Kaveh Ghazi. * date.c (usage): Add missing `\n\' at the end of newly added lines for %e and %z. * who-users.c (print_uptime): Call getloadavg only if we have it. Fri Apr 12 22:03:13 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in (LINGUAS): Add de. * date.c (usage): Describe %e and %z. Reported by Karl Berry. * who-users.c: Mark translatable strings in new code. Wed Apr 10 21:26:30 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in: Add test for boot_time. From Kaveh Ghazi. * lib/Makefile.am (EXTRA_DIST): Add getloadavg.c. * src/Makefile.am (EXTRA_PROGRAMS): Add uptime. (BUILT_SOURCES): Add uptime.c. (MOSTLYCLEANFILES): Add uptime.c. (uptime.c): Add rule to build it from who-users.c. * who-users.c: Reindent. (UT_TIME_MEMBER): New macro. (print_uptime): Use it instead of #ifdef HAVE_UTMPX_H #else. (print_entry): Likewise. Tue Apr 9 23:57:19 1996 Jim Meyering (meyering@na-net.ornl.gov) * who-users.c (print_uptime) [UPTIME]: New function. From Kaveh Ghazi. Sun Apr 7 11:58:13 1996 Jim Meyering (meyering@na-net.ornl.gov) * seq.c (print_numbers): Rearrange loops to get it right. Reported by Karl Eichwalder . * seq.c (print_numbers): Give more precise diagnostic when INCREMENT is inconsistent with START and LIMIT. (usage): Clean up help message. * factor.c (usage): Give minimal description of the program. (print_factors): Give a better diagnostic. (main): Suggest --help upon failure. Reported by Karl Eichwalder . * seq.c (print_numbers): Fix off-by-one error in backwards-counting loop. Reported by Karl Eichwalder. * strftime.c (mon_week_ISO): New function to implement new %V format. (sun_week): Make TM parameter `const'. (mon_week): Likewise. (mon_week): Rewrite to implement %W format correctly. (strftime): Handle %V format. Reported by Arne Juul. Fri Apr 5 07:33:00 1996 Jim Meyering (meyering@na-net.ornl.gov) * strftime.c (sun_week): Make %U work properly. Before, `date -d '1 Jan 1995' +%U' output `00'. Now it prints `01'. * nice.c (main): Simplify option handling. Before, `nice -18 -- nice' improperly printed `8'. Patch from Frank Korz. (main): Use `if' stmt, not while loop, around getopt invocation. Otherwise, `./nice --a=1 -1 ./nice' (in which old-style option follows a long option) gets an error. Thu Apr 4 20:14:02 1996 Jim Meyering (meyering@na-net.ornl.gov) * aclocal.m4 (fp_PROG_CC_STDC): Change -Xc -D_POSIX_C_SOURCE to `-Xc -D__EXTENSIONS__' because of problems with Solaris header files. Suggested by Kaveh Ghazi. Wed Apr 3 07:08:57 1996 Jim Meyering (meyering@na-net.ornl.gov) * src/Makefile.am (INCLUDES): Add -I$(srcdir) to get system.h when srcdir != builddir. From Kaveh Ghazi. * lib/getugroups.c: Include stdio.h before grp.h. Because on alpha OSF1 V2.0 uses "FILE *". From Kaveh Ghazi. Sun Mar 31 16:26:06 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in: Simplify checking for math library. This also eliminates some confusing output from configure. Suggested by François Pinard. Fri Mar 29 22:13:10 1996 Jim Meyering (meyering@na-net.ornl.gov) * src/Makefile.am (INCLUDES): Replace -I$(top_srcdir)/intl with -I../intl. With the former, compiles didn't find libintl.h when configured with `--srcdir=..'. Reported by Marcus Daniels . * doc/Makefile.am (EXTRA_DIST): Set to getdate.texi so that file gets distributed. * src/Makefile.am (EXTRAdir): Set to $(bindir). Thu Mar 28 23:01:48 1996 Jim Meyering (meyering@na-net.ornl.gov) * ChangeLog.0: New file. * Makefile.am (EXTRA_DIST): Add ChangeLog.0. Thu Mar 28 00:06:28 1996 Jim Meyering (meyering@na-net.ornl.gov) * man/Makefile.am (man_MANS): Add chroot.1. * src/Makefile.am (EXTRA_PROGRAMS): Add chroot. Sun Dec 24 10:55:34 1995 Roland McGrath * configure.in: Check for chroot a la uname. * src/chroot.c, man/chroot.1: New files. Sun Mar 24 11:44:35 1996 Jim Meyering (meyering@na-net.ornl.gov) * su.c: Protoize and reorder functions to obviate forward decls. * seq.c: Make parameters const where appropriate. Rename global FROM to START. (print_numbers): Rewrite loops to avoid incrementing. Instead, use `x = first + i * increment' paradigm. Otherwise, with inexact increment, you could miss the last value. * xstrtod.c: New file. * xstrtod.h: New file. * lib/Makefile.am: Add xstrtod.c and xstrtod.h. * seq.c: Include xstrtod.h. (scan_double_arg): Use xstrtod rather than strtod directly. * src/*: Update FSF's address. Thu Mar 21 16:43:13 1996 Jim Meyering (meyering@na-net.ornl.gov) * src/*.c (main): Declare to be of type int, not void. Sat Mar 16 10:07:49 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in (PACKAGE_VERSION): New macro. (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS. * acconfig.h (PACKAGE_VERSION): Add it. * src/Makefile.am: Remove rules for generating version.c. Remove references to version.o, version.h, and stamp-v. [.sh]: Change @VERSION@ to @PKG_VERSION@. On RHS of sed substitution, use @PACKAGE_VERSION@, not GNUVER. (OPTIONAL_BIN_PROGS): Rename from OPTIONAL_PROGS. (install-exec-local): New target/rules to make the installed su binary setuid root or failing that, to delete it. * false.sh groups.sh nohup.sh true.sh: Use @PKG_VERSION@, not @VERSION@. * version.c: Remove file. * version.h: Remove file. * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c yes.c: Don't include version.h. (main): Use PACKAGE_VERSION instead of version_string. Fri Mar 15 23:42:29 1996 Jim Meyering (meyering@na-net.ornl.gov) * basename.c: Remove __P-protected prototype for basename. Reported by François Pinard. (remove_suffix): Move to precede use. Remove prototype. Declare formal parameter SUFFIX to be const. * pathchk.c (validate_path): Cast path_max to size_t before comparing with strlen(path). * who-users.c (read_utmp): Declare n_read to be of type size_t rather than int. Tue Mar 12 17:52:05 1996 Jim Meyering (meyering@na-net.ornl.gov) * basename.c date.c dirname.c echo.c env.c expr.c factor.c hostname.c id.c logname.c nice.c pathchk.c printenv.c printf.c pwd.c seq.c sleep.c stty.c su.c tee.c test.c tty.c uname.c who-users.c whoami.c yes.c (main): Initialize for internationalized message support: call setlocale, bindtextdomain, and textdomain. * system.h: Add definitions and includes for NLS. * Makefile.am (SUBDIRS): Add intl and po. * src/Makefile.am (datadir): Define. (localedir): Define. (DEFS): Add LOCALEDIR definition. (LDADD): Add @INTLLIBS@. * aclocal.m4: Add NLS-related macro definitions from gettext distribution. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_LC_MESSAGES, HAVE_STPCPY): New macros. Add PACKAGE and VERSION. * configure.in (PACKAGE): Define with AC_DEFINE_UNQUOTED. (VERSION): Likewise. (ALL_LINGUAS): Define. (ud_GNU_GETTEXT): Use it. Link an nls file. (AC_OUTPUT): Reflect addition of two new directories, intl and po. Create po/Makefile. Mostly from François Pinard. Wed Mar 6 21:40:34 1996 Jim Meyering (meyering@na-net.ornl.gov) * who-users.c (print_entry): Use STRUCT_UTMP, not `struct utmp' to declare formal parameter. Tue Mar 5 22:49:33 1996 Jim Meyering (meyering@na-net.ornl.gov) * getdate.y (RelativeMonth): Add 1900 to the year so that relative date specs that push the year through the end of the century work. For example, `date -d "01/01/1998 3 years" +%Y' now prints 2001. From Peter Dalgaard (pd@kubism.ku.dk). Mon Mar 4 23:46:43 1996 Jim Meyering (meyering@na-net.ornl.gov) * seq.c (main): Exit after processing --version. Reported by François Pinard. Fri Mar 1 23:46:32 1996 Jim Meyering (meyering@na-net.ornl.gov) * expr.c (docolon): Don't initialize re_syntax_options to deceptively-named RE_SYNTAX_POSIX_BASIC -- it recognizes non-BRE \?, \+, and \|. Use RE_SYNTAX_POSIX_MINIMAL_BASIC instead. * od.c (WINDOWS_SETFILEMODE_BINARY): New macro. (skip) [_WIN32 && _O_BINARY]: Use it. (read_char): Likewise. (read_block): Likewise. [_WIN32 && _O_BINARY]: Include malloc.h and io.h. Based on changes by Gary Newman . Wed Feb 28 21:48:07 1996 Paul Eggert * configure.in (LOCALTIME_CACHE): Also define if localtime mishandles unsetting TZ. This works around a localtime bug in mips-dec-ultrix. Wed Feb 28 23:08:24 1996 Jim Meyering (meyering@na-net.ornl.gov) * lib/Makefile.am (su_SOURCES): Add xstrtoul.c. (noinst_HEADERS): Add xstrtoul.h. * factor.c: General cleanup. Use xstrtoul, not atoi. Change output format. Allow inputs as large as ULONG_MAX. Allow more than one command line argument. * stty.c (wrapf) [!__STDC__]: Indent by one space the first line of the pre-ANSI function definition so ansi2knr doesn't munge it. * src/Makefile.am: Adapt for automake-0.30. * lib/Makefile.am: Likewise. * expr.c (eval6): Cast strlen to int to avoid warning from gcc -Wall. Sun Feb 25 22:19:52 1996 Jim Meyering (meyering@na-net.ornl.gov) * src/Makefile.am (BUILT_SOURCES): Set to `who.c users.c'. (MOSTLYCLEANFILES): Add who.c and users.c. (who.c): New rule to create this file. Concatenate definition of WHO and contents of who-users.c. (users.c): New rule to create this file. Concatenate definition of USERS and contents of who-users.c. Sat Feb 24 12:20:58 1996 Jim Meyering (meyering@na-net.ornl.gov) * readtokens.c: Unprotoize. * expr.c (cmpf): Indent macro uses so ansi2knr doesn't mistake them for function dcls and munge them. (arithf): Likewise. (arithdivf): Likewise. * test.c: __P-protect forward declarations. (main): Protoize function definition. * date.c (batch_convert): Declare BUFLEN local to be of type size_t, not int. * expr.c (docolon): Set re_syntax_options to RE_SYNTAX_POSIX_BASIC so expr's pattern matching uses BASIC (not GNU-extended) REs. Reported by Jim Kingdon. * who-users.c (print_entry): Use strchr, not index. * configure.in (AC_CHECK_HEADERS): Add sys/socket.h. * canon-host.c [HAVE_SYS_SOCKET_H]: Include for definition of AF_INET on at least SunOS 4. Tue Feb 13 23:49:16 1996 Jim Meyering (meyering@na-net.ornl.gov) * who-users.c (main): When failing because there were `too many arguments,' say so. Mon Feb 12 23:26:05 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in (AC_CHECK_FUNCS): Add gethostbyname, gethostbyaddr, and inet_ntoa. (AC_CHECK_HEADERS): Add netdb.h netinet/in.h arpa/inet.h. * lib/canon-host.c: New file. * lib/Makefile.am (su_SOURCES): Add canon-host.c. * src/who.c (print_entry): If possible, canonicalize the host hame. From Miles Bader (miles@gnu.ai.mit.edu). Update for automake-0.29. * Makefile.am (CONFIG_HEADER): Don't define. Automake now does it. * src/Makefile.am: Likewise. * lib/Makefile.am: Likewise. * doc/Makefile.am (info_TEXINFOS): Renamed from TEXINFOS. * man/Makefile.am (man_MANS): Renamed from MANS. Wed Jan 31 23:40:50 1996 Jim Meyering (meyering@na-net.ornl.gov) * lib/strftime.c (add_num_tz): New function. (strftime): Handle new %z format. * date.c (main): Accept new option, --rfc-822 (-R). (show_date): Use RFC822-mandated strftime format. From H. Peter Anvin (hpa@storm.net). (usage): Add a line describing the new option. * lib/strftime.c (add_num_tz): Don't use local, LENGTH, before it's defined. Mon Jan 29 19:24:04 1996 Jim Meyering (meyering@na-net.ornl.gov) * acconfig.h (PROTOTYPES): Define it. Fri Jan 19 22:00:08 1996 Jim Meyering (meyering@na-net.ornl.gov) * aclocal.m4 (fp_PROG_INSTALL): New macro. * configure.in: Use it instead of AC_PROG_INSTALL. * who-users.c: Protoize. Wed Jan 17 23:37:59 1996 Jim Meyering (meyering@na-net.ornl.gov) * stty.c: Protoize and __P-protect forward dcls. (visible): Change parameter type to unsigned int from unsigned char. (integer_arg): Use xstrtol instead of open-coding this. * lib/Makefile.am (su_SOURCES): Add xstrtol.c. (HEADERS): Add xstrtol.h. * test.c (advance): Protoize function. * sleep.c (argdecode): Declare parameter const. Sat Jan 13 22:31:23 1996 Jim Meyering (meyering@na-net.ornl.gov) * stty.c: Indent cpp directives. Sun Jan 7 23:56:03 1996 Jim Meyering (meyering@na-net.ornl.gov) Use automake to generate Makefile.in files. * Makefile.am: New file. * doc/Makefile.am: New file. * lib/Makefile.am: New file. * man/Makefile.am: New file. * src/Makefile.am: New file. * configure.in (OPTIONAL_PROGS, OPTIONAL_SCRIPTS): New variables used in place of PROGS. Sat Jan 6 05:13:40 1996 Jim Meyering (meyering@na-net.ornl.gov) * configure.in (PACKAGE, VERSION): New variables. (fp_C_PROTOTYPES): Use it. * printf.c (print_esc_char): Change type of argument from char to int to avoid potential promotion problem. * uname.c (print_element): Likewise. * system.h [__P]: New macro. * basename.c, date.c, dirname.c, echo.c, env.c, expr.c, factor.c, hostname.c, id.c, logname.c, nice.c, pathchk.c, printenv.c, printf.c, pwd.c, seq.c, sleep.c, tee.c, test.c, tty.c, uname.c, whoami.c, yes.c: Protoize and __P-protect forward dcls. * who-users.c: New file. Renamed from who.c. * who.c: Define WHO and include who-users.c. * uses.c: Define USERS and include who-users.c. * id.c Remove no-longer-used NGROUPS_MAX cpp macros. (print_group_list) [HAVE_GETGROUPS]: Reorganize to use getgroups (0, NULL) to compute number of groups at run time rather than relying on NGROUPS_MAX at compile time. (print_full_info) [HAVE_GETGROUPS]: Likewise. Suggestion from Roland McGrath. * su.c: Remove NGROUPS_MAX junk. It wasn't being used. Wed Jan 3 19:03:26 1996 Paul Eggert * configure.in (LOCALTIME_CACHE): Define if tzset exists and if localtime caches TZ. Check for tzset. * acconfig.h (LOCALTIME_CACHE): New macro. * date.c (putenv): Declare. (universal_time): Remove. (main): If -u is given, set TZ to "UTC0"; this causes date to use UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'. (show_date): Just use localtime and a single format, since TZ will be set properly if -u is given. Fri Dec 22 21:34:55 1995 Andreas Schwab * configure.in: Touch stamp-h only if config.h is remade. Sun Nov 26 16:09:33 1995 Jim Meyering (meyering@comco.com) * test.c (usage): Clarify usage. From Karl Berry. Wed Nov 22 23:12:47 1995 Jim Meyering (meyering@comco.com) * Makefile.in (all et. al.): If make was invoked with -k and a sub-make fails, fail after the loop rather than exiting right away. Otherwise, make's -k option could be ineffective. Thu Nov 16 21:25:45 1995 Jim Meyering (meyering@comco.com) * Makefile.in (default): New default target. Depend on `all' to work around bug in AIX-3.2.5's /bin/make. Reported by Andreas Luik . Tue Nov 7 23:53:20 1995 Jim Meyering (meyering@comco.com) * stty.c (usage): Clarify descriptions of ignpar and ignbrk. From Theodore Ts'o and Ulrich Windl. Sun Oct 29 08:47:50 1995 Jim Meyering (meyering@comco.com) * test.c [TEST_STANDALONE]: Define. * src/Makefile.in (test.o): Remove special rule. Sat Oct 28 00:49:13 1995 Jim Meyering (meyering@comco.com) * aclocal.m4 (jm_WITH_AUTODEPS): New directive. * configure.in: Use it. * lib/Makefile.in (INCLUDE, COMPILE): New variables. (.c.o): Rewrite to be more like src/Makefile.in. Add line that (--with-autodeps) will include mkdep-Makefile. (distclean): Remove .deps. * src/Makefile.in: Likewise. * mkdep-Makefile: New file. * Makefile.in (DISTFILES): Add mkdep-Makefile. * doc/Makefile.in (mostlyclean): Remove *.info. * date.c: New option --reference=FILE (-r FILE) analogous to the like-named touch option. (main): Recognize it and give diagnostic for misuse. (usage): Describe briefly. From Franc,ois Pinard. * date.c (batch_convert): Close input stream also when it's not stdin. (main): Reorganize to do option-consistency checks before all else. Tue Sep 26 23:05:01 1995 Jim Meyering (meyering@comco.com) * man/Makefile.in (install-data, uninstall): Use sed not basename. The GNU Coding Standard suggests that only a select set of relatively standard utilities be used in Makefiles. basename is not among them. Suggested by Ulrich Drepper. Tue Aug 8 22:57:34 1995 Jim Meyering (meyering@comco.com) * yes.c: Include system.h to get definition of _. Mon Aug 7 23:27:54 1995 Jim Meyering (meyering@comco.com) * system.h (_): Define macro -- as empty for now. * src/*.c: Annotate localizable strings with _(...). From Franc,ois. * Makefile.in (DISTFILES): Don't distribute unneeded COPYING.LIB. From Franc,ois. Fri Jun 23 23:04 1995 Jim Meyering (meyering@comco.com) * configure.in: (AC_REPLACE_FUNCS): Add memcpy and memset. Add checks for floor, modf, and rint -- all used by seq.c. Mon Jun 12 00:26:54 1995 Jim Meyering (meyering@comco.com) * getdate.y (Convert): Use 2037 as threshold, not 1999. Before years after 1999 were treated as invalid. From Andreas Schwab. Sat May 27 00:35:47 1995 Jim Meyering (meyering@comco.com) * system.h [!STDC_HEADERS && HAVE_MEMORY_H]: Include memory.h. Without this, SunOS doesn't get type for memchr. Reported by Kaveh Ghazi. Sun May 21 07:20:55 1995 Jim Meyering (meyering@comco.com) * Makefile.in (.PHONY): TAGS is not a phony target. From Franc,ois. * All Makefile.in (install-exec, install-exec): New targets. From Karl Berry. * all Makefile.in (maintainer-clean): Renamed from realclean per GNU Standards. Mon May 15 01:00:08 1995 Jim Meyering (meyering@comco.com) * all source files (usage): Include one- or two-line synopsis in --help output. From Karl Berry. Sat May 13 08:57:20 1995 Jim Meyering (meyering@comco.com) * lib/Makefile.in (maintainer-clean): Rename from realclean. (.PHONY): New dependencies. [.c.o]: Remove -I. since safe-l?stat.h are no longer used. Fri May 12 21:25:50 1995 Jim Meyering (meyering@comco.com) * test.c (usage): Remove duplicate descriptions of --help and --version. From Karl Berry. * pathchk.c: Use stat (lstat), not safe_stat (safe_lstat). * test.c: Likewise. * who.c: Likewise. * lib/Makefile.in (SOURCE): Add memcpy.c, memset.c. Remove all reference to (now unused) safe-xstat.hin. Tue Apr 18 22:57:43 1995 Jim Meyering (meyering@comco.com) * configure.in: (AC_OUTPUT): Use echo, not date, to avoid creating unnecessary conflicts for people using version control software like RCS and CVS. (AC_ARG_PROGRAM): Use it. Fri Mar 10 21:14:11 1995 Jim Meyering (meyering@comco.com) * src/*.c: Update Copyright dates. Mon Feb 27 08:05:25 1995 Jim Meyering (meyering@comco.com) * system.h: Separate errno declaration from STDC_HEADERS. Remove bcopy, bzero, strchr, strrchr definitions. * stty.c (main, set_window_size): Use memset instead of bzero. * su.c (correct_password): Likewise. * seq.c Remove \n's from error format strings. (main): Let `seq 1 1' work. Invoke usage always with 1 when failing. Sat Feb 11 08:27:12 1995 Jim Meyering (meyering@comco.com) * src/Makefile.in (install): Fix rules for su to avoid relying on just-built `id' executable. That would lose when cross-compiling and on systems like GNU in which a user may have several effective IDs. (SOURCES, OBJECTS, PROGS): Add seq. * Makefile.in (PROGS): Add seq. * configure.in (AC_REPLACE_FUNCS): Add memcmp, memcpy, and memset. (AC_CHECK_FUNCS): Add strchr and strrchr. * lib/Makefile.in (SOURCES): Add memcmp.c, memcpy.c, and memset.c. * system.h: Remove index/rindex and bcmp/bcopy/bzero references. Separate errno declaration from STDC_HEADERS. Thu Jan 26 23:38:04 1995 Jim Meyering (meyering@comco.com) * getdate.y (ToSeconds): Properly convert 12am and 12pm. From Takeshi Sone . * lib/Makefile.in (SOURCES, OBJECTS, DISTFILES): Add readtokens.[coh]. (all): Depend on safe-stat.h and safe-lstat.h. * date.c (batch_convert): Remove any trailing newline from offending line before including it in the `invalid date' error from `date -f'. Reported by Franc,ois Pinard. Sat Dec 31 09:25:09 1994 Jim Meyering (meyering@comco.com) * factor.c: New file. * Makefile.in (PROGS): Add factor. * src/Makefile.in (SOURCES, OBJECTS, PROGS): Add factor. (factor): New rule. Mon Dec 26 18:31:08 1994 Jim Meyering (meyering@comco.com) * test.c (term): Running `./test \( a -o b' got a seg fault. From from Klaus.Reichl@aut.alcatel.at. Mon Dec 19 22:05:12 1994 Jim Meyering (meyering@comco.com) * src/*.c: Include "error.h" rather than simply declaring `void error ();'. * src/Makefile.in (OBJECTS): Depend on ../lib/error.h. * lib/Makefile.in (DISTFILES): Remove safe-xstat.cin. (distclean): Remove references to safe-l?stat.c. Remove all related rules and dependencies. * safe-xstat.hin (SAFE_LSTAT, SAFE_STAT): Remove macros. Now that we always define the functions, these are no longer needed. * pathchk.c (dir_ok): Use safe_stat instead of SAFE_STAT. * who.c (print_entry): Likewise. * test.c (test_stat, binary_operator): Likewise. (unary_operator): Use safe_lstat instead of SAFE_LSTAT. Mon Dec 12 22:42:09 1994 Jim Meyering (meyering@comco.com) * expr.c (docolon): Zero out re_buffer and re_regs before using them. From H.J. Lu . Sun Dec 4 14:53:12 1994 Jim Meyering (meyering@comco.com) * dirname.c (main): Use strchr and strrchr instead of index and rindex. * echo.c (main): Likewise. * env.c (main): Likewise. * pathchk.c (validate_path): Likewise. * printf.c (print_formatted, print_esc): Likewise. * test.c [member]: Likewise. * who.c (extract_trimmed_name): Likewise. * system.h [!HAVE_STRING_H]: Define strchr to index and strrchr to rindex instead of the other way around. * doc/Makefile.in (DISTFILES): Add getdate.texi. Sat Dec 3 07:59:55 1994 Jim Meyering (meyering@comco.com) * configure.in (AC_CHECK_FUNCS): Add strchr and strrchr. (AC_CHECK_HEADERS): Add stdlib.h. (LIBS): If the strtod replacement is required, check for pow in -lm. * src/Makefile.in (printf): Remove hard-coded -lm. Not every system has it. Thu Nov 17 23:47:26 1994 Jim Meyering (meyering@comco.com) * who.c (list_entries): Delete. Split in two actually... (list_entries_users, list_entries_who, userid_compare): New functions. (list_entries_users): Sort the user names. Reported by Michael I Bushnell. Topologically sort the functions and remove fwd declarations.