Over zealous redefinition of bzero creates portability issues
Richard Sharpe
rsharpe at richardsharpe.com
Mon Jun 16 07:08:03 GMT 2003
On Mon, 16 Jun 2003 jra at dp.samba.org wrote:
> 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.
Yes. They suck badly.
Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org,
sharpe[at]ethereal.com, http://www.richardsharpe.com
More information about the samba-technical
mailing list