Atsushi Nemoto writes: Hi.  I found a mismatch between uClibc and kernel in semctl definition.
Atsushi Nemoto writes:
Hi.  I found a mismatch between uClibc and kernel in semctl definition.

In uClibc/libc/misc/sysvipc/sem.c:

static inline _syscall4(int, __semctl, int, semid, int, semnum, int, cmd, union semun *, arg);
...
int semctl(int semid, int semnum, int cmd, ...)
...
    arg = va_arg (ap, union semun);
...
    return __semctl(semid, semnum, cmd, &arg);

But kernel's semctl is:

asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg)

The last argument is an union semun itself, not a pointer to the
union.

Here is a patch.

joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc,joel-porquet/tsar-uclibc