Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Apr 2003 08:58:41 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Andre Guibert de Bruet <andy@siliconlandmark.com>
Cc:        doc@freebsd.org
Subject:   Re: Posix semaphore problem (fwd)
Message-ID:  <20030423085802.R26549@news1.macomnet.ru>
In-Reply-To: <20030422204821.T59991@alpha.siliconlandmark.com>
References:  <20030422204821.T59991@alpha.siliconlandmark.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20:53-0400, Apr 22, 2003, Andre Guibert de Bruet wrote:

> Hi,
>
> The attached message is from current@. On 5-CURRENT, there is no "sem"
> kld. The closest kld by name is sysvsem.ko but a grep on the output of
> strings for "sem_open" doesn't return anything. Any ideas?

cd /sys/modules/sem/ && make && make load

> Please CC me, as I'm not subscribed to doc@.
>
> Regards,
>
> > Andre Guibert de Bruet | Enterprise Software Consultant >
> > Silicon Landmark, LLC. | http://siliconlandmark.com/    >
>
> ---------- Forwarded message ----------
> Date: Sun, 23 Mar 2003 10:25:34 -0500
> From: Craig Rodrigues <rodrigc@attbi.com>
> To: Hongbo Li <stevensbsd@yahoo.com>
> Cc: current@FreeBSD.ORG
> Subject: Re: Posix semaphore problem
>
> On Sun, Mar 23, 2003 at 01:55:03AM -0800, Hongbo Li wrote:
> > I just run a example program from the book unp2v2
> > written W.Richard Stevens. The program includes a call
> > to sem_open. The compilation was ok. But when I run it
> > on FreeBSD 5-current(recent),the system print "Bad
> > system call (core dumped)". The program code :
>
> I get the same problem.  Read the man page for sem(4) which
> explains the kernel option or kernel module that needs
> to be used for POSIX semaphores to work.
>
> However, I am not sure that this man page is entirely correct,
> since if I do:
>
> kldload sem
>
> I get "No such file or directory".
>
>
>

-- 
Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030423085802.R26549>