globals.h revision bbe1b32b
1/* $Xorg: globals.h,v 1.4 2001/02/09 02:05:44 xorgcvs Exp $ */ 2/* 3Copyright 1987, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall not be 22used in advertising or otherwise to promote the sale, use or other dealings 23in this Software without prior written authorization from The Open Group. 24 * Copyright 1990, 1991 Network Computing Devices; 25 * Portions Copyright 1987 by Digital Equipment Corporation 26 * 27 * Permission to use, copy, modify, distribute, and sell this software and its 28 * documentation for any purpose is hereby granted without fee, provided that 29 * the above copyright notice appear in all copies and that both that 30 * copyright notice and this permission notice appear in supporting 31 * documentation, and that the names of Network Computing Devices, 32 * or Digital not be used in advertising or 33 * publicity pertaining to distribution of the software without specific, 34 * written prior permission. Network Computing Devices, or Digital 35 * make no representations about the 36 * suitability of this software for any purpose. It is provided "as is" 37 * without express or implied warranty. 38 * 39 * NETWORK COMPUTING DEVICES, AND DIGITAL DISCLAIM ALL WARRANTIES WITH 40 * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 41 * AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES, OR DIGITAL BE 42 * LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 43 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION 44 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 45 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 46 * 47 * @(#)globals.h 4.2 91/05/03 48 * 49 */ 50 51#ifndef _GLOBALS_H_ 52#define _GLOBALS_H_ 53 54#include <X11/fonts/FSproto.h> /* for fsResolution */ 55 56extern long TimeOutValue; 57extern long ReapClientTime; 58 59extern int currentMaxClients; 60extern long MaxClients; 61extern int serverGeneration; 62 63extern volatile char isItTimeToYield; 64extern volatile char dispatchException; 65 66extern int argcGlobal; 67extern char **argvGlobal; 68 69/* bit values for dispatchException */ 70#define DE_RESET 0x1 71#define DE_TERMINATE 0x2 72#define DE_RECONFIG 0x4 73#define DE_FLUSH 0x8 74 75/* size of vector tables */ 76#define NUM_PROC_VECTORS 25 77#define NUM_EVENT_VECTORS 8 78#endif /* _GLOBALS_H_ */ 79