This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug nptl/320] New: rwlock features should not be dependent on XSI extensions
- From: "sebastien dot decugis at ext dot bull dot net" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 11 Aug 2004 13:39:11 -0000
- Subject: [Bug nptl/320] New: rwlock features should not be dependent on XSI extensions
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
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.