X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Frx%2Frx_globals.c;h=70fa04443176a4ba81749d4f55ad07d5b2b98dc1;hp=cc540df4563b1fadcb4d45032559b37bc820dd07;hb=941ac04165a9239a11b4ab908350dbfae24edfb9;hpb=87c10e8d7f05dbbdf12ee9e8651dcec07e08af3f diff --git a/src/rx/rx_globals.c b/src/rx/rx_globals.c index cc540df..70fa044 100644 --- a/src/rx/rx_globals.c +++ b/src/rx/rx_globals.c @@ -1,44 +1,49 @@ - /* -**************************************************************************** -* Copyright IBM Corporation 1988, 1989 - All Rights Reserved * -* * -* Permission to use, copy, modify, and distribute this software and its * -* documentation for any purpose and without fee is hereby granted, * -* provided that the above copyright notice appear in all copies and * -* that both that copyright notice and this permission notice appear in * -* supporting documentation, and that the name of IBM not be used in * -* advertising or publicity pertaining to distribution of the software * -* without specific, written prior permission. * -* * -* IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL * -* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL IBM * -* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY * -* DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER * -* IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING * -* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * -**************************************************************************** -*/ + * Copyright 2000, International Business Machines Corporation and others. + * All Rights Reserved. + * + * This software has been released under the terms of the IBM Public + * License. For details, see the LICENSE file in the top-level source + * directory or online at http://www.openafs.org/dl/license10.html + */ /* RX: Globals for internal use, basically */ +/* This controls the size of an fd_set; it must be defined early before + * the system headers define that type and the macros that operate on it. + * Its value should be as large as the maximum file descriptor limit we + * are likely to run into on any platform. Right now, that is 65536 + * which is the default hard fd limit on Solaris 9 */ +#if !defined(_WIN32) && !defined(KERNEL) +#define FD_SETSIZE 65536 +#endif + +#include +#ifdef KERNEL +#include "afs/param.h" +#else +#include +#endif + +RCSID + ("$Header$"); + /* Enable data initialization when the header file is included */ #define INIT(stuff) = stuff #if defined(AFS_NT40_ENV) && defined(AFS_PTHREAD_ENV) #define EXT __declspec(dllexport) +#define EXT2 __declspec(dllexport) #else #define EXT +#define EXT2 #endif #ifdef KERNEL -#include "../afs/param.h" #ifndef UKERNEL -#include "../h/types.h" +#include "h/types.h" #else /* !UKERNEL */ -#include "../afs/sysincludes.h" -#endif /* !UKERNEL */ -#else /* KERNEL */ -#include +#include "afs/sysincludes.h" +#endif /* UKERNEL */ #endif /* KERNEL */ #include "rx_globals.h"