request for comments on FD_ZERO use of bzero

Joel Sherrill joel.sherrill@OARcorp.com
Tue Dec 14 10:13:00 GMT 1999


Hi again. :)

I was tracking down warnings in RTEMS and noticed that this was the
culprit:


./include/sys/types.h:#  define	FD_ZERO(p)	bzero((caddr_t)(p), sizeof
(*(p)))
./sys/rtems/sys/types.h:#define FD_ZERO(p)  bzero((caddr_t)(p), sizeof
(*(p)))

bzero is not prototyped when __STRICT_ANSI__ is defined so use of 
FD_ZERO will always generate a warning when in strict ANSI mode.

I think changing the bzero's to memset will fix this.

Comments before I change it?

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985


More information about the Newlib mailing list