NetBSD Problem Report #38442
From rtr@omicron-persei-8.net Wed Apr 16 14:16:29 2008
Return-Path: <rtr@omicron-persei-8.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by narn.NetBSD.org (Postfix) with ESMTP id 2B5A863B293
for <gnats-bugs@gnats.netbsd.org>; Wed, 16 Apr 2008 14:16:29 +0000 (UTC)
Message-Id: <20080416141623.9478B196C387@mail.omicron-persei-8.net>
Date: Thu, 17 Apr 2008 00:16:23 +1000 (EST)
From: rtr@omicron-persei-8.net
Reply-To: rtr@omicron-persei-8.net
To: gnats-bugs@gnats.NetBSD.org
Subject: pthreads lack _POSIX_THREAD_PROCESS_SHARED support
X-Send-Pr-Version: 3.95
>Number: 38442
>Category: lib
>Synopsis: pthreads lack _POSIX_THREAD_PROCESS_SHARED support
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: lib-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Apr 16 14:20:00 +0000 2008
>Last-Modified: Sun Apr 20 14:37:47 +0000 2008
>Originator: rtr@omicron-persei-8.net
>Release: NetBSD 4.0
>Organization:
don't look at me i'm just the janitor
>Environment:
System: NetBSD calculon.omicron-persei-8.net 4.0 NetBSD 4.0 (GENERIC) #0: Sun Dec 16 00:20:10 PST 2007 builds@wb34:/home/builds/ab/netbsd-4-0-RELEASE/i386/200712160005Z-obj/home/builds/ab/netbsd-4-0-RELEASE/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
NetBSD doesn't currently support pthread process shared synchronization
primitives.
in these days of many cores/CPUs applications programmers would appreciate
these and it would even enable some of us *cough* to move applications off
linux to NetBSD.
Pretty please make our sysconf(3) return 200112L for
_POSIX_THREAD_PROCESS_SHARED. but unlike apple did with MacOS X Leopard
actually implement the support instead of just claiming implementation
that doesn't exist. :)
>How-To-Repeat:
200112L != sysconf(_POSIX_THREAD_PROCESS_SHARED); --> :(
0 != pthread_xxxattr_setpshared(&attr, PTHREAD_PROCESS_SHARED) --> :(
>Fix:
200112L == sysconf(_POSIX_THREAD_PROCESS_SHARED); --> :)
0 == pthread_xxxattr_setpshared(&attr, PTHREAD_PROCESS_SHARED) --> :)
>Release-Note:
>Audit-Trail:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.