[Fwd: cvs commit: src/sys/kern sys_generic.c]

From: Andre Oppermann <andre_at_freebsd.org>
Date: Fri, 27 Aug 2004 23:30:16 +0200
Maybe this fixes poll() problems/errors some people have seen on their
machines.  I am not sure if this alignment would have caused problems
on non-ia32 architectures but it is certainly more correct now. ;-)

-- 
Andre

attached mail follows:


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_at_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
Received on Fri Aug 27 2004 - 19:30:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:08 UTC