summaryrefslogtreecommitdiffstats
path: root/usr.bin/lockf
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-03-14 10:18:58 +0000
committered <ed@FreeBSD.org>2010-03-14 10:18:58 +0000
commit1cea028198c6ed56b5608060e89aa7d5659e7abe (patch)
treec365d6fb8c2688382e96810f92cb4dc54afb61d5 /usr.bin/lockf
parent99abac2a53c337492f4c428b7f251c04bc07fda4 (diff)
downloadFreeBSD-src-1cea028198c6ed56b5608060e89aa7d5659e7abe.zip
FreeBSD-src-1cea028198c6ed56b5608060e89aa7d5659e7abe.tar.gz
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.
Diffstat (limited to 'usr.bin/lockf')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud