Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 10:31:11 -0500
From:      Mike Barcroft <mike@FreeBSD.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Archie Cobbs <archie@dellroad.org>, Marc Recht <marc@informatik.uni-bremen.de>, Garrett Wollman <wollman@lcs.mit.edu>, current@FreeBSD.ORG
Subject:   Re: addition to cdefs
Message-ID:  <20021113103111.B98651@espresso.q9media.com>
In-Reply-To: <20021114010436.O5042-100000@gamplex.bde.org>; from bde@zeta.org.au on Thu, Nov 14, 2002 at 01:13:13AM %2B1100
References:  <200211122349.gACNn5cX017668@arch20m.dellroad.org> <20021114010436.O5042-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans <bde@zeta.org.au> writes:
> Both have large namespace pollution (p and n are in the application
> namespace).  Both give huge code wih a copy of the function in every
> object file whose source file(s) include this header if inline functions
> are not actually inline (which happens if the compiler is gcc -O0 or
> non-gcc).

I fixed the namespace problems in the version I posted for review on
-standards.  Do you see any problems with changing FD_ZERO() to:

#define FD_ZERO(p)	do {				\
	fd_set *_p = (p);				\
	__size_t _n = _howmany(FD_SETSIZE, _NFDBITS);	\
	while (_n > 0)					\
		_p->__fds_bits[--_n] = 0;		\
} while (0);

...to overcome the issues with the inline version?

Best regards,
Mike Barcroft

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021113103111.B98651>