diff options
author | csjp <csjp@FreeBSD.org> | 2005-08-06 07:20:18 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2005-08-06 07:20:18 +0000 |
commit | 8d2abe7f0012fbe9a1b7b4d60141fe7ef7773ff7 (patch) | |
tree | 7f404867df31caa4a760d72c567e74af206dd740 /usr.bin/ipcs | |
parent | e9468c65532d1fe2f9cce67495e244703ba8007b (diff) | |
download | FreeBSD-src-8d2abe7f0012fbe9a1b7b4d60141fe7ef7773ff7.zip FreeBSD-src-8d2abe7f0012fbe9a1b7b4d60141fe7ef7773ff7.tar.gz |
Change the data type of the upper shared memory limits from a signed
integer to an unsigned long. This lifts variables like the maximum
number of pages available for shared memory from 2^31 to 2^32 on 32
bit architectures, and from 2^31 to 2^64 on 64 bit architectures.
It should be noted that this changes breaks ABI on 64 bit architectures
because the size of the shmmax, shmmin, shmmni, shmseg and shmall members
of the shminfo structure has changed.
Silence on: current@
Diffstat (limited to 'usr.bin/ipcs')
-rw-r--r-- | usr.bin/ipcs/ipcs.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ipcs/ipcs.c b/usr.bin/ipcs/ipcs.c index 5a1dbb0..cd2fe13 100644 --- a/usr.bin/ipcs/ipcs.c +++ b/usr.bin/ipcs/ipcs.c @@ -93,11 +93,11 @@ static struct nlist symbols[] = { }; #define SHMINFO_XVEC \ -X(shmmax, sizeof(int)) \ -X(shmmin, sizeof(int)) \ -X(shmmni, sizeof(int)) \ -X(shmseg, sizeof(int)) \ -X(shmall, sizeof(int)) +X(shmmax, sizeof(u_long)) \ +X(shmmin, sizeof(u_long)) \ +X(shmmni, sizeof(u_long)) \ +X(shmseg, sizeof(u_long)) \ +X(shmall, sizeof(u_long)) #define SEMINFO_XVEC \ X(semmap, sizeof(int)) \ |