Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2008 16:38:43 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r185337 - head/sys/compat/linux
Message-ID:  <200811261638.mAQGchBM060481@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811261638.mAQGchBM060481>