Date: Thu, 27 Jul 2006 19:48:07 +0200 From: Ed Schouten <ed@fxq.nl> To: John Baldwin <jhb@freebsd.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org>, ????????? <shangjie.li@gmail.com> Subject: Re: A bug in semctl() Message-ID: <20060727174807.GL48334@hoeg.nl> In-Reply-To: <200607271141.01285.jhb@freebsd.org> References: <de71d27b0607260050g47f95d2fsb3c8e83d721b4a3b@mail.gmail.com> <200607271141.01285.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--lYetfuAxy9ic4HK3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * John Baldwin <jhb@freebsd.org> 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 <ed@fxq.nl> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060727174807.GL48334>