2000-09-06 Jeff Johnston <jjohnstn@redhat.com>

* libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
        inline code to prevent having to include another header file.
This commit is contained in:
Jeff Johnston 2000-09-06 20:55:46 +00:00
parent a385ae7508
commit 8a8c59b9c2
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-09-06 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/types.h (FD_ZERO): Remove call to bzero and
inline code to prevent having to include another header file.
Wed Sep 6 15:06:40 2000 Christopher Faylor <cgf@cygnus.com>
* Makefile.am: Fix space vs. tab problem in install-data-local.

View File

@ -164,7 +164,12 @@ typedef struct _types_fd_set {
# define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1L << ((n) % NFDBITS)))
# define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))
# define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))
# define FD_ZERO(p) bzero((caddr_t)(p), sizeof (*(p)))
# define FD_ZERO(p) (__extension__ (void)({ \
int i; \
char *__tmp = (char *)p; \
for (i = 0; i < sizeof (*(p)); ++i) \
*__tmp++ = 0; \
}))
# endif /* ! defined (_POSIX_SOURCE) && ! defined (_WINSOCK_H) */