diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-04-24 19:29:39 +0000 |
---|---|---|
committer | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2005-04-24 19:29:39 +0000 |
commit | 266ae826f8660d485daba069a921ec1ebc68a46d (patch) | |
tree | 1c68bece818c7a556824641c09fbc9ba8b6a7595 /libc/misc/sysvipc/sem.c | |
parent | 52b5a52b480f35928fccdff7298edf92736564ed (diff) |
Fix bug 222: Move all archs to newer __IPC_64 interface for {msg,sem,shm}ctl
syscalls. This won't work on 2.2 kernels(I think).
Diffstat (limited to 'libc/misc/sysvipc/sem.c')
-rw-r--r-- | libc/misc/sysvipc/sem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/misc/sysvipc/sem.c b/libc/misc/sysvipc/sem.c index 8c9672bad..ccbe25b46 100644 --- a/libc/misc/sysvipc/sem.c +++ b/libc/misc/sysvipc/sem.c @@ -51,9 +51,9 @@ int semctl(int semid, int semnum, int cmd, ...) arg = va_arg (ap, union semun); va_end (ap); #ifdef __NR_semctl - return __semctl(semid, semnum, cmd, arg.__pad); + return __semctl(semid, semnum, cmd | __IPC_64, arg.__pad); #else - return __syscall_ipc(IPCOP_semctl, semid, semnum, cmd, &arg); + return __syscall_ipc(IPCOP_semctl, semid, semnum, cmd | __IPC_64, &arg); #endif } #endif |