globals.h revision ce6676db
1/* 2Copyright 1987, 1998 The Open Group 3 4Permission to use, copy, modify, distribute, and sell this software and its 5documentation for any purpose is hereby granted without fee, provided that 6the above copyright notice appear in all copies and that both that 7copyright notice and this permission notice appear in supporting 8documentation. 9 10The above copyright notice and this permission notice shall be included in 11all copies or substantial portions of the Software. 12 13THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 17AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 18CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 20Except as contained in this notice, the name of The Open Group shall not be 21used in advertising or otherwise to promote the sale, use or other dealings 22in this Software without prior written authorization from The Open Group. 23 * Copyright 1990, 1991 Network Computing Devices; 24 * Portions Copyright 1987 by Digital Equipment Corporation 25 * 26 * Permission to use, copy, modify, distribute, and sell this software and its 27 * documentation for any purpose is hereby granted without fee, provided that 28 * the above copyright notice appear in all copies and that both that 29 * copyright notice and this permission notice appear in supporting 30 * documentation, and that the names of Network Computing Devices, 31 * or Digital not be used in advertising or 32 * publicity pertaining to distribution of the software without specific, 33 * written prior permission. Network Computing Devices, or Digital 34 * make no representations about the 35 * suitability of this software for any purpose. It is provided "as is" 36 * without express or implied warranty. 37 * 38 * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH 39 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 40 * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, OR DIGITAL BE 41 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 42 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 43 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 44 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 45 * 46 */ 47 48#ifndef _GLOBALS_H_ 49#define _GLOBALS_H_ 50 51#include <X11/fonts/FSproto.h> /* for fsResolution */ 52#include <X11/Xtrans/Xtrans.h> /* XtransConnInfo */ 53#include <X11/fonts/font.h> /* FontPatternCachePtr */ 54#include <X11/Xpoll.h> /* select & fd_set */ 55#include "client.h" /* WorkQueuePtr */ 56#include "misc.h" /* OldListenRec */ 57 58extern long TimeOutValue; 59extern long ReapClientTime; 60 61extern int currentMaxClients; 62extern long MaxClients; 63extern int serverGeneration; 64 65extern volatile char isItTimeToYield; 66extern volatile char dispatchException; 67 68extern int argcGlobal; 69extern char **argvGlobal; 70 71extern WorkQueuePtr workQueue; 72 73extern fd_set WellKnownConnections; 74extern fd_set LastSelectMask; 75extern fd_set WriteMask; 76extern fd_set ClientsWithInput; 77extern fd_set ClientsWriteBlocked; 78extern fd_set AllSockets; 79extern fd_set AllClients; 80extern fd_set OutputPending; 81 82extern Bool AnyClientsWriteBlocked; 83extern Bool NewOutputPending; 84 85extern int ConnectionTranslation[]; 86 87extern FontPatternCachePtr fontPatternCache; 88 89extern long LastReapTime; 90extern Bool drone_server; 91extern char *progname; 92extern char *configfilename; 93 94extern XtransConnInfo *ListenTransConns; 95extern int *ListenTransFds; 96extern int ListenTransCount; 97 98extern OldListenRec *OldListen; 99extern int OldListenCount; 100 101extern Bool portFromCmdline; 102 103extern char *ConnectionInfo; 104extern int ConnInfoLen; 105 106extern long OutputBufferSize; 107 108/* bit values for dispatchException */ 109#define DE_RESET 0x1 110#define DE_TERMINATE 0x2 111#define DE_RECONFIG 0x4 112#define DE_FLUSH 0x8 113 114/* size of vector tables */ 115#define NUM_PROC_VECTORS 25 116#define NUM_EVENT_VECTORS 8 117#endif /* _GLOBALS_H_ */ 118