This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug regex/1233] New: regex.h POSIX and portability problems with REG_ENOSYS
- From: "eggert at gnu dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 23 Aug 2005 20:17:44 -0000
- Subject: [Bug regex/1233] New: regex.h POSIX and portability problems with REG_ENOSYS
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
regex.h defines REG_ENOSYS only if _XOPEN_SOURCE is defined. However,
since 2001 POSIX has also required REG_ENOSYS, even if _XOPEN_SOURCE
is not defined.
Also, there is a problem with ifdeffing REG_ENOSYS out: that can cause
the containing enum type to be unsigned rather than signed, which
means that different object modules (compiled with and without
_XOPEN_SOURCE, say) might not interoperate on some platforms.
I'll attach a patch.
--
Summary: regex.h POSIX and portability problems with REG_ENOSYS
Product: glibc
Version: 2.3.5
Status: NEW
Severity: normal
Priority: P2
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: eggert at gnu dot org
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=1233
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.