This is the mail archive of the glibc-bugs@sources.redhat.com 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 nptl/320] New: rwlock features should not be dependent on XSI extensions


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.


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