From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 27 17:48:12 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEE8D16A4E2; Thu, 27 Jul 2006 17:48:12 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03B1843D60; Thu, 27 Jul 2006 17:48:08 +0000 (GMT) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id B1EC81CCFF; Thu, 27 Jul 2006 19:48:07 +0200 (CEST) Date: Thu, 27 Jul 2006 19:48:07 +0200 From: Ed Schouten To: John Baldwin Message-ID: <20060727174807.GL48334@hoeg.nl> References: <200607271141.01285.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="lYetfuAxy9ic4HK3" Content-Disposition: inline In-Reply-To: <200607271141.01285.jhb@freebsd.org> User-Agent: Mutt/1.5.12-2006-07-14 X-Mailman-Approved-At: Thu, 27 Jul 2006 18:16:35 +0000 Cc: FreeBSD Hackers , ????????? Subject: Re: A bug in semctl() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Hackers List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2006 17:48:13 -0000 --lYetfuAxy9ic4HK3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Baldwin wrote: > Actually, this is on purpose. SEM_STAT is just used for Linux binaries, = and=20 > they apparently specify a kernel semid rather than a user one for this=20 > specific request. Yes. Below is a snippet from the semctl(2) manpage on a Linux machine: | SEM_STAT (Linux specific) | Returns a semid_ds structure as for IPC_STAT. However, the | semid argument is not a semaphore identifier, but instead | an index into the kernel's internal array that maintains | information about all semaphore sets on the system. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --lYetfuAxy9ic4HK3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEyPxX52SDGA2eCwURAr6YAJ9JZwX3M4ikth49ZXRvC96HQKRVnACdG0F+ 0KRfmLkNyoE0T3rGmqR+FH4= =mk7l -----END PGP SIGNATURE----- --lYetfuAxy9ic4HK3--