aboutsummaryrefslogtreecommitdiff
path: root/gnu/lib
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-12-22 21:38:09 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-12-25 21:16:33 +0000
commit47d1ad2413da619b3b435f6f181483fb66d5fa8d (patch)
tree02b92e968ae1a3d0ea4755fdd2e934883b1f5500 /gnu/lib
parentd1c965f1436aae22127485370332555ec01b3a23 (diff)
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libregex/Makefile32
-rw-r--r--gnu/lib/libregex/Makefile.depend16
-rw-r--r--gnu/lib/libregex/config.h15
-rw-r--r--gnu/lib/libregex/gnuregex.h33
-rw-r--r--gnu/lib/libregex/regex.h54
5 files changed, 0 insertions, 150 deletions
diff --git a/gnu/lib/libregex/Makefile b/gnu/lib/libregex/Makefile
deleted file mode 100644
index c18243a81065..000000000000
--- a/gnu/lib/libregex/Makefile
+++ /dev/null
@@ -1,32 +0,0 @@
-# $FreeBSD$
-
-LIB= gnuregex
-SHLIB_MAJOR= 5
-
-REGEXDIR= ${SRCTOP}/contrib/libgnuregex
-.PATH: ${REGEXDIR}
-
-WARNS?= 1
-
-SRCS= gnuregex.c
-INCSGROUPS= INCS WRINCS PXINCS
-INCS= regex.h.patched
-INCSNAME= regex.h
-INCSDIR= ${INCLUDEDIR}/gnu
-WRINCS= gnuregex.h
-PXINCS= ${REGEXDIR}/regex.h
-PXINCSDIR= ${INCSDIR}/posix
-
-CFLAGS+= -D__attribute_warn_unused_result__=""
-CFLAGS+= -DHAVE_CONFIG_H -I${.CURDIR} -I${REGEXDIR}
-
-CLEANFILES= regex.h.patched gnuregex.c
-regex.h.patched: regex.h
- sed 's=<posix/regex\.h>=<gnu/posix/regex.h>=g' \
- < ${.ALLSRC} > ${.TARGET}
-
-gnuregex.c: regex.c
- sed 's=<regex\.h>=<gnu/regex.h>=g' \
- < ${.ALLSRC} > ${.TARGET}
-
-.include <bsd.lib.mk>
diff --git a/gnu/lib/libregex/Makefile.depend b/gnu/lib/libregex/Makefile.depend
deleted file mode 100644
index 8d409f5263ac..000000000000
--- a/gnu/lib/libregex/Makefile.depend
+++ /dev/null
@@ -1,16 +0,0 @@
-# $FreeBSD$
-# Autogenerated - do NOT edit!
-
-DIRDEPS = \
- include \
- include/xlocale \
- lib/${CSU_DIR} \
- lib/libc \
- lib/libcompiler_rt \
-
-
-.include <dirdeps.mk>
-
-.if ${DEP_RELDIR} == ${_DEP_RELDIR}
-# local dependencies - needed for -jN in clean tree
-.endif
diff --git a/gnu/lib/libregex/config.h b/gnu/lib/libregex/config.h
deleted file mode 100644
index 0076f3d76dfc..000000000000
--- a/gnu/lib/libregex/config.h
+++ /dev/null
@@ -1,15 +0,0 @@
-/* $FreeBSD$ */
-
-#define _REGEX_RE_COMP 1
-#define HAVE_LANGINFO_H 1
-#define HAVE_LANGINFO_CODESET 1
-#define HAVE_LOCALE_H 1
-#define HAVE_WCHAR_H 1
-#define HAVE_WCTYPE_H 1
-#define HAVE_ISBLANK 1
-#define HAVE_WCRTOMB 1
-#define HAVE_MBRTOWC 1
-#define HAVE_WCSCOLL 1
-#define HAVE_ALLOCA 1
-#define HAVE_STDBOOL_H 1
-#define HAVE_STDINT_H 1
diff --git a/gnu/lib/libregex/gnuregex.h b/gnu/lib/libregex/gnuregex.h
deleted file mode 100644
index 7356f9ffbe42..000000000000
--- a/gnu/lib/libregex/gnuregex.h
+++ /dev/null
@@ -1,33 +0,0 @@
-/*-
- * Copyright (c) 2004 David E. O'Brien
- * Copyright (c) 2004 Andrey A. Chernov
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- *
- * $FreeBSD$
- */
-
-#ifdef __GNUC__
-#warning "Use -I/usr/include/gnu and <regex.h> instead of <gnuregex.h>"
-#endif
-#include <gnu/regex.h>
diff --git a/gnu/lib/libregex/regex.h b/gnu/lib/libregex/regex.h
deleted file mode 100644
index 85410a2a7495..000000000000
--- a/gnu/lib/libregex/regex.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/* $FreeBSD$ */
-#ifndef _REGEX_H
-
-#ifndef __USE_GNU
-#define __USE_GNU
-#endif
-
-#include <posix/regex.h>
-
-/* Document internal interfaces. */
-extern reg_syntax_t __re_set_syntax (reg_syntax_t __syntax);
-
-extern const char *__re_compile_pattern (const char *__pattern, size_t __length,
- struct re_pattern_buffer *__buffer);
-
-extern int __re_compile_fastmap (struct re_pattern_buffer *__buffer);
-
-extern int __re_search (struct re_pattern_buffer *__buffer, const char *__string,
- int __length, int __start, int __range,
- struct re_registers *__regs);
-
-extern int __re_search_2 (struct re_pattern_buffer *__buffer,
- const char *__string1, int __length1,
- const char *__string2, int __length2, int __start,
- int __range, struct re_registers *__regs, int __stop);
-
-extern int __re_match (struct re_pattern_buffer *__buffer, const char *__string,
- int __length, int __start, struct re_registers *__regs);
-
-extern int __re_match_2 (struct re_pattern_buffer *__buffer,
- const char *__string1, int __length1,
- const char *__string2, int __length2, int __start,
- struct re_registers *__regs, int __stop);
-
-extern void __re_set_registers (struct re_pattern_buffer *__buffer,
- struct re_registers *__regs,
- unsigned int __num_regs,
- regoff_t *__starts, regoff_t *__ends);
-
-extern int __regcomp (regex_t *__restrict __preg,
- const char *__restrict __pattern,
- int __cflags);
-
-extern int __regexec (const regex_t *__restrict __preg,
- const char *__restrict __string, size_t __nmatch,
- regmatch_t __pmatch[__restrict_arr],
- int __eflags);
-
-extern size_t __regerror (int __errcode, const regex_t *__restrict __preg,
- char *__restrict __errbuf, size_t __errbuf_size);
-
-extern void __regfree (regex_t *__preg);
-
-#endif /* _REGEX_H */