1997-10-09 14:20:07 +04:00
|
|
|
#include <sys/cdefs.h>
|
2000-09-14 05:24:31 +04:00
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
|
|
|
__RCSID("$NetBSD: regerror.c,v 1.9 2000/09/14 01:24:32 msaitoh Exp $");
|
|
|
|
#endif /* LIBC_SCCS and not lint */
|
1993-08-02 21:48:44 +04:00
|
|
|
|
1999-09-16 15:44:54 +04:00
|
|
|
#include <assert.h>
|
1993-03-21 12:45:37 +03:00
|
|
|
#include <regexp.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
|
1999-05-04 21:14:54 +04:00
|
|
|
/*ARGSUSED*/
|
1993-03-21 12:45:37 +03:00
|
|
|
void
|
1998-09-15 00:25:02 +04:00
|
|
|
__compat_regerror(s)
|
1993-03-21 12:45:37 +03:00
|
|
|
const char *s;
|
|
|
|
{
|
1999-09-16 15:44:54 +04:00
|
|
|
|
|
|
|
_DIAGASSERT(s != NULL);
|
|
|
|
|
1993-03-21 12:45:37 +03:00
|
|
|
#ifdef ERRAVAIL
|
|
|
|
error("regexp: %s", s);
|
|
|
|
#else
|
|
|
|
/*
|
|
|
|
fprintf(stderr, "regexp(3): %s\n", s);
|
|
|
|
exit(1);
|
|
|
|
*/
|
|
|
|
return; /* let std. egrep handle errors */
|
|
|
|
#endif
|
|
|
|
/* NOTREACHED */
|
|
|
|
}
|