diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-07-31 12:40:31 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-07-31 12:40:31 +0000 |
commit | 7c5ec5fe6afb50ba5c83ad0b3dab036f91b7dafe (patch) | |
tree | b2ac957f72c7638e3635987d1d74258f0fcc75de /include | |
parent | f1c3dac41471085d59a915db9d0a3ba99cabaf22 (diff) | |
download | src-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.h | 1 |
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) |