svn commit: r363734 - head/include

Kyle Evans kevans at FreeBSD.org
Fri Jul 31 12:40:32 UTC 2020


Author: kevans
Date: Fri Jul 31 12:40:31 2020
New Revision: 363734
URL: https://svnweb.freebsd.org/changeset/base/363734

Log:
  <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.

Modified:
  head/include/regex.h

Modified: head/include/regex.h
==============================================================================
--- head/include/regex.h	Fri Jul 31 12:10:28 2020	(r363733)
+++ head/include/regex.h	Fri Jul 31 12:40:31 2020	(r363734)
@@ -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)


More information about the svn-src-head mailing list