Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 17:06:18 +0900 (JST)
From:      Michael Hancock <michaelh@cet.co.jp>
To:        Brandon Gillespie <brandon@roguetrader.com>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: /usr/include/sys/types.h FD_ZERO/FD_COPY macros
Message-ID:  <Pine.SV4.3.95.980118170519.14227A-100000@parkplace.cet.co.jp>
In-Reply-To: <Pine.BSF.3.96.980115142455.1958A-100000@roguetrader.com>

next in thread | previous in thread | raw e-mail | index | archive | help
It really doesn't matter since they're hidden behind the macro anyway.
BTW, have you looked at the source for bc

On Thu, 15 Jan 1998, Brandon Gillespie wrote:

> The macro's use bzero/bcopy... currently:
> 
> #define FD_COPY(f, t)   bcopy(f, t, sizeof(*(f))) 
> #define FD_ZERO(p)      bzero(p, sizeof(*(p)))
> 
> Should probably be (in order to be more standard):
> 
> #define FD_COPY(f, t)   memcpy(t, f, sizeof(*(f))) 
> #define FD_ZERO(p)      memset(p, 0, sizeof(*(p)))
> 
> Unless I'm mistaken?  (for more info on the FD_* look at 'man select')
> 
> -Brandon Gillespie
> 

--
michaelh@cet.co.jp                                http://www.cet.co.jp
CET Inc., Daiichi Kasuya BLDG 8F 2-5-12, Higashi Shinbashi, Minato-ku,
Tokyo 105 Japan              Tel: +81-3-3437-1761 Fax: +81-3-3437-1766




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.95.980118170519.14227A-100000>