Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2020 12:40:31 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r363734 - head/include
Message-ID:  <202007311240.06VCeVKj076485@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007311240.06VCeVKj076485>