1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Make nselcol, the number of select collisions since boot, unsigned as

negative collisions simply doesn't make sense.

PR:		(one small part of) 19720
Approved by:	alfred
This commit is contained in:
Kelly Yancey 2002-06-12 02:08:18 +00:00
parent 8fb5ef5ae2
commit 9ae6d334da
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98133
2 changed files with 7 additions and 7 deletions

View File

@ -713,8 +713,8 @@ ioctl(td, uap)
*/
struct mtx sellock;
struct cv selwait;
int nselcoll; /* Select collisions since boot */
SYSCTL_INT(_kern, OID_AUTO, nselcoll, CTLFLAG_RD, &nselcoll, 0, "");
u_int nselcoll; /* Select collisions since boot */
SYSCTL_UINT(_kern, OID_AUTO, nselcoll, CTLFLAG_RD, &nselcoll, 0, "");
/*
* Select system call.
@ -744,8 +744,8 @@ select(td, uap)
fd_mask s_selbits[howmany(2048, NFDBITS)];
fd_mask *ibits[3], *obits[3], *selbits, *sbp;
struct timeval atv, rtv, ttv;
int ncoll, error, timo;
u_int nbufbytes, ncpbytes, nfdbits;
int error, timo;
u_int ncoll, nbufbytes, ncpbytes, nfdbits;
if (uap->nd < 0)
return (EINVAL);
@ -955,8 +955,8 @@ poll(td, uap)
caddr_t bits;
char smallbits[32 * sizeof(struct pollfd)];
struct timeval atv, rtv, ttv;
int ncoll, error = 0, timo;
u_int nfds;
int error = 0, timo;
u_int ncoll, nfds;
size_t ni;
nfds = SCARG(uap, nfds);

View File

@ -57,7 +57,7 @@ extern char copyright[]; /* system copyright */
extern int nswap; /* size of swap space */
extern int nselcoll; /* select collisions since boot */
extern u_int nselcoll; /* select collisions since boot */
extern struct mtx sellock; /* select lock variable */
extern struct cv selwait; /* select conditional variable */