summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_ipc.h
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2002-10-11 11:43:09 +0000
committersobomax <sobomax@FreeBSD.org>2002-10-11 11:43:09 +0000
commit591d270f4cb78aa28bf4425bd40ffa64369adf01 (patch)
treedd3429246e9b840440a70d3aa3d72b2350dbe054 /sys/compat/linux/linux_ipc.h
parent7d25fb4f0a7f37f8e156559c3326d143e998bb41 (diff)
downloadFreeBSD-src-591d270f4cb78aa28bf4425bd40ffa64369adf01.zip
FreeBSD-src-591d270f4cb78aa28bf4425bd40ffa64369adf01.tar.gz
- Add support for IPC_64 extensions into shmctl(2), semctl(2) and msgctl(2);
- add wrappers for mmap2(2) and ftruncate64(2) system calls; - don't spam console with printf's when VFAT_READDIR_BOTH ioctl(2) is invoked; - add support for SOUND_MIXER_READ_STEREODEVS ioctl(2); - make msgctl(IPC_STAT) and IPC_SET actually working by converting from BSD msqid_ds to Linux and vice versa; - properly return EINVAL if semget(2) is called with nsems being negative. Reviewed by: marcel Approved by: marcel Tested with: LSB runtime test
Diffstat (limited to 'sys/compat/linux/linux_ipc.h')
-rw-r--r--sys/compat/linux/linux_ipc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_ipc.h b/sys/compat/linux/linux_ipc.h
index 183afe1..33a85b7 100644
--- a/sys/compat/linux/linux_ipc.h
+++ b/sys/compat/linux/linux_ipc.h
@@ -31,6 +31,15 @@
#ifndef _LINUX_IPC_H_
#define _LINUX_IPC_H_
+/*
+ * Version flags for semctl, msgctl, and shmctl commands
+ * These are passed as bitflags or-ed with the actual command
+ */
+#define LINUX_IPC_OLD 0 /* Old version (no 32-bit UID support on many
+ architectures) */
+#define LINUX_IPC_64 0x0100 /* New version (support 32-bit UIDs, bigger
+ message sizes, etc. */
+
#ifdef __i386__
struct linux_msgctl_args
OpenPOWER on IntegriCloud