Subject: CVS commit: src/sys/kern
To: None <source-changes@NetBSD.org>
From: Mindaugas Rasiukevicius <rmind@netbsd.org>
List: source-changes
Date: 01/27/2008 18:37:50
Module Name: src
Committed By: rmind
Date: Sun Jan 27 18:37:50 UTC 2008
Modified Files:
src/sys/kern: sysv_shm.c
Log Message:
- sys_shmget: size type must be size_t, not int. Should avoid possible
problems with huge allocations.
- shmrealloc: use newshmni for calculation of new sz, shminfo.shmmni
was a mistake. Convert sz to size_t type.
To generate a diff of this commit:
cvs rdiff -r1.103 -r1.104 src/sys/kern/sysv_shm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.