From owner-freebsd-current Sun Mar 23 7:25:32 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C39737B404 for ; Sun, 23 Mar 2003 07:25:31 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66A4F43FA3 for ; Sun, 23 Mar 2003 07:25:30 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost.ne.attbi.com [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.8/8.12.7) with ESMTP id h2NFPZri052969; Sun, 23 Mar 2003 10:25:36 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.8/8.12.7/Submit) id h2NFPZV5052968; Sun, 23 Mar 2003 10:25:35 -0500 (EST) Date: Sun, 23 Mar 2003 10:25:34 -0500 From: Craig Rodrigues To: Hongbo Li Cc: current@freebsd.org Subject: Re: Posix semaphore problem Message-ID: <20030323152534.GA50258@attbi.com> References: <20030323095503.31414.qmail@web41202.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030323095503.31414.qmail@web41202.mail.yahoo.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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