Bug 1087 - optimize fnmatch
Summary: optimize fnmatch
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.5
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks: libc236
  Show dependency treegraph
 
Reported: 2005-07-18 01:56 UTC by Roland McGrath
Modified: 2005-07-19 03:30 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland McGrath 2005-07-18 01:56:08 UTC
This trunk patch should go into the 2.3 branch:

2005-06-14  Ulrich Drepper  <drepper@redhat.com>

	* include/string.h: Use libc_hidden_proto for strnlen.
	* sysdeps/generic/strnlen.c: Add libc_hidden_def.

2005-03-29  Jakub Jelinek  <jakub@redhat.com>

	* posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
	avoid calling mbsrtowcs twice.
Comment 1 Sourceware Commits 2005-07-18 01:59:12 UTC
Subject: Bug 1087

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-07-18 01:59:06

Modified files:
	posix          : fnmatch.c 

Log message:
	2005-03-29  Jakub Jelinek  <jakub@redhat.com>
	
	[BZ #1087]
	* posix/fnmatch.c (fnmatch): For short patterns or strings attempt to
	avoid calling mbsrtowcs twice.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/posix/fnmatch.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.50&r2=1.50.4.1

Comment 2 Sourceware Commits 2005-07-18 01:59:25 UTC
Subject: Bug 1087

CVSROOT:	/cvs/glibc
Module name:	libc
Branch: 	glibc-2_3-branch
Changes by:	roland@sources.redhat.com	2005-07-18 01:59:20

Modified files:
	sysdeps/generic: strnlen.c 
	include        : string.h 

Log message:
	2005-06-14  Ulrich Drepper  <drepper@redhat.com>
	
	[BZ #1087]
	* include/string.h: Use libc_hidden_proto for strnlen.
	* sysdeps/generic/strnlen.c: Add libc_hidden_def.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/sysdeps/generic/strnlen.c.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.3&r2=1.3.4.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/include/string.h.diff?cvsroot=glibc&only_with_tag=glibc-2_3-branch&r1=1.31&r2=1.31.2.1

Comment 3 Roland McGrath 2005-07-19 03:30:12 UTC
This fix is now in the 2.3 branch as well as the trunk, and the problem should
be resolved as of the 2.3.6 release.