[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-commits-all
Subject:    svn commit: r363734 - head/include
From:       Kyle Evans <kevans () FreeBSD ! org>
Date:       2020-07-31 12:40:31
Message-ID: 202007311240.06VCeVKj076485 () repo ! freebsd ! org
[Download RAW message or body]

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)
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic