[Bug nptl/320] New: rwlock features should not be dependent on XSI extensions

sebastien dot decugis at ext dot bull dot net sourceware-bugzilla@sources.redhat.com
Wed Aug 11 13:39:00 GMT 2004


The following code won't compile:
------------------------------------------
#define _POSIX_C_SOURCE 200112L
#include <pthread.h>

pthread_rwlock_t rw;

int main(int argc, char * argv[])
{
   return pthread_rwlock_init(&rw, NULL);
}
-------------------------------------------

It compiles when I add:
#define _XOPEN_SOURCE 600

But this feature is part of the IEEE Std 1003.1, 2004 Edition (and not marked
with the XSI extension). I am unsure whether /include/features.h or
/nptl/sysdeps/pthread/pthread.h should be changed.

Thanks, 
Sebastien.

-- 
           Summary: rwlock features should not be dependent on XSI
                    extensions
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P3
         Component: nptl
        AssignedTo: drepper at redhat dot com
        ReportedBy: sebastien dot decugis at ext dot bull dot net
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=320

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list