Commit 935c5b4f authored by Automatic Updater's avatar Automatic Updater

update copyright notice

parent 0c42fc3a
/*
* Copyright (C) 2004, 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 2004, 2005, 2007, 2008 Internet Systems Consortium, Inc. ("ISC")
* Copyright (C) 1999-2003 Internet Software Consortium.
*
* Permission to use, copy, modify, and/or distribute this software for any
......@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: net.h,v 1.29 2008/07/01 03:55:10 each Exp $ */
/* $Id: net.h,v 1.30 2008/07/01 23:47:17 tbox Exp $ */
#ifndef ISC_NET_H
#define ISC_NET_H 1
......@@ -104,7 +104,7 @@
* This is here because named client, interfacemgr.c, etc. use the name as
* a variable
*/
#undef interface
#undef interface
#ifndef INADDR_LOOPBACK
#define INADDR_LOOPBACK 0x7f000001UL
......@@ -155,15 +155,15 @@ typedef isc_uint16_t in_port_t;
#define FD_CLR(fd, set) do { \
u_int __i; \
for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \
if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET) fd) { \
while (__i < ((fd_set FAR *)(set))->fd_count-1) { \
((fd_set FAR *)(set))->fd_array[__i] = \
((fd_set FAR *)(set))->fd_array[__i+1]; \
__i++; \
} \
((fd_set FAR *)(set))->fd_count--; \
break; \
} \
if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET) fd) { \
while (__i < ((fd_set FAR *)(set))->fd_count-1) { \
((fd_set FAR *)(set))->fd_array[__i] = \
((fd_set FAR *)(set))->fd_array[__i+1]; \
__i++; \
} \
((fd_set FAR *)(set))->fd_count--; \
break; \
} \
} \
} while (0)
......@@ -171,15 +171,15 @@ typedef isc_uint16_t in_port_t;
#define FD_SET(fd, set) do { \
u_int __i; \
for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \
if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET)(fd)) { \
break; \
} \
if (((fd_set FAR *)(set))->fd_array[__i] == (SOCKET)(fd)) { \
break; \
} \
} \
if (__i == ((fd_set FAR *)(set))->fd_count) { \
if (((fd_set FAR *)(set))->fd_count < FD_SETSIZE) { \
((fd_set FAR *)(set))->fd_array[__i] = (SOCKET)(fd); \
((fd_set FAR *)(set))->fd_count++; \
} \
if (((fd_set FAR *)(set))->fd_count < FD_SETSIZE) { \
((fd_set FAR *)(set))->fd_array[__i] = (SOCKET)(fd); \
((fd_set FAR *)(set))->fd_count++; \
} \
} \
} while (0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment