changeset 6086:eae241763577

* config/srclist.txt: Add glibc bug 1233. * lib/regex.h (REG_NOSYS) [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]: Define, since POSIX requires it as of 2001. (_REG_ENOSYS) [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]: New private symbol, used to keep the enum signed in all cases.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 23 Aug 2005 20:37:24 +0000
parents d7b1b7dd9bf8
children 837c757496bf
files config/ChangeLog config/srclist.txt lib/ChangeLog lib/regex.h
diffstat 4 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,6 +1,6 @@
 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
-	* srclist.txt: Add glibc bugs 1231, 1232.
+	* srclist.txt: Add glibc bugs 1231-1233.
 
 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
 
--- a/config/srclist.txt
+++ b/config/srclist.txt
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.80 2005-08-23 19:11:46 eggert Exp $
+# $Id: srclist.txt,v 1.81 2005-08-23 20:37:24 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -107,6 +107,7 @@
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1207
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1222
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1232
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1233
 #$LIBCSRC/posix/regex.h			lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1215
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,5 +1,10 @@
 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
+	* regex.h (REG_NOSYS)
+	[!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
+	Define, since POSIX requires it as of 2001.
+	(_REG_ENOSYS) [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
+	New private symbol, used to keep the enum signed in all cases.
 	* regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James Youngman
 	in <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
 
--- a/lib/regex.h
+++ b/lib/regex.h
@@ -309,8 +309,10 @@
    `re_error_msg' table in regex.c.  */
 typedef enum
 {
-#ifdef _XOPEN_SOURCE
+#if defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE
   REG_ENOSYS = -1,	/* This will never happen for this implementation.  */
+#else
+  _REG_ENOSYS = -1,	/* This is so that reg_errcode_t is always signed.  */
 #endif
 
   REG_NOERROR = 0,	/* Success.  */