Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 19:07:25 -0500 (EST)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Archie Cobbs <archie@dellroad.org>
Cc:        current@FreeBSD.org
Subject:   Re: addition to cdefs
Message-ID:  <200211130007.gAD07PsE060994@khavrinen.lcs.mit.edu>
In-Reply-To: <200211122349.gACNn5cX017668@arch20m.dellroad.org>
References:  <20021111112128.G52940@espresso.q9media.com> <200211122349.gACNn5cX017668@arch20m.dellroad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 12 Nov 2002 15:49:05 -0800 (PST), Archie Cobbs <archie@dellroad.org> said:

> But why not just this?

>     static __inline void
>     __fd_zero(fd_set *p, __size_t n)
>     {
> 	    memset(p->fds_bits, 0, _howmany(n, _NFDBITS));
>     }

Because a declaration of memset() is not permitted in that context.

-GAWollman


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?200211130007.gAD07PsE060994>