Subject: CVS commit: syssrc/sys/sys
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 12/19/2001 00:29:26
Module Name:	syssrc
Committed By:	jdolecek
Date:		Tue Dec 18 22:29:26 UTC 2001

Modified Files:
	syssrc/sys/sys: file.h

Log Message:
struct file: bump f_count and f_msgcount to u_int, to protect against
counter overflow. Fixes kern/5080 by David A. Holland.
Also move f_usecount & f_iflags to better place, and make f_type int.

Note: the maximum possible number of references to a struct file is
maxfiles + unp_rights == 2 * INT_MAX


To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 syssrc/sys/sys/file.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.