Module Name: src
Committed By: christos
Date: Tue Feb 23 16:00:37 UTC 2021
Modified Files:
src/tests/lib/libc/regex: t_regex_att.c
Log Message:
Add support for ENOSYS (was never set)
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/lib/libc/regex/t_regex_att.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libc/regex/t_regex_att.c
diff -u src/tests/lib/libc/regex/t_regex_att.c:1.3 src/tests/lib/libc/regex/t_regex_att.c:1.4
--- src/tests/lib/libc/regex/t_regex_att.c:1.3 Sat Jan 14 15:59:23 2017
+++ src/tests/lib/libc/regex/t_regex_att.c Tue Feb 23 11:00:37 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: t_regex_att.c,v 1.3 2017/01/14 20:59:23 christos Exp $ */
+/* $NetBSD: t_regex_att.c,v 1.4 2021/02/23 16:00:37 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_regex_att.c,v 1.3 2017/01/14 20:59:23 christos Exp $");
+__RCSID("$NetBSD: t_regex_att.c,v 1.4 2021/02/23 16:00:37 christos Exp $");
#include <sys/param.h>
@@ -284,7 +284,12 @@ geterror(const char *s, int *comp, int *
_DO(EMPTY, COMP)
_DO(ASSERT, COMP)
_DO(INVARG, COMP)
+#ifdef REG_ENOSYS
_DO(ENOSYS, COMP)
+#endif
+#ifdef REG_ILLSEQ
+ _DO(ILLSEQ, COMP)
+#endif
#undef _DO
};
*comp = 0;