summaryrefslogtreecommitdiffstats
path: root/sys/sys/ipc.h
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2008-02-12 20:55:03 +0000
committercsjp <csjp@FreeBSD.org>2008-02-12 20:55:03 +0000
commitb24cb219b9c5b9c7e769dbd2d26caad935b998fd (patch)
tree8d1777983c8795e786f2ca9977a02a96b8361039 /sys/sys/ipc.h
parent841dab65e0dfa62b15f486a07b165dc02840cf3a (diff)
downloadFreeBSD-src-b24cb219b9c5b9c7e769dbd2d26caad935b998fd.zip
FreeBSD-src-b24cb219b9c5b9c7e769dbd2d26caad935b998fd.tar.gz
Make sure we restrict Linux only IPC calls from being executed
through the FreeBSD ABI. IPC_INFO, SHM_INFO, SHM_STAT were added specifically for Linux binary support. They are not documented as being a part of the FreeBSD ABI, also, the structures necessary for them have been hidden away from the users for a long time. Also, the Linux ABI layer uses it's own structures to populate the responses back to the user to ensure that the ABI is consistent. I think there is a bit more separation work that needs to happen. Reviewed by: jhb Discussed with: jhb Discussed on: freebsd-arch@ (very briefly) MFC after: 1 month
Diffstat (limited to 'sys/sys/ipc.h')
-rw-r--r--sys/sys/ipc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/ipc.h b/sys/sys/ipc.h
index 57b3186..139b103 100644
--- a/sys/sys/ipc.h
+++ b/sys/sys/ipc.h
@@ -100,6 +100,9 @@ struct ipc_perm {
#define IPC_SET 1 /* set options */
#define IPC_STAT 2 /* get options */
#if __BSD_VISIBLE
+/*
+ * For Linux compatability.
+ */
#define IPC_INFO 3 /* get info */
#endif
OpenPOWER on IntegriCloud