Thu Mar 6 17:14:49 1997 Jim Kingdon * regex.c: Partial merge with version from emacs 19.34. I brought over most trivial changes (whitespace and so on). Most of the changes to portability cruft I did not bring over, on the theory of sticking to the devil that we know. I did bring over the change to undef MAX and MIN (this is a better solution to a problem we had been handling a different way). There were a variety of changes I probably could/should have brought over, but elected not to try to understand them and whether they would cause trouble (printchar -> putchar, changes to output format in print_partial_compiled_pattern, internationalization, FREE_STACK_RETURN and friends which would appear to be fixing memory leaks in error cases, RE_TRANSLATE_TYPE, and others). I did merge the changes (union fail_stack_elt, PUSH_FAILURE_POINTER, etc.) to use a union for the failure stack rather than playing games with pointers and integers (that was my reason for bothering; the code had been broken on the Alpha). Mon Feb 10 18:52:18 1997 Ullrich von Bassewitz * md5.c: Make the parameter to getu32 const since the function will only read the values and this will avoid compiler warnings in other places. Mon Feb 10 18:29:04 1997 Ullrich von Bassewitz * vasprintf.c: Added a #define for systems where a va_list is defined as an array, not as a pointer. Mon Feb 10 09:31:38 1997 Ken Raeburn * md5.c (MD5STEP): Truncate to 32 bits before shifting right. Thu Jan 30 11:35:26 1997 Jim Kingdon * regex.h: Don't prototype re_comp and re_exec. Tue Jan 28 17:45:46 1997 Jim Kingdon * md5.c, md5.h: Changes so these work without having an integer type which is exactly 32 bits. Modeled after changes by Tatu Ylonen as part of SSH but rewritten. Wed Jan 8 14:50:47 1997 Jim Kingdon * Makefile.in, getopt.h, sighandle.c, system.h: Remove CVSid; we decided to get rid of these some time ago. Thu Jan 2 13:30:56 1997 Jim Kingdon * Makefile.in, argmatch.c, fnmatch.c, fnmatch.h, getline.c, getopt.c, getopt.h, getopt1.c, getwd.c, hostname.c, mkdir.c, regex.c, regex.h, rename.c, sighandle.c, strdup.c, strerror.c, stripslash.c, system.h, vasprintf.c, wait.h, xgetwd.c, yesno.c: Remove "675" paragraph; see ../ChangeLog for rationale. Sun Nov 24 13:34:25 1996 Jim Kingdon * getdate.y (Convert): Change last acceptable year from 1999 to 2038. * getdate.c: Regenerated using byacc 1.9. Tue Nov 19 17:11:17 1996 Jim Kingdon * Makefile.in (OBJECTS): Remove strippath.o; we don't use strip_path anymore. (SOURCES): Remove strippath.c. * strippath.c: Removed. * build_lib.com: Remove strippath.c. Wed Oct 2 10:43:35 1996 Norbert Kiesel * getdate.y: removed CVSid variable * getdate.c: regenerated (using byacc 1.9) Wed Sep 25 10:25:00 1996 Larry Jones * vasprintf.c: Fix type clashes in calls to strtoul. Wed Sep 11 15:55:31 1996 Jim Kingdon * build_lib.com: Add valloc.c. Tue Sep 10 23:04:34 1996 Jim Kingdon * Makefile.in (DISTFILES): Add build_lib.com. Fri Aug 16 16:01:57 1996 Norbert Kiesel * Makefile.in (installdirs): new (empty) target Mon Aug 12 11:03:43 1996 Jim Kingdon * system.h: Don't use #elif. It is said to cause problems with one of the HP compilers on HPUX 9.01. Sun Jul 7 23:25:46 1996 Jim Kingdon * memmove.c: Removed. The memove function was used by a very old version of the CVS server for nefarious purposes and it has been long gone. * Makefile.in (SOURCES): Remove memmove.c. Thu Jun 6 15:12:59 1996 Jim Kingdon * vasprintf.c: If STDC_HEADERS, include stdlib.h rather than declaring its functions ourself. Wed Jun 05 10:14:29 1996 Mike Ladwig and Jim Kingdon * system.h: If ERRNO_H_MISSING is defined, don't include errno.h. Wed Jun 05 10:14:29 1996 Mike Ladwig * regex.c: Don't define MAX and MIN if already defined. Sun May 12 09:40:08 1996 Jim Kingdon * getdate.y: Replace alloca.h include with a comment explaining why we avoid alloca and the consequences of that. * getdate.c: Regenerated. Wed May 8 09:31:03 1996 Jim Kingdon * getdate.c: Regenerate with the version of byacc in Red Hat 3.0.3 (which I believe is byacc 1.9). byacc, unlike bison, does not require alloca in the generated parser. Thu Apr 25 18:26:34 1996 Jim Kingdon * getdate.y (get_date): Set Start from nowtime, not now->time, which may not be set. * getdate.c: Regenerated. Wed Apr 10 17:55:02 1996 Jim Kingdon * getdate.y (get_date): Use a time_t variable rather than a field in a struct timeb. Works around Solaris compiler bug. Sure, it is a compiler bug, but the workaround is completely painless. * getdate.c: Regenerated. Fri Mar 22 11:17:05 1996 Jim Kingdon * system.h: If EXIT_FAILURE is not defined by stdlib.h, define it ourself. Thu Mar 14 16:27:53 1996 Jim Kingdon * system.h: Remove alloca cruft. Wed Feb 28 03:16:48 1996 Benjamin J. Lee * build_lib.com: Changed definition of symbol CC to search for include files in [-.VMS] so VMS config.h can be picked up without copying. Tue Feb 27 21:26:34 1996 Benjamin J. Lee * build_lib.com: Added. DCL File to build contents of [.lib] Tue Feb 27 21:18:38 1996 Benjamin J. Lee * system.h: added an existence_error macro check for EVMSERR necessary for happiness under VMS Thu Feb 22 22:30:04 1996 Jim Kingdon * Makefile.in (OBJECTS): Remove @ALLOCA@ (SOURCES): Remove alloca.c * alloca.c: Removed. * regex.c (REGEX_MALLOC): Define. Thu Feb 15 14:00:00 Jim Kingdon * vasprintf.c: Declare abs(). Wed Feb 14 14:48:31 1996 Jim Kingdon * vasprintf.c (int_vasprintf): Don't cast arguments to memcpy. * vasprintf.c, strtoul.c: Don't include ansidecl.h. Do include config.h if HAVE_CONFIG_H (for const). * strtoul.c: Change CONST to const. Tue Feb 13 20:04:39 1996 Jim Kingdon * strtoul.c: Added (needed by vasprintf.c, and missing on SunOS4). * Makefile.in (SOURCES): Add strtoul.c. Mon Feb 12 10:04:46 1996 Jim Kingdon * vasprintf.c: Added (same contents as before). * Makefile.in (SOURCES): Add vasprintf.c. Thu Feb 1 14:33:17 1996 Karl Fogel * Makefile.in (xlint): new rule; does nothing, as I'm not sure running lint is actually advisable in here, but the top-level Makefile thinks it can `make xlint' here. Thu Feb 1 15:07:42 1996 Jim Kingdon * getopt.c: Remove rcsid. Tue Jan 30 18:20:27 1996 Jim Kingdon * getline.c: Don't define NDEBUG. (getstr): Rewrite assertions in a way which should stay clear of signed/unsigned problems and compiler warnings thereof. Thu Jan 25 00:14:06 1996 Jim Kingdon * yesno.c (yesno): fflush stdout as well as stderr. Wed Jan 3 18:16:50 1996 Jim Kingdon * sighandle.c (SIG_register): Use memset not bzero. * system.h: Remove defines for index, rindex, bcmp, and bzero. All the calls to those functions are gone from CVS. Tue Jan 2 13:00:00 1996 Jim Kingdon Visual C++ lint: * sighandle.c: Prototype SIG_handle and SIG_defaults. Use SIG_ERR where appropriate. Mon Dec 18 10:15:05 1995 Jim Kingdon * rename.c: Check ENOENT rather than existence_error. The latter is undefined in this file, and including system.h is said to cause (unspecified) problems. Sun Dec 17 23:58:06 1995 Jim Kingdon * vasprintf.c: Removed (it is no longer used). * Makefile.in (SOURCES): Remove vasprintf.c. Sat Dec 16 17:18:33 1995 Jim Kingdon * vasprintf.c: Added. * Makefile.in (SOURCES): Add vasprintf.c Mon Dec 4 10:54:04 1995 Jim Kingdon * getdate.c: Remove #line directives. I know, this is a kludge, but Visual C++ 2.1 seems to require it (why, I have no idea. It has no trouble with the #line directives in getdate in CVS 1.6). Sat Nov 18 16:20:37 1995 Karl Fogel * rename.c: same. * mkdir.c: Use new macro `existence_error', instead of comparing errno to ENOENT directly. * system.h (existence_error): new macro, tries to portably ask if errno represents a file-not-exist error. Fri Nov 17 20:08:58 1995 Karl Fogel * system.h (NEED_DECOY_PERMISSIONS): moved this section to where it belongs, duh. * getdate.c: if STDC_HEADERS, then just include instead of declaring malloc() and realloc() to be char *. * system.h: ifdef NEED_DECOY_PERMISSIONS, then define the S_I* permission masks for USR, GRP, and OTH in terms of the simpler OS/2 masks. Wed Nov 15 15:36:03 1995 Karl Fogel * system.h: ifdef USE_OWN_TCPIP_H, then include "tcpip.h". Only OS/2 does this right now. Tue Nov 14 18:44:57 1995 Greg A. Woods * getdate.c: OK, this one is from SunOS-4.1 yacc and may be more portable -- at least it compiles silently here! ;-) Mon Nov 13 03:53:45 1995 Karl Fogel * fnmatch.c: conform to 80 column standard (yes, I'm a pedant). Wed Nov 8 11:10:59 1995 Karl Fogel * system.h (STAT_MACROS): ifdef S_IFMT, then use it as before; but if it's not defined, then just do a single mask and assume acceptance any of non-zero result. Norbert, I trust you'll let me know if this is unsatisfactory. :-) Ifdef HAVE_SYS_UTIME_H, then include . Only OS/2 defines this right now. Wed Nov 8 13:18:51 1995 Norbert Kiesel * valloc.c: omit malloc declaration (it's already in system.h which is included and conflicts with on some systems). Tue Nov 7 19:38:48 1995 Norbert Kiesel * system.h (STAT_MACROS_BROKEN): undo previous change, because else all regular files will be identified as links (the mask for links is S_IFREG|S_IFCHR). Mon Nov 6 19:20:56 1995 Karl Fogel * system.h (STAT_MACROS_BROKEN): in defining the S_IF* macros, don't fold to 1 or 0 by first masking with S_IFMT; not all systems have that macro, and anyway it's only necessary that we return non-zero. Fri Oct 27 13:43:35 1995 Karl Fogel * save-cwd.c: use __PROTO instead of __P (see below). * getline.h (__PROTO): same as below. * save-cwd.h (__PROTO): replaces __P. New name, so don't ask if already defined. The conflict was that OS/2 w/ IBM C/C++ uses `__P' for something else, in of all places. * system.h: do nothing about alloca ifdef ALLOCA_IN_STDLIB (see ../src/ChangeLog). Tue Oct 24 13:01:25 1995 Norbert Kiesel * wait.h: include sys/resource.h if available. This is needed at least under AIX-3.2 where doesn't include it. Mon Oct 23 17:39:11 1995 Norbert Kiesel * valloc.c (valloc): change parameter definition Sun Oct 22 14:15:44 1995 Jim Meyering (meyering@comco.com) * getline.c, getline.h: New files. * Makefile.in (SOURCES, OBJECTS, HEADERS): Add getline.c, getline.o, and getline.h, respectively. Tue Oct 10 18:01:50 1995 Karl Fogel * Makefile.in (cvs_srcdir): define cvs_srcdir to be ../src, then include it with -I so save_cwd.c can find error.h (for example). Sun Oct 8 12:27:57 1995 Peter Wemm * system.h: define POSIX_SIGNALS or BSD_SIGNALS if configure has located all the necessary functions for each "type". * sighandle.c: detect/use POSIX/BSD reliable signals (especially for blocking signals in critical sections). Helps prevent stray locks on interruption. Mon Oct 2 18:11:23 1995 Jim Blandy * system.h: Doc fix. Mon Oct 2 18:10:35 1995 Larry Jones * regex.c: compile 4.2 BSD compatible functions even when _POSIX_SOURCE is defined since we need them and we wouldn't be compiling this file unless they don't exist. Mon Oct 2 10:32:20 1995 Michael Finken * strstr.c (strstr): new file and func. * Makefile.in (SOURCES): added strstr.c. Sun Oct 1 21:03:40 1995 Karl Fogel * regex.c: reverted below change. Thu Sep 28 13:37:04 1995 Larry Jones * regexp.c: check for ISC. Thu Sep 7 19:18:00 1995 Jim Blandy * save-cwd.c: #include and , on systems that have them. * getopt.c (_getopt_internal): Cast the return value of strlen, which is unsigned, before comparing it with the difference between two pointers, which is unsigned. Thu Aug 31 11:31:42 1995 Jim Blandy * getdate.y [STDC_HEADERS]: #include , for abort. [HAVE_ALLOCA_H]: #include , for alloca on Windows NT. Wed Aug 30 18:48:44 1995 Jim Blandy * system.h [HAVE_IO_H]: #include , for Windows NT. [HAVE_DIRECT_H]: #include , for Windows NT. (CVS_MKDIR, FOLD_FN_CHAR, fnfold, fncmp, ISDIRSEP, OPEN_BINARY, FOPEN_BINARY_READ, FOPEN_BINARY_WRITE): New macros/functions, for use in system-sensitive code. * regex.c (re_set_registers): start and end are pointers, not integers. Cast the initializing value appropriately. * getopt.c [HAVE_STRING_H]: #include , to avoid warnings. * fnmatch.c (FOLD_FN_CHAR): Give this a dummy #definition if config.h didn't #define it. (fnmatch): Pass filename characters through FOLD_FN_CHAR before comparing them. * argmatch.c: #include . (argmatch): Declare arglen to be a size_t, rather than an int, to avoid signed/unsigned comparison "problems". * .cvsignore: Remove getdate.c from this file. We want to distribute it, for systems that don't have a Yacc-equivalent installed (like Windows NT). Sat Aug 19 22:00:51 1995 Jim Blandy * error.c: Don't #define CVS_SUPPORT here. config.h takes care of that for us. [CVS_SUPPORT] (error_use_protocol): New variable, with apology. (error): If error_use_protocol is set, report errors using the client/server protocol. * error.h [CVS_SUPPORT]: Extern decl for error_use_protocol. Fri Aug 4 00:01:24 1995 Jim Meyering (meyering@comco.com) * xgetwd.c: Don't declare free. A K&R style declaration gets a conflict on some Sun systems when compiling with acc. * save-cwd.c: New file. * save-cwd.h: New file. * Makefile.in (SOURCES): Add save-cwd.c (OBJECTS): Add save-cwd.o. (HEADERS): Add save-cwd.h. Thu Aug 3 00:55:54 1995 Jim Meyering (meyering@comco.com) * error.h: New file. * Makefile.in (HEADERS): Add error.h. Sat Jul 29 15:53:55 1995 James Kingdon * Makefile.in (SOURCES): Add getdate.c. Thu Jul 27 09:11:41 1995 Robert Lipe * system.h: Check for PATHSIZE before falling back to _POSIX_PATH_MAX. Thu Jul 20 12:38:03 1995 James Kingdon * error.c: Instead of calling cvs functions to clean up, allow cvs to register a callback via error_set_cleanup. Avoids hassles with include files and SERVER_SUPPORT and so on. Tue Jul 18 21:18:00 1995 Jim Blandy * system.h: Include only if HAVE_SYS_PARAM_H is #defined. We've added a test to configure.in to #define this on most systems. Thu Jul 13 11:22:21 1995 Jim Meyering (meyering@comco.com) * xgetwd.c: New file. * Makefile.in (SOURCES): Add xgetwd.c (OBJECTS): Add xgetwd.o. Wed Jul 12 09:18:49 1995 Jim Meyering (meyering@comco.com) * Makefile.in (OBJECTS): Remove fnmatch.o. Now configure adds it to LIBOBJS when necessary. Fri Jun 30 16:27:18 1995 James Kingdon * rename.c (rename): If MVDIR is not defined, just give an error on attempt to rename a directory. Thu Jun 29 00:46:31 1995 James Kingdon * system.h: Check HAVE_SYS_TIMEB_H not non-existent HAVE_TIMEB_H. * system.h: Don't define alloca if it is already defined. Wed Jun 28 15:24:51 1995 James Kingdon * system.h: If NeXT, define utimbuf ourself. Mon May 29 22:32:40 1995 J.T. Conklin * system.h: Handle time and directory headers as recommended in the autoconf manual. Undefine the S_FOO() macros if STAT_MACROS_BROKEN is set. Don't define mode_t, as it is handled by config.h. Sat May 27 08:46:00 1995 Jim Meyering (meyering@comco.com) * Makefile.in (Makefile): Regenerate only Makefile in current directory when Makefile.in is out of date. Depend on ../config.status. Fri Apr 28 22:49:25 1995 Jim Blandy * Makefile.in (SOURCES, OBJECTS): Updated. (HEADERS): New variable. (DISTFILES): Updated. (dist-dir): Renamed from dist; changed to work with DISTDIR variable passed from parent. Wed Feb 8 06:37:53 1995 Roland McGrath * system.h (S_IRUSR et al): Define if not already defined. * waitpid.c [HAVE_CONFIG_H]: Include "config.h". (ualloc): Return OLDPTR rather than running off the end. Mon Aug 22 22:48:19 1994 Ken Raeburn (raeburn@kr-pc.cygnus.com) * error.c (strerror): Replaced conditional static definition (always used, since the condition variable was never set) with an extern declaration, since it's provided by libc or strerror.c. Wed Aug 10 14:54:25 1994 Ken Raeburn (raeburn@cujo.cygnus.com) * Makefile.in (SOURCES): Add waitpid.c. * waitpid.c: New file. Tue Aug 9 16:00:12 1994 Ken Raeburn (raeburn@cujo.cygnus.com) * md5.h (uint32): If SIZEOF_LONG isn't 4, don't define this to be "unsigned long"; try SIZEOF_INT and "unsigned int", otherwise complain. * md5.c: Include config.h. (const): Don't bother defining here, config.h should take care of it. * valloc.c (malloc): Declare. Fri Jul 15 12:57:20 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * getopt.c: Do not include unless __GNU_LIBRARY__ is defined. On Irix 5.2, includes , which causes a multiple definition of struct option. Fri Jul 8 10:04:59 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * md5.h, md5.c: Remove ANSI-isms. Thu Jul 7 20:24:18 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) * md5.h, md5.c: New files. * Makefile.in (SOURCES): Add md5.c. (OBJECTS): Add md5.o. (DISTFILES): Add md5.h. (md5.o): New target; depend upon md5.h. Fri May 27 18:15:34 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) * valloc.c: New file. Tue May 17 08:18:26 1994 Jim Kingdon (kingdon@lioth.cygnus.com) * error.c (error, fperror): If server_active, call server_cleanup as well as Lock_Cleanup. Thu Jan 6 13:45:04 1994 Ken Raeburn (raeburn@cujo.cygnus.com) * system.h: Fix Dec 27 change to work correctly. Makes Sep 9 change unnecessary, so backed that one out. Never define PATH_MAX in terms of pathconf, because that doesn't produce a constant, and PATH_MAX is used to set array sizes. Mon Dec 27 14:22:07 1993 Mark Eichin (eichin@cygnus.com) * system.h: don't touch PATH_MAX or MAXPATHLEN if *both* of them are already defined, as one may be defined in terms of the other.