From vsevolod@highsecure.ru  Sat Mar  5 10:54:43 2005
Return-Path: <vsevolod@highsecure.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 482F816A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  5 Mar 2005 10:54:43 +0000 (GMT)
Received: from spray.anyhost.ru (spray.anyhost.ru [213.219.249.64])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B073743D31
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  5 Mar 2005 10:54:42 +0000 (GMT)
	(envelope-from vsevolod@highsecure.ru)
Received: from cebka by spray.anyhost.ru with local (Exim 4.44 (FreeBSD))
	id 1D7Wvh-000BOn-83
	for FreeBSD-gnats-submit@freebsd.org; Sat, 05 Mar 2005 13:54:41 +0300
Message-Id: <E1D7Wvh-000BOn-83@spray.anyhost.ru>
Date: Sat, 05 Mar 2005 13:54:41 +0300
From: Vsevolod Stakhov <vsevolod@highsecure.ru>
Sender: "Vsevolod A. Stakhov" <vsevolod@highsecure.ru>
Reply-To: Vsevolod Stakhov <vsevolod@highsecure.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: POSIX semaphores don't work by default in 5.3-STABLE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         78440
>Category:       docs
>Synopsis:       [sysvipc] POSIX semaphores don't work by default in 5.3-STABLE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 05 11:00:36 GMT 2005
>Closed-Date:    Tue Jul 22 16:08:30 UTC 2008
>Last-Modified:  Tue Jul 22 16:08:30 UTC 2008
>Originator:     Vsevolod Stakhov
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD nemezida.highsecure.ru 5.3-STABLE FreeBSD 5.3-STABLE #2: Fri Jan 28 02:15:40 MSK 2005 root@nemezida.highsecure.ru:/mnt/data/usr/obj/mnt/data/usr/src/sys/NK i386

>Description:
On 5.3-STABLE POSIX semaphores in kernel are not turned on by default as it
is in 5.2.1. But there is nowhere mention about it. Also there is no any
mention, that POSIX semaphores always work, when program is linked with
pthreads. I think, that kernel option P1003_1B_SEMAPHORES and threads
specific should be mentioned in sem_init (3).
>How-To-Repeat:
#include <semaphore.h>

int main()
{
	static sem_t sem;
	sem_init(&sem, 0, 1);

	return 0;
}

ksem_init(0xbfbfe788,0x1)            ERR#78 'Function not implemented'

And while linking with pthread all works fine.
>Fix:
Note about it in man pages.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->phantom 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Tue Mar 8 08:32:19 GMT 2005 
Responsible-Changed-Why:  
In progress 


http://www.freebsd.org/cgi/query-pr.cgi?pr=78440 
State-Changed-From-To: open->feedback 
State-Changed-By: linimon 
State-Changed-When: Fri Mar 31 08:54:08 UTC 2006 
State-Changed-Why:  
Is this still true in 5.5-PRERELEASE? 


Responsible-Changed-From-To: phantom->freebsd-doc 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Mar 31 08:54:08 UTC 2006 
Responsible-Changed-Why:  
Reassign from phantom since he has been inactive for more than one year. 

Hat:	gnats-admin 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78440 
State-Changed-From-To: feedback->analyzed 
State-Changed-By: trhodes 
State-Changed-When: Mon Nov 6 13:59:14 UTC 2006 
State-Changed-Why:  
It does appear sem was disconnected from the build four years 
ago by alfred for an unknown reason.  I'll looking into this 
in phantom's place.  Thanks! 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Nov 6 13:59:14 UTC 2006 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78440 
State-Changed-From-To: analyzed->closed 
State-Changed-By: trhodes 
State-Changed-When: Tue Jul 22 16:07:54 UTC 2008 
State-Changed-Why:  
Fixed awhile ago but will not be MFCed.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=78440 
>Unformatted:
