<regex.h>: reserve a regcomp field for REG_POSIX

For libc regcomp, this will be a nop. libregex will take this to mean that
it needs to turn off GNU extensions, effectively switching it back to the
POSIX-compliant libc implementation at runtime.
This commit is contained in:
Kyle Evans 2020-07-31 12:40:31 +00:00
parent f1c3dac414
commit 7c5ec5fe6a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=363734

View File

@ -71,6 +71,7 @@ typedef struct {
#define REG_NOSPEC 0020
#define REG_PEND 0040
#define REG_DUMP 0200
#define REG_POSIX 0400 /* only POSIX-compliant regex (libregex) */
/* regerror() flags */
#define REG_ENOSYS (-1)