* question on pthreads
@ 2006-08-20 17:46 Irfan Habib
2006-08-20 19:37 ` Nix
2006-08-20 21:32 ` Luka Marinko
0 siblings, 2 replies; 7+ messages in thread
From: Irfan Habib @ 2006-08-20 17:46 UTC (permalink / raw)
To: Linux kernel
Hi,
Where should I look for the code of the native Pthreads implemetation:
I've found this:
http://pauillac.inria.fr/~xleroy/linuxthreads/
Supposedly from the site,it has been superceeded by NPTL by Ulrich
Drepper, but I cant find the code for NPTL?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-20 17:46 question on pthreads Irfan Habib
@ 2006-08-20 19:37 ` Nix
2006-08-20 21:32 ` Luka Marinko
1 sibling, 0 replies; 7+ messages in thread
From: Nix @ 2006-08-20 19:37 UTC (permalink / raw)
To: Irfan Habib; +Cc: Linux kernel
On 20 Aug 2006, Irfan Habib suggested tentatively:
> Hi,
>
> Where should I look for the code of the native Pthreads implemetation:
>
> I've found this:
> http://pauillac.inria.fr/~xleroy/linuxthreads/
>
> Supposedly from the site,it has been superceeded by NPTL by Ulrich
> Drepper, but I cant find the code for NPTL?
It is in glibc.
--
`We're sysadmins. We deal with the inconceivable so often I can clearly
see the need to define levels of inconceivability.' --- Rik Steenwinkel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-20 17:46 question on pthreads Irfan Habib
2006-08-20 19:37 ` Nix
@ 2006-08-20 21:32 ` Luka Marinko
2006-08-20 22:21 ` Lee Revell
1 sibling, 1 reply; 7+ messages in thread
From: Luka Marinko @ 2006-08-20 21:32 UTC (permalink / raw)
To: linux-kernel
On Sun, 20 Aug 2006 22:46:14 +0500, Irfan Habib wrote:
> Hi,
>
> Where should I look for the code of the native Pthreads implemetation:
>
> I've found this:
> http://pauillac.inria.fr/~xleroy/linuxthreads/
>
> Supposedly from the site,it has been superceeded by NPTL by Ulrich
> Drepper, but I cant find the code for NPTL?
pthreads (whitch is now NPTL), is part of glibc and can be found at
http://www.gnu.org/software/libc/
You can find nice manual here, and overview
http://www.gnu.org/software/libc/manual/html_mono/libc.html
Also keep in mind that soem distros, patch their glibs, so you might want
to get sources from there
have a nice day,
Luka Marinko
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-20 21:32 ` Luka Marinko
@ 2006-08-20 22:21 ` Lee Revell
2006-08-21 10:45 ` Mark Hounschell
0 siblings, 1 reply; 7+ messages in thread
From: Lee Revell @ 2006-08-20 22:21 UTC (permalink / raw)
To: Luka Marinko; +Cc: linux-kernel
On Sun, 2006-08-20 at 21:32 +0000, Luka Marinko wrote:
> You can find nice manual here, and overview
> http://www.gnu.org/software/libc/manual/html_mono/libc.html
>
Unfortunately the NPTL documentation is FAR from complete - there are no
man pages at all, and some featured are completely undocumented. For
example process-shared mutexes are supported, but the only way you'd
know is to look at the source. The only docs I could find on how to use
them were old Solaris man pages.
Lee
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-20 22:21 ` Lee Revell
@ 2006-08-21 10:45 ` Mark Hounschell
2006-08-29 0:21 ` Nix
0 siblings, 1 reply; 7+ messages in thread
From: Mark Hounschell @ 2006-08-21 10:45 UTC (permalink / raw)
To: Lee Revell; +Cc: Luka Marinko, linux-kernel
Lee Revell wrote:
> On Sun, 2006-08-20 at 21:32 +0000, Luka Marinko wrote:
>> You can find nice manual here, and overview
>> http://www.gnu.org/software/libc/manual/html_mono/libc.html
>>
>
> Unfortunately the NPTL documentation is FAR from complete - there are no
> man pages at all, and some featured are completely undocumented. For
> example process-shared mutexes are supported, but the only way you'd
> know is to look at the source. The only docs I could find on how to use
> them were old Solaris man pages.
>
> Lee
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
glibc 2.4.31 has a man page for it.
PTHREAD_MUTEXATTR_GETPSHARED(P) POSIX
Programmer's Manual PTHREAD_MUTEXATTR_GETPSHARED(P)
NAME
pthread_mutexattr_getpshared, pthread_mutexattr_setpshared - get and set
the process-shared attribute
SYNOPSIS
#include <pthread.h>
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *
restrict attr, int *restrict pshared);
int pthread_mutexattr_setpshared(pthread_mutexattr_t *attr,
int pshared);
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-21 10:45 ` Mark Hounschell
@ 2006-08-29 0:21 ` Nix
2006-08-29 11:51 ` Mark Hounschell
0 siblings, 1 reply; 7+ messages in thread
From: Nix @ 2006-08-29 0:21 UTC (permalink / raw)
To: dmarkh; +Cc: Lee Revell, Luka Marinko, linux-kernel
On 21 Aug 2006, Mark Hounschell said:
> glibc 2.4.31 has a man page for it.
>
> PTHREAD_MUTEXATTR_GETPSHARED(P) POSIX
> Programmer's Manual PTHREAD_MUTEXATTR_GETPSHARED(P)
That's not in glibc, that's in the POSIX part of the manpages
distribution.
--
`In typical emacs fashion, it is both absurdly ornate and
still not really what one wanted.' --- jdev
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: question on pthreads
2006-08-29 0:21 ` Nix
@ 2006-08-29 11:51 ` Mark Hounschell
0 siblings, 0 replies; 7+ messages in thread
From: Mark Hounschell @ 2006-08-29 11:51 UTC (permalink / raw)
To: Nix; +Cc: dmarkh, Lee Revell, Luka Marinko, linux-kernel
Nix wrote:
> On 21 Aug 2006, Mark Hounschell said:
>> glibc 2.4.31 has a man page for it.
>>
>> PTHREAD_MUTEXATTR_GETPSHARED(P) POSIX
>> Programmer's Manual PTHREAD_MUTEXATTR_GETPSHARED(P)
>
> That's not in glibc, that's in the POSIX part of the manpages
> distribution.
>
True but non of my machines had that manpage until the support was in glibc.
Coincidence? Could be I guess...
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-08-29 11:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-20 17:46 question on pthreads Irfan Habib
2006-08-20 19:37 ` Nix
2006-08-20 21:32 ` Luka Marinko
2006-08-20 22:21 ` Lee Revell
2006-08-21 10:45 ` Mark Hounschell
2006-08-29 0:21 ` Nix
2006-08-29 11:51 ` Mark Hounschell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).