Bug#248192: setpshared on amd64 not working?
On Sun, May 09, 2004 at 08:44:27PM +0200, Kurt Roeckx wrote:
> Package: libc6
> Version: 2.3.2.ds1-12
>
> It seems that pthread_condattr_setpshared and
> pthread_mutexattr_setpshared both return 38 (ENOSYS) when called
> on amd64.
>
> Example code:
>
> pthread_condattr_t condattr;
> printf("%d\n", pthread_condattr_init(&condattr));
> printf("%d\n", pthread_condattr_setpshared(&condattr, PTHREAD_PROCESS_SHARED));
>
> prints:
> 0
> 38
>
> The same test on i386 returns:
> 0
> 0
>
> I find it rather strange because the code says:
> /* For now it is not possible to shared a conditional variable. */
> if (pshared != PTHREAD_PROCESS_PRIVATE)
> return ENOSYS;
>
> Am I missing something?
Details about the kernel and environment on both test systems?
Presumably setpshared is supported by NPTL and not by LinuxThreads.
--
Daniel Jacobowitz
Reply to: