Date: Fri, 27 Aug 2004 21:23:50 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sys_generic.c Message-ID: <200408272123.i7RLNoG5076002@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
andre 2004-08-27 21:23:50 UTC FreeBSD src repository Modified files: sys/kern sys_generic.c Log: Poll() uses the array smallbits that is big enough to hold 32 struct pollfd's to avoid calling malloc() on small numbers of fd's. Because smalltype's members have type char, its address might be misaligned for a struct pollfd. Change the array of char to an array of struct pollfd. PR: kern/58214 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> Reviewed by: bde (a long time ago) MFC after: 3 days Revision Changes Path 1.133 +3 -3 src/sys/kern/sys_generic.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408272123.i7RLNoG5076002>