ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/selcall.h
(Generate patch)

Comparing ray/src/common/selcall.h (file contents):
Revision 3.1 by gregl, Tue Oct 28 14:02:29 1997 UTC vs.
Revision 3.5 by greg, Tue Feb 25 02:47:22 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1997 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   * header file for select call compatibility
4   */
5  
6 + #include "copyright.h"
7 +
8   #include <sys/types.h>
9   #include <sys/time.h>
10   #ifdef INCL_SEL_H
# Line 23 | Line 22
22   #define FD_SET(n, p)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
23   #define FD_CLR(n, p)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
24   #define FD_ISSET(n, p)  ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
25 < #ifndef BSD
27 < #define bzero(d,n)      memset(d,0,n)
28 < #endif
25 > #ifdef BSD
26   #define FD_ZERO(p)      bzero((char *)(p), sizeof(*(p)))
27 + #else
28 + #define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
29 + #endif
30   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines