summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/regexp/regerror.c
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-02-17 19:38:31 +0000
committerChristopher Faylor <me@cgf.cx>2000-02-17 19:38:31 +0000
commit369d8a8fd5e887eca547bf34bccfdf755c9e5397 (patch)
tree5c5dc851bf01a5938662571357ffd5d7bb152a79 /winsup/cygwin/regexp/regerror.c
parent4415a7ef3e26c669f5f7c5c7efbf7b6ea9b7e2f4 (diff)
downloadcygnal-369d8a8fd5e887eca547bf34bccfdf755c9e5397.tar.gz
cygnal-369d8a8fd5e887eca547bf34bccfdf755c9e5397.tar.bz2
cygnal-369d8a8fd5e887eca547bf34bccfdf755c9e5397.zip
import winsup-2000-02-17 snapshot
Diffstat (limited to 'winsup/cygwin/regexp/regerror.c')
-rw-r--r--winsup/cygwin/regexp/regerror.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/winsup/cygwin/regexp/regerror.c b/winsup/cygwin/regexp/regerror.c
new file mode 100644
index 000000000..ab6954e08
--- /dev/null
+++ b/winsup/cygwin/regexp/regerror.c
@@ -0,0 +1,24 @@
+#if 0
+#ifndef lint
+static char *rcsid = "$Id$";
+#endif /* not lint */
+#endif
+
+#include "regexp.h"
+#include <stdio.h>
+
+void
+regerror(s)
+const char *s;
+{
+#ifdef ERRAVAIL
+ error("regexp: %s", s);
+#else
+/*
+ fprintf(stderr, "regexp(3): %s\n", s);
+ exit(1);
+*/
+ return; /* let std. egrep handle errors */
+#endif
+ /* NOTREACHED */
+}