From owner-freebsd-arch@FreeBSD.ORG Mon May 11 12:16:01 2009 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1EA36106566B for ; Mon, 11 May 2009 12:16:01 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id D4FD48FC1D for ; Mon, 11 May 2009 12:16:00 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 030496D41B; Mon, 11 May 2009 14:15:59 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 6BAE0844B9; Mon, 11 May 2009 14:15:59 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Nikos Ntarmos References: <200905100500.n4A50GOa050728@hergotha.csail.mit.edu> <20090510194133.GG20749@ace.cs.uoi.gr> Date: Mon, 11 May 2009 14:15:59 +0200 In-Reply-To: <20090510194133.GG20749@ace.cs.uoi.gr> (Nikos Ntarmos's message of "Sun, 10 May 2009 22:41:33 +0300") Message-ID: <86prefomww.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: arch@freebsd.org Subject: Re: Posix shared memory problem X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 May 2009 12:16:01 -0000 Nikos Ntarmos writes: > FWIW the test code in the original email still fails even if an absolute > path is used as a sem name, ie: > sem_t *s =3D sem_open("/path/to/foobar", O_CREAT | O_EXCL, S_IWUSR, 0); > with /path/to/foobar pointing to a user writable directory, segfaults > with "invalid system call". As previously mentioned, 'kldload sem'. To forestall any further gripes about the POSIX IPC system calls not being compiled in by default: they are very rarely used, because the SysV IPC API is almost universally available and is generally considered superior to the POSIX API, which it predates by more than ten years. The SysV IPC system calls are in GENERIC, and are used by e.g. Sendmail, X.org and PostgreSQL. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no