Date: Sun, 14 Mar 2010 10:18:58 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src ObsoleteFiles.inc src/include Makefile regexp.h src/lib/libcompat Makefile src/lib/libcompat/4.3 re_comp.3 re_comp.c regex.c src/lib/libcompat/regexp COPYRIGHT README regerror.c regexp.3 regexp.c regmagic.h regsub.c Message-ID: <201003141022.o2EAMElE017863@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ed 2010-03-14 10:18:58 UTC
FreeBSD src repository
Modified files:
. ObsoleteFiles.inc
include Makefile
lib/libcompat Makefile
lib/libcompat/4.3 re_comp.3
Added files:
lib/libcompat/4.3 re_comp.c
Removed files:
include regexp.h
lib/libcompat/4.3 regex.c
lib/libcompat/regexp COPYRIGHT README regerror.c regexp.3
regexp.c regmagic.h regsub.c
Log:
SVN rev 205146 on 2010-03-14 10:18:58Z by ed
Trim down libcompat by removing <regexp.h>.
Erwin ran an exp-run with libcompat and <regexp.h> removed. It turns out
the regexp library is almost entirely unused. In fact, it looks like it
is sometimes used by accident. Because these function names clash with
libc's <regex.h>, some application use both <regex.h> and libcompat,
which means they link against the wrong regex library.
This commit removes the regexp library and reimplements re_comp() and
re_exec() using <regex.h>. It seems the grammar of the regular
expressions accepted by these functions is similar to POSIX EREs.
After this commit, 1 low-profile port will be broken, but the maintainer
already has a patch for it sitting in his mailbox.
Revision Changes Path
1.229 +4 -0 src/ObsoleteFiles.inc
1.297 +1 -1 src/include/Makefile
1.5 +0 -70 src/include/regexp.h (dead)
1.12 +4 -9 src/lib/libcompat/4.3/re_comp.3
1.1 +92 -0 src/lib/libcompat/4.3/re_comp.c (new)
1.7 +0 -92 src/lib/libcompat/4.3/regex.c (dead)
1.28 +4 -20 src/lib/libcompat/Makefile
1.2 +0 -22 src/lib/libcompat/regexp/COPYRIGHT (dead)
1.2 +0 -84 src/lib/libcompat/regexp/README (dead)
1.2 +0 -18 src/lib/libcompat/regexp/regerror.c (dead)
1.14 +0 -319 src/lib/libcompat/regexp/regexp.3 (dead)
1.8 +0 -1337 src/lib/libcompat/regexp/regexp.c (dead)
1.2 +0 -5 src/lib/libcompat/regexp/regmagic.h (dead)
1.3 +0 -85 src/lib/libcompat/regexp/regsub.c (dead)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003141022.o2EAMElE017863>
