Over zealous redefinition of bzero creates portability issues

jra at dp.samba.org jra at dp.samba.org
Mon Jun 16 06:27:17 GMT 2003


On Sun, Jun 15, 2003 at 11:01:09PM -0700, Richard Sharpe wrote:
> On Mon, 16 Jun 2003, Tim Potter wrote:
> 
> > On Sun, Jun 15, 2003 at 10:45:06PM -0700, Richard Sharpe wrote:
> > 
> > > Well, on FreeBSD 4.6.2, and I suspect other versions and maybe other OSes, 
> > > FD_ZERO is defined in terms of bzero.
> > > 
> > > Samba 3.0.0 Beta1 breaks in that case. This is not very portable.
> > 
> > Tridge reverted the "don't use bzero" macro a few days ago.
> 
> Right, as I just discovered. Good thing too, because Slowaris also uses 
> bzero for FD_ZERO.

AIX too :-). This is why these OS's suck and are dying (like *BSD,
read /. for details :-). Seriously, bzero is not in spec 1170 and
shouldn't be used in portable code. Typical of most vendors that
they do.

Jeremy.



More information about the samba-technical mailing list