Philip Guenther:

> <string.h> needs to stay until FD_ZERO() and FD_COPY() are changed to
> not use memset()/memcpy().

We could grab this from FreeBSD:

#if __BSD_VISIBLE
#define FD_COPY(f, t)   (void)(*(t) = *(f))
#endif
#define FD_ZERO(p) do {                                 \
        fd_set *_p;                                     \
        __size_t _n;                                    \
                                                        \
        _p = (p);                                       \
        _n = __howmany(FD_SETSIZE, __NFDBITS);          \
        while (_n > 0)                                  \
                _p->fds_bits[--_n] = 0;                 \
} while (0)

-- 
Christian "naddy" Weisgerber                          [email protected]

Reply via email to