summaryrefslogtreecommitdiffstats
path: root/sys/sys
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2005-08-06 07:20:18 +0000
committercsjp <csjp@FreeBSD.org>2005-08-06 07:20:18 +0000
commit8d2abe7f0012fbe9a1b7b4d60141fe7ef7773ff7 (patch)
tree7f404867df31caa4a760d72c567e74af206dd740 /sys/sys
parente9468c65532d1fe2f9cce67495e244703ba8007b (diff)
downloadFreeBSD-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 'sys/sys')
-rw-r--r--sys/sys/shm.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/shm.h b/sys/sys/shm.h
index 0e6b86b..88eaf06 100644
--- a/sys/sys/shm.h
+++ b/sys/sys/shm.h
@@ -94,11 +94,11 @@ struct shmid_ds {
* might be of interest to user programs. Do we really want/need this?
*/
struct shminfo {
- int shmmax, /* max shared memory segment size (bytes) */
- shmmin, /* min shared memory segment size (bytes) */
- shmmni, /* max number of shared memory identifiers */
- shmseg, /* max shared memory segments per process */
- shmall; /* max amount of shared memory (pages) */
+ u_long shmmax; /* max shared memory segment size (bytes) */
+ u_long shmmin; /* max shared memory segment size (bytes) */
+ u_long shmmni; /* max number of shared memory identifiers */
+ u_long shmseg; /* max shared memory segments per process */
+ u_long shmall; /* max amount of shared memory (pages) */
};
/*
OpenPOWER on IntegriCloud