1*69606e3fSchristos2006-02-24 Eli Zaretskii <eliz@gnu.org> 2*69606e3fSchristos 3*69606e3fSchristos * glob.c (my_malloc) [WINDOWS32]: Provide a full ISO C prototype, 4*69606e3fSchristos to avoid compiler warnings. 5*69606e3fSchristos 6*69606e3fSchristos2005-06-25 Paul D. Smith <psmith@gnu.org> 7*69606e3fSchristos 8*69606e3fSchristos * fnmatch.h, glob.h [WINDOWS32]: Fix ifdefs in headers. 9*69606e3fSchristos Fixes Savannah bug #13477. 10*69606e3fSchristos 11*69606e3fSchristos2005-03-11 Paul D. Smith <psmith@gnu.org> 12*69606e3fSchristos 13*69606e3fSchristos * glob.c (glob_in_dir): Change FNM_CASEFOLD to be enabled if 14*69606e3fSchristos HAVE_CASE_INSENSITIVE_FS is defined. 15*69606e3fSchristos 16*69606e3fSchristos2003-01-30 Paul D. Smith <psmith@gnu.org> 17*69606e3fSchristos 18*69606e3fSchristos * glob.h: Patch for FreeBSD by Mike Barcroft <mike@freebsd.org> 19*69606e3fSchristos Reported by Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>. On 20*69606e3fSchristos FreeBSD, declare __size_t to simply size_t. 21*69606e3fSchristos 22*69606e3fSchristos2002-04-22 Paul D. Smith <psmith@gnu.org> 23*69606e3fSchristos 24*69606e3fSchristos * Makefile.am: Use automake 1.6. 25*69606e3fSchristos Use new automake condition USE_LOCAL_GLOB to decide whether or not 26*69606e3fSchristos to build the local GNU glob library or use the system one. 27*69606e3fSchristos 28*69606e3fSchristos1999-09-12 Paul D. Smith <psmith@gnu.org> 29*69606e3fSchristos 30*69606e3fSchristos * fnmatch.c: Last GLIBC version wouldn't compile outside of GLIBC 31*69606e3fSchristos (undefined reference to internal_function). Update to the latest 32*69606e3fSchristos version 33*69606e3fSchristos 34*69606e3fSchristos1999-09-11 Paul Eggert <eggert@twinsun.com> 35*69606e3fSchristos 36*69606e3fSchristos * glob.h (glob): If #defining to glob64, do this before 37*69606e3fSchristos declaring it, so that all declarations and uses match, and 38*69606e3fSchristos do not declare glob64, to avoid a declaration clash. 39*69606e3fSchristos (globfree): Likewise with globfree64. 40*69606e3fSchristos 41*69606e3fSchristos1999-09-08 Eli Zaretskii <eliz@is.elta.co.il> 42*69606e3fSchristos 43*69606e3fSchristos * glob.c (prefix_array) [__MSDOS__,WINDOWS32]: Keep the trailing 44*69606e3fSchristos slash unless DIRNAME is just "x:/". 45*69606e3fSchristos 46*69606e3fSchristos1999-09-06 Paul D. Smith <psmith@gnu.org> 47*69606e3fSchristos 48*69606e3fSchristos * fnmatch.c: Update to latest version from GLIBC. 49*69606e3fSchristos 50*69606e3fSchristos1999-07-21 Paul D. Smith <psmith@gnu.org> 51*69606e3fSchristos 52*69606e3fSchristos * glob.c, glob.h, fnmatch.c, fnmatch.h: Update to latest version 53*69606e3fSchristos from GLIBC. 54*69606e3fSchristos 55*69606e3fSchristos * fnmatch.c (internal_fnmatch): Use K&R definition syntax, not ANSI. 56*69606e3fSchristos (__strchrnul): This won't exist outside GLIBC, so create one. 57*69606e3fSchristos 58*69606e3fSchristos * glob.c: Move getlogin{,_r} prototypes below glob.h to get __P() 59*69606e3fSchristos macro. 60*69606e3fSchristos 61*69606e3fSchristos1998-08-05 Paul D. Smith <psmith@gnu.org> 62*69606e3fSchristos 63*69606e3fSchristos * configure.in: Remove; configuration for glob is handled by the 64*69606e3fSchristos make configure.in. 65*69606e3fSchristos 66*69606e3fSchristos1998-07-29 Paul D. Smith <psmith@gnu.org> 67*69606e3fSchristos 68*69606e3fSchristos * glob.c, fnmatch.c: New versions from the GLIBC folks (Ulrich 69*69606e3fSchristos Drepper). Fixes a bug reported by Eli Zaretski. Integrates 70*69606e3fSchristos DOS/Windows32 support. 71*69606e3fSchristos 72*69606e3fSchristos1998-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 73*69606e3fSchristos 74*69606e3fSchristos * glob.c (glob): Cast away const on assignment of pattern to dirname. 75*69606e3fSchristos Cast the return type of __alloca() for traditional C compilers. 76*69606e3fSchristos 77*69606e3fSchristos1998-07-23 Paul D. Smith <psmith@gnu.org> 78*69606e3fSchristos 79*69606e3fSchristos * glob.c, fnmatch.c: New versions of these files from the GLIBC 80*69606e3fSchristos folks (Ulrich Drepper). Had to re-integrate some DOS/Windows 81*69606e3fSchristos code. 82*69606e3fSchristos 83*69606e3fSchristos1998-07-10 Paul D. Smith <psmith@gnu.org> 84*69606e3fSchristos 85*69606e3fSchristos * glob.c (glob_in_dir): If no meta chars exist in PATTERN and 86*69606e3fSchristos GLOB_NOCHECK is present, don't look for the file--whether it's 87*69606e3fSchristos found or not, we'll always return it, so why bother searching? 88*69606e3fSchristos 89*69606e3fSchristos Also, if we are searching and there are no meta chars, don't 90*69606e3fSchristos bother trying fnmatch() if the strcmp() fails. 91*69606e3fSchristos 92*69606e3fSchristos1998-05-30 Eli Zaretskii <eliz@is.elta.co.il> 93*69606e3fSchristos 94*69606e3fSchristos * glob.c (glob) [__MSDOS__, WINDOWS32]: Compute the directory and 95*69606e3fSchristos filename parts of the pattern correctly when it includes a drive 96*69606e3fSchristos spec. Disallow wildcards in the drive spec. Prevent recursion 97*69606e3fSchristos when dirname is of the form "d:/" or "d:". 98*69606e3fSchristos (prefix_array) [__MSDOS__, WINDOWS32]: Don't append a slash to 99*69606e3fSchristos "d:/" and "d:". 100*69606e3fSchristos 101*69606e3fSchristos1998-05-13 Paul D. Smith <psmith@gnu.org> 102*69606e3fSchristos 103*69606e3fSchristos * SMakefile, Makefile.ami, glob.c, glob.h, fnmatch.c: Updated from 104*69606e3fSchristos the latest glibc version. 105*69606e3fSchristos 106*69606e3fSchristos1998-04-17 Paul D. Smith <psmith@gnu.org> 107*69606e3fSchristos 108*69606e3fSchristos * configure.in: Create a config.h file instead of setting things 109*69606e3fSchristos on the compile line. This is because when build.sh runs it merely 110*69606e3fSchristos passes -DHAVE_CONFIG_H to the glob files, just as it does to the 111*69606e3fSchristos make files. 112*69606e3fSchristos * config.h.in: Created by autoheader. 113*69606e3fSchristos 114*69606e3fSchristosTue Aug 12 10:52:34 1997 Paul D. Smith <psmith@baynetworks.com> 115*69606e3fSchristos 116*69606e3fSchristos * configure.in: Require autoconf 2.12. 117*69606e3fSchristos 118*69606e3fSchristos * glob: Updates from latest GNU libc glob code. 119*69606e3fSchristos 120*69606e3fSchristos * glob.c,glob.h,fnmatch.h: Change all WIN32 references to WINDOWS32. 121*69606e3fSchristos 122*69606e3fSchristos * glob.h: OSF4 defines macros in such a way that GLOB_ALTDIRFUNC 123*69606e3fSchristos is not defined. Added a test to the #if which defines it if 124*69606e3fSchristos _GNU_SOURCE is defined; that's set by both glob.c and GNU make. 125*69606e3fSchristos 126*69606e3fSchristos * glob.c: SunOS4 w/ cc needs #include <stdio.h>, since assert.h 127*69606e3fSchristos requires stderr but doesn't include stdio.h :-/. 128*69606e3fSchristos (next_brace_sub): De-protoize function definition. 129*69606e3fSchristos (glob): Cast __alloca(); on SunOS4 it uses the default return type 130*69606e3fSchristos of int. 131*69606e3fSchristos (glob): Irix defines getlogin_r() to return a char*; move the 132*69606e3fSchristos extern for that into the _LIBC area since it isn't used except in 133*69606e3fSchristos LIBC anyway. Likewise, move extern getlogin() into the "else". 134*69606e3fSchristos 135*69606e3fSchristosSat Jul 20 21:55:31 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 136*69606e3fSchristos 137*69606e3fSchristos Win32 hacks from <Rob_Tulloh@tivoli.com>. 138*69606e3fSchristos * posix/glob.c [WIN32]: Don't include <pwd.h>; don't use d_ino; 139*69606e3fSchristos use void * for my_realloc; include <malloc.h> for alloca. 140*69606e3fSchristos (glob) [WIN32]: Use "c:/users/default" for ~ if no HOME variable. 141*69606e3fSchristos * posix/fnmatch.h [WIN32]: Use prototypes even if [!__STDC__]. 142*69606e3fSchristos * posix/glob.h: Likewise. 143*69606e3fSchristos 144*69606e3fSchristosFri Jul 19 16:56:41 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 145*69606e3fSchristos 146*69606e3fSchristos * posix/glob.h [!_AMIGA && !VMS]: Check this instead of just [!_AMIGA] 147*69606e3fSchristos for `struct stat;' forward decl. 148*69606e3fSchristos 149*69606e3fSchristosSat Jun 22 10:44:09 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 150*69606e3fSchristos 151*69606e3fSchristos * posix/glob.c: Include <alloca.h> only [HAVE_ALLOCA_H], not [sparc]. 152*69606e3fSchristos 153*69606e3fSchristosFri Jun 21 00:27:51 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 154*69606e3fSchristos 155*69606e3fSchristos * posix/fnmatch.c (fnmatch): Fix \*[*?]+ case to increment name ptr 156*69606e3fSchristos only for ?s, not for *s. Fix from Chet Ramey. 157*69606e3fSchristos 158*69606e3fSchristos 159*69606e3fSchristosCopyright (C) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 160*69606e3fSchristos1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software 161*69606e3fSchristosFoundation, Inc. 162*69606e3fSchristosThis file is part of GNU Make. 163*69606e3fSchristos 164*69606e3fSchristosGNU Make is free software; you can redistribute it and/or modify it under the 165*69606e3fSchristosterms of the GNU General Public License as published by the Free Software 166*69606e3fSchristosFoundation; either version 2, or (at your option) any later version. 167*69606e3fSchristos 168*69606e3fSchristosGNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 169*69606e3fSchristosWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 170*69606e3fSchristosA PARTICULAR PURPOSE. See the GNU General Public License for more details. 171*69606e3fSchristos 172*69606e3fSchristosYou should have received a copy of the GNU General Public License along with 173*69606e3fSchristosGNU Make; see the file COPYING. If not, write to the Free Software 174*69606e3fSchristosFoundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 175