summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2007-01-14 16:34:43 +0000
committernetchild <netchild@FreeBSD.org>2007-01-14 16:34:43 +0000
commit79662cd11ca12b1eba26b71b3d306bb419fdae95 (patch)
treea105e294ccabb6f885b2f3ee1c3581c673f87756 /sys
parent4ffc7bc7ea2d330c7b7b2a57f5226e040a45692e (diff)
downloadFreeBSD-src-79662cd11ca12b1eba26b71b3d306bb419fdae95.zip
FreeBSD-src-79662cd11ca12b1eba26b71b3d306bb419fdae95.tar.gz
MFp4 (112379):
Implement SETALL/GETALL IPC primitives. This fixes some LTP testcases and LabView is able to proceed a little bit further. Submitted by: rdivacky
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linux/linux_ipc.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index ec8df56..f1f4b15 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -571,9 +571,13 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args)
td->td_retval[0] = seminfo.semmni;
return 0; /* No need for __semctl call */
case LINUX_GETALL:
- /* FALLTHROUGH */
+ cmd = GETALL;
+ semun.val = args->arg.val;
+ break;
case LINUX_SETALL:
- /* FALLTHROUGH */
+ cmd = SETALL;
+ semun.val = args->arg.val;
+ break;
default:
linux_msg(td, "ipc type %d is not implemented",
args->cmd & ~LINUX_IPC_64);
OpenPOWER on IntegriCloud