A bug in semctl()

Ed Schouten ed at fxq.nl
Thu Jul 27 17:48:13 UTC 2006


* John Baldwin <jhb at freebsd.org> wrote:
> Actually, this is on purpose.  SEM_STAT is just used for Linux binaries, and 
> they apparently specify a kernel semid rather than a user one for this 
> 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,
-- 
 Ed Schouten <ed at fxq.nl>
 WWW: http://g-rave.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060727/0cf0c862/attachment.pgp


More information about the freebsd-hackers mailing list