Bug 21947

Summary: shmget(2) takes 'size' in pages as opposed to bytes.
Product: Base System Reporter: smcho <smcho>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: bugs
Priority: Normal    
Version: 3.5.1-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description smcho 2000-10-13 05:10:01 UTC
	shmget(2) is described to take the second argument as 'the desired
	size of the new segment in bytes', but in reality, it takes the
	second argument as the size in _pages_.

Fix: Attached is a patch to lib/libc/gen/shmget.c
How-To-Repeat: 
	Read the source:
		sys/kern/sysv_shm.c
		lib/libc/gen/shmget.c
Comment 1 dwmalone freebsd_committer freebsd_triage 2000-10-13 11:16:46 UTC
State Changed
From-To: open->closed

Closed at submitters request (probabal misreading of source code).