summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-07-31 12:40:31 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-07-31 12:40:31 +0000
commit7c5ec5fe6afb50ba5c83ad0b3dab036f91b7dafe (patch)
treeb2ac957f72c7638e3635987d1d74258f0fcc75de /include
parentf1c3dac41471085d59a915db9d0a3ba99cabaf22 (diff)
downloadsrc-test2-7c5ec5fe6afb50ba5c83ad0b3dab036f91b7dafe.tar.gz
src-test2-7c5ec5fe6afb50ba5c83ad0b3dab036f91b7dafe.zip
<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.
Notes
Notes: svn path=/head/; revision=363734
Diffstat (limited to 'include')
-rw-r--r--include/regex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/regex.h b/include/regex.h
index 6b0838a9bd97..3bea3df4f3d4 100644
--- a/include/regex.h
+++ b/include/regex.h
@@ -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)