svn commit: r185337 - head/sys/compat/linux
Roman Divacky
rdivacky at FreeBSD.org
Wed Nov 26 08:38:43 PST 2008
Author: rdivacky
Date: Wed Nov 26 16:38:43 2008
New Revision: 185337
URL: http://svn.freebsd.org/changeset/base/185337
Log:
Document that all the other commands are either
identical to the FreeBSD ones or rejected by
kern_msgctl().
Found with: Coverity Prevent(tm)
CID: 3456
Approved by: kib (mentor)
Modified:
head/sys/compat/linux/linux_ipc.c
Modified: head/sys/compat/linux/linux_ipc.c
==============================================================================
--- head/sys/compat/linux/linux_ipc.c Wed Nov 26 13:44:11 2008 (r185336)
+++ head/sys/compat/linux/linux_ipc.c Wed Nov 26 16:38:43 2008 (r185337)
@@ -672,6 +672,14 @@ linux_msgctl(struct thread *td, struct l
return (error);
}
+/*
+ * TODO: implement this
+ * case LINUX_MSG_STAT:
+ */
+ case LINUX_IPC_STAT:
+ /* NOTHING */
+ break;
+
case LINUX_IPC_SET:
error = linux_msqid_pullup(args->cmd & LINUX_IPC_64,
&linux_msqid, PTRIN(args->buf));
@@ -679,6 +687,14 @@ linux_msgctl(struct thread *td, struct l
return (error);
linux_to_bsd_msqid_ds(&linux_msqid, &bsd_msqid);
break;
+
+ case LINUX_IPC_RMID:
+ /* NOTHING */
+ break;
+
+ default:
+ return (EINVAL);
+ break;
}
error = kern_msgctl(td, args->msqid, bsd_cmd, &bsd_msqid);
More information about the svn-src-all
mailing list