From owner-freebsd-doc@FreeBSD.ORG Tue Apr 22 17:53:50 2003 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BBF9237B401 for ; Tue, 22 Apr 2003 17:53:50 -0700 (PDT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE01143FB1 for ; Tue, 22 Apr 2003 17:53:49 -0700 (PDT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) h3N0rmHE060438 for ; Tue, 22 Apr 2003 20:53:48 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)h3N0rmpS060435 for ; Tue, 22 Apr 2003 20:53:48 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Tue, 22 Apr 2003 20:53:48 -0400 (EDT) From: Andre Guibert de Bruet To: doc@freebsd.org Message-ID: <20030422204821.T59991@alpha.siliconlandmark.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Posix semaphore problem (fwd) X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Apr 2003 00:53:51 -0000 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? 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 To: Hongbo Li 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". -- Craig Rodrigues http://home.attbi.com/~rodrigc rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message