* John Baldwin <[EMAIL PROTECTED]> 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
On Wednesday 26 July 2006 03:50, 李尚杰 wrote:
> In file kern/sysv_sem.c:
> 554 __semctl(td, uap)
> 555 struct thread *td;
> 556 struct __semctl_args *uap;
> 557 {
> 558 int semid = uap->semid; << 559 int semnum = uap->semnum;
> 560 int cmd = uap->cmd;
> 561
* Maxim Konovalov <[EMAIL PROTECTED]> wrote:
> What version of the file do you read? We have a different code in
> HEAD.
It looks like he's using RELENG_6, src/sys/kern/sysv_sem.c, 1.78.
Yours,
--
Ed Schouten <[EMAIL PROTECTED]>
WWW: http://g-rave.nl/
pgpyVMxtlWpTD.pgp
Description: PGP sign
Sorry! I am working FB/6.0. But I have checked the 6.1 code, this
prolbem exists too.
in __semctl():
error = kern_semctl(td, uap->semid, uap->semnum, uap->cmd,
&semun,
&rval);
but in kern_semctl() there is no convertion
在 06-7-26,李尚杰<[EMAIL PROTECTED]> 写道:
Freebsd/6
On Wed, 26 Jul 2006, 15:50+0800, юНип╫э wrote:
> In file kern/sysv_sem.c:
> 554 __semctl(td, uap)
> 555 struct thread *td;
> 556 struct __semctl_args *uap;
> 557 {
> 558 int semid = uap->semid; << 559 int semnum = uap->semnum;
> 560 int cmd = uap->cmd;
> 561
In file kern/sysv_sem.c:
554 __semctl(td, uap)
555 struct thread *td;
556 struct __semctl_args *uap;
557 {
558 int semid = uap->semid; <cmd;
561 u_short *array;
562 union semun *arg = uap->arg;
563 union semun real
6 matches
Mail list logo