]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Correct types of variables used to track amount of allocated SysV shared
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 2 Mar 2009 18:53:30 +0000 (18:53 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 2 Mar 2009 18:53:30 +0000 (18:53 +0000)
commit65067cc8b020a2a55018319816f8c6c2d9bcee18
tree126cfd157183d3118e00026a6f63a55085a27d45
parent2883703e00a4a50e97f2ee18676d8cef1687f032
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
UPDATING
lib/libc/sys/shmctl.2
sys/kern/sysv_shm.c
sys/sys/shm.h
usr.bin/ipcs/ipcs.c