diff options
author | 1995-10-18 08:37:01 +0000 | |
---|---|---|
committer | 1995-10-18 08:37:01 +0000 | |
commit | df930be708d50e9715f173caa26ffe1b7599b157 (patch) | |
tree | aa317e49e28cb999c9cf3db7f00c20903fe6010a /lib/libcompat/regexp/regerror.c | |
download | wireguard-openbsd-df930be708d50e9715f173caa26ffe1b7599b157.tar.xz wireguard-openbsd-df930be708d50e9715f173caa26ffe1b7599b157.zip |
initial import of NetBSD tree
Diffstat (limited to 'lib/libcompat/regexp/regerror.c')
-rw-r--r-- | lib/libcompat/regexp/regerror.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/libcompat/regexp/regerror.c b/lib/libcompat/regexp/regerror.c new file mode 100644 index 00000000000..1b28f0c5f8a --- /dev/null +++ b/lib/libcompat/regexp/regerror.c @@ -0,0 +1,22 @@ +#ifndef lint +static char *rcsid = "$Id: regerror.c,v 1.1.1.1 1995/10/18 08:42:35 deraadt Exp $"; +#endif /* not lint */ + +#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 */ +} |