Missing pthread_mutexattr_t related constants
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GLibC |
New
|
Undecided
|
Unassigned | ||
Ubuntu |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The compilation of following simple program fails
harshada@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <pthread.h>
int main()
{
return 0;
}
$ gcc -o pthread_mutex pthread_mutex.c -lpthread
pthread_mutex.c: In function ‘main’:
pthread_
pthread_
only once for each function it appears in
pthread_
use in this function)
affects ubuntu
Changed in ubuntu: | |
status: | New → Invalid |
summary: |
- Fwd: Missing pthread_mutexattr_t and related constants/APIs + Missing pthread_mutexattr_t related constants |
I should have pasted this code
$ cat pthread_mutex.c
#include <pthread.h>
int main() mutexattr_ t attr;
{
pthread_mutex_t m;
pthread_
pthread_ mutexattr_ init(&attr) ; mutexattr_ setprotocol( &attr, PTHREAD_ PRIO_INHERIT) ;
pthread_
pthread_ mutex_init( &m, &attr);
return 0;
}
$ gcc -o pthread_mutex pthread_mutex.c -lpthread mutex.c: 9:39: error: ‘PTHREAD_ PRIO_INHERIT’ undeclared (first use in this function) mutex.c: 9:39: note: each undeclared identifier is reported only once for each function it appears in
pthread_mutex.c: In function ‘main’:
pthread_
pthread_