This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/1233] New: regex.h POSIX and portability problems with REG_ENOSYS


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]