Bug 78440

Summary: [sysvipc] POSIX semaphores don't work by default in 5.3-STABLE
Product: Documentation Reporter: Vsevolod Stakhov <vsevolod>
Component: Books & ArticlesAssignee: Tom Rhodes <trhodes>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Vsevolod Stakhov 2005-03-05 11:00:36 UTC
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).

Fix: 

Note about it in man pages.
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.
Comment 1 Alexey Zelkin freebsd_committer freebsd_triage 2005-03-08 08:32:19 UTC
Responsible Changed
From-To: freebsd-doc->phantom

In progress
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-03-31 09:54:08 UTC
State Changed
From-To: open->feedback

Is this still true in 5.5-PRERELEASE? 


Comment 3 Mark Linimon freebsd_committer freebsd_triage 2006-03-31 09:54:08 UTC
Responsible Changed
From-To: phantom->freebsd-doc

Reassign from phantom since he has been inactive for more than one year. 

Hat:	gnats-admin
Comment 4 Tom Rhodes freebsd_committer freebsd_triage 2006-11-06 13:59:14 UTC
State Changed
From-To: feedback->analyzed

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! 


Comment 5 Tom Rhodes freebsd_committer freebsd_triage 2006-11-06 13:59:14 UTC
Responsible Changed
From-To: freebsd-doc->trhodes

Over to me.
Comment 6 Tom Rhodes freebsd_committer freebsd_triage 2008-07-22 17:07:54 UTC
State Changed
From-To: analyzed->closed

Fixed awhile ago but will not be MFCed.  Thanks!