diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-09-28 13:13:44 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2004-09-28 13:13:44 +0000 |
commit | 31cfe2300d8b9aee110ba0a7213f6befdd3ffce0 (patch) | |
tree | f6ecda8e30f2994538ab94c9e5886c1e0067cd03 /include/pthread.h | |
parent | 7a2c357151e82fe59ca396c81c5f28efecc0094a (diff) |
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.
Diffstat (limited to 'include/pthread.h')
0 files changed, 0 insertions, 0 deletions