From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 15 19:51:14 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3D5E316A416 for ; Mon, 15 Jan 2007 19:51:14 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 052B413C465 for ; Mon, 15 Jan 2007 19:51:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id l0FJp1XZ066726; Mon, 15 Jan 2007 13:51:01 -0600 (CST) (envelope-from dan) Date: Mon, 15 Jan 2007 13:51:01 -0600 From: Dan Nelson To: girish r Message-ID: <20070115195101.GJ46272@dan.emsphone.com> References: <539649.30215.qm@web62010.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539649.30215.qm@web62010.mail.re1.yahoo.com> X-OS: FreeBSD 6.2-PRERELEASE User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: semaphore.h does'nt include fcntl.h ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2007 19:51:14 -0000 In the last episode (Jan 15), girish r said: > > You'll need to include "options P1003_1B_SEMAPHORES" in your kernel > > config, or load the "sem" kernel module. > > --Dan Nelson > > I could'nt find "sem" so I tried sysvsem.ko but I get: > > kldload: can't load sysvsem: File exists > > Does it mean that sysvsem support is already present > in the kernel? I am using fbsd 6.2. sysv semaphores are different from POSIX semaphores, so loading sysvsem.ko won't help you here. It looks like the "sem" module is missing from /usr/src/sys/modules/Makefile, which explains why you don't have it :) You can build it manually though: cd /usr/src/sys/modules/sem make obj && make depend && make && make install kldload sem -- Dan Nelson dnelson@allantgroup.com