diff options
author | kib <kib@FreeBSD.org> | 2009-03-02 18:53:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-03-02 18:53:30 +0000 |
commit | 453adb14fb8994d00a14b341bcf886ca9aad1d9e (patch) | |
tree | 126cfd157183d3118e00026a6f63a55085a27d45 /usr.bin/ipcs | |
parent | c672211541895fab644fcd12bb285ea5294f85f5 (diff) | |
download | FreeBSD-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 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 67364d5..1fd943a 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -452,8 +452,8 @@ print_kshmptr(int i, int option, struct shmid_kernel *kshmptr) kshmptr->u.shm_nattch); if (option & BIGGEST) - printf(" %12d", - kshmptr->u.shm_segsz); + printf(" %12zu", + kshmptr->shm_bsegsz); if (option & PID) printf(" %12d %12d", |