The NetBSD Project

CVS log for src/lib/libc/gen/glob.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / gen

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.35 / (download) - annotate - [select for diffs], Wed Mar 20 23:44:47 2013 UTC (19 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.34: +7 -7 lines
Diff to previous 1.34 (colored)

Use "unsigned FOO" instead of less-portable "u_FOO".

Revision 1.34 / (download) - annotate - [select for diffs], Thu Feb 21 18:17:43 2013 UTC (20 months ago) by christos
Branch: MAIN
Changes since 1.33: +3 -24 lines
Diff to previous 1.33 (colored)

remove code that did special handling for . and .. at the end of the path.
From mouse@

Revision 1.33 / (download) - annotate - [select for diffs], Thu Dec 27 21:17:47 2012 UTC (21 months, 3 weeks ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8
Changes since 1.32: +14 -24 lines
Diff to previous 1.32 (colored)

Instead of changing the code to match the documentation, change the documentation
to match the code. NOCHECK is used only by csh(1) and csh(1) is too broken for
words (histchars quoting is "special").

Revision 1.32 / (download) - annotate - [select for diffs], Tue Dec 18 01:39:56 2012 UTC (22 months ago) by christos
Branch: MAIN
Changes since 1.31: +26 -16 lines
Diff to previous 1.31 (colored)

Do as the man page says, and for GLOB_NOCHECK return the original pattern,
not a modified version with the backslash characters removed.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Oct 30 21:53:43 2011 UTC (2 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.30: +4 -4 lines
Diff to previous 1.30 (colored)

PR/45517: Henning Petersen: Add restrict keywords in the definition of glob
to match the declaration.

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 14 22:44:06 2011 UTC (3 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp
Changes since 1.29: +5 -4 lines
Diff to previous 1.29 (colored)

PR/44959: Henning Petersen: glob forgets to closedir on out of space condition.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jan 22 16:24:44 2011 UTC (3 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.28: +2 -3 lines
Diff to previous 1.28 (colored)

remove stray printf.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 21 23:30:31 2011 UTC (3 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.27: +49 -34 lines
Diff to previous 1.27 (colored)

prevent resource DoS from brace expansion (from Maksymilian Arciemowicz)

Revision 1.27 / (download) - annotate - [select for diffs], Mon Sep 6 14:40:25 2010 UTC (4 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.26: +96 -30 lines
Diff to previous 1.26 (colored)

Add GLOB_STAR support from Greg Dionne.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 6 14:59:22 2010 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.25: +33 -12 lines
Diff to previous 1.25 (colored)

Apply more limits to GLOB_LIMIT, number of stat(2) calls from me and number
of readdir(3) calls from Maksymilian Arciemowicz. Also reduce the memory
used by matches strings from Maksymilian Arciemowicz.

Revision 1.25 / (download) - annotate - [select for diffs], Fri Jul 2 21:13:10 2010 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.24: +20 -18 lines
Diff to previous 1.24 (colored)

Avoid DoS attacks for patterns that have braces. Noted by Maksymilian
Arciemowicz.
XXX: Pullup to 5.x

Revision 1.24 / (download) - annotate - [select for diffs], Wed Apr 8 16:28:50 2009 UTC (5 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.23: +35 -2 lines
Diff to previous 1.23 (colored)

add glob_pattern_p for glibc because cvs needs it and it is a huge mess
to compile in the gnu glob code.

Revision 1.23 / (download) - annotate - [select for diffs], Mon May 26 13:06:38 2008 UTC (6 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, christos-time_t-nbase, christos-time_t-base
Branch point for: netbsd-5-0, netbsd-5, matt-nb5-mips64, jym-xensuspend, christos-time_t
Changes since 1.22: +7 -2 lines
Diff to previous 1.22 (colored)

Fedora Core 9 doesn't provide ARG_MAX, so use _POSIX_ARG_MAX if it's
not available.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Feb 22 18:33:51 2008 UTC (6 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: yamt-pf42, wrstuden-revivesa
Changes since 1.21: +12 -2 lines
Diff to previous 1.21 (colored)

GLOB_NO_DOTDIRS patch from mouse@
Fixes re-definition of GLOB_PERIOD.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Feb 1 23:29:54 2008 UTC (6 years, 8 months ago) by christos
Branch: MAIN
Branch point for: keiichi-mipv6
Changes since 1.20: +22 -9 lines
Diff to previous 1.20 (colored)

Try to fix previous commit of /.. and /. handling for GLOB_PERIOD. I will
write a regression test for this.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jan 18 16:20:00 2008 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.19: +12 -3 lines
Diff to previous 1.19 (colored)

From Richard M Kreuter: GLOB_PERIOD fix for trailing ./ or ../

Revision 1.19 / (download) - annotate - [select for diffs], Wed Dec 5 20:25:56 2007 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.18: +11 -5 lines
Diff to previous 1.18 (colored)

From Richard M Kreuter, add GLOB_PERIOD.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Dec 1 18:57:29 2006 UTC (7 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: netbsd-4-0, netbsd-4, matt-armv6
Changes since 1.17: +79 -121 lines
Diff to previous 1.17 (colored)

ansi, minor knf, no functional change.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Nov 24 19:46:58 2006 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

fix spelling of accommodate; from Zapher.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 26 18:11:22 2006 UTC (8 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.15: +7 -7 lines
Diff to previous 1.15 (colored)

PR/33123: Murray Armfield: standards compliance & glob.h
Certain fields in glob.h need to be size_t; fix this and version glob(3).
    http://www.opengroup.org/onlinepubs/000095399/basedefs/glob.h.html

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 24 17:24:09 2006 UTC (8 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.14: +7 -7 lines
Diff to previous 1.14 (colored)

Use a separate macro, not DEBUG to enforce 8 bit chars [glob uses internally
16 bit chars]. Fix lint complaint when compiling with 8 bit chars.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Nov 29 03:11:59 2005 UTC (8 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.13: +3 -4 lines
Diff to previous 1.13 (colored)

WARNS=4

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 13 21:38:03 2005 UTC (9 years, 1 month ago) by elad
Branch: MAIN
Changes since 1.12: +5 -3 lines
Diff to previous 1.12 (colored)

Don't overflow when DEBUG is defined.
PR/30833, from Tomas Skare.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Sep 13 01:44:09 2005 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.11: +1026 -5 lines
Diff to previous 1.11 (colored)

compat core reorg.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Dec 4 23:39:18 2003 UTC (10 years, 10 months ago) by keihan
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

netbsd.org -> NetBSD.org
NetBSD.ORG -> NetBSD.org

Now src/lib is done.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Oct 22 06:37:50 1997 UTC (17 years ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, minoura-xpg4dl-base, minoura-xpg4dl, fvdl_fs64_base, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.9: +4 -853 lines
Diff to previous 1.9 (colored)

Allow the old-name functions to be compiled from the same source file as
the renamed functions, and add some #error directives to force the
issue with weak symbols for renamed functions when we support weak
symbols in the C library.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 22 00:55:26 1997 UTC (17 years ago) by fvdl
Branch: MAIN
Changes since 1.8: +29 -35 lines
Diff to previous 1.8 (colored)

New hacks to make libc work painlessly without bumping the major number:
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Oct 21 00:56:55 1997 UTC (17 years ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.7: +38 -32 lines
Diff to previous 1.7 (colored)

Hacks to enable libc to work without bumping the major.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 21 14:07:17 1997 UTC (17 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.6: +8 -2 lines
Diff to previous 1.6 (colored)

If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Jul 13 19:15:11 1997 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.5: +5 -4 lines
Diff to previous 1.5 (colored)

Fix readdirfunc prototype
Fix RCSID's

Revision 1.5 / (download) - annotate - [select for diffs], Mon Feb 27 04:13:35 1995 UTC (19 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: nsswitch, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Branch point for: ivory_soap2
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

update from Lite, with local changes.  fix Ids, etc.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Nov 6 01:10:18 1993 UTC (20 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Branch point for: ivory_soap
Changes since 1.3: +321 -70 lines
Diff to previous 1.3 (colored)

update to latest version.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Aug 26 00:44:46 1993 UTC (21 years, 2 months ago) by jtc
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Declare rcsid strings so they are stored in text segment.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 30 07:57:52 1993 UTC (21 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +71 -31 lines
Diff to previous 1.1 (colored)

Latest versions from uunet.

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (21 years, 7 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>