summaryrefslogtreecommitdiffstats
path: root/sys/sys/shm.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-03-02 18:53:30 +0000
committerkib <kib@FreeBSD.org>2009-03-02 18:53:30 +0000
commit453adb14fb8994d00a14b341bcf886ca9aad1d9e (patch)
tree126cfd157183d3118e00026a6f63a55085a27d45 /sys/sys/shm.h
parentc672211541895fab644fcd12bb285ea5294f85f5 (diff)
downloadFreeBSD-src-453adb14fb8994d00a14b341bcf886ca9aad1d9e.zip
FreeBSD-src-453adb14fb8994d00a14b341bcf886ca9aad1d9e.tar.gz
Correct types of variables used to track amount of allocated SysV shared
memory from int to size_t. Implement a workaround for current ABI not allowing to properly save size for and report more then 2Gb sized segment of shared memory. This makes it possible to use > 2 Gb shared memory segments on 64bit architectures. Please note the new BUGS section in shmctl(2) and UPDATING note for limitations of this temporal solution. Reviewed by: csjp Tested by: Nikolay Dzham <i levsha org ua> MFC after: 2 weeks
Diffstat (limited to 'sys/sys/shm.h')
-rw-r--r--sys/sys/shm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 33ed7b0..c4b1369 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -108,6 +108,7 @@ struct shminfo {
struct shmid_kernel {
struct shmid_ds u;
struct label *label; /* MAC label */
+ size_t shm_bsegsz;
};
extern struct shminfo shminfo;
OpenPOWER on IntegriCloud