Home | History | Annotate | Line # | Download | only in include
      1 /*
      2 Copyright 1987, 1998  The Open Group
      3 
      4 Permission to use, copy, modify, distribute, and sell this software and its
      5 documentation for any purpose is hereby granted without fee, provided that
      6 the above copyright notice appear in all copies and that both that
      7 copyright notice and this permission notice appear in supporting
      8 documentation.
      9 
     10 The above copyright notice and this permission notice shall be included in
     11 all copies or substantial portions of the Software.
     12 
     13 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     14 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     15 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
     16 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
     17 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
     18 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
     19 
     20 Except as contained in this notice, the name of The Open Group shall not be
     21 used in advertising or otherwise to promote the sale, use or other dealings
     22 in 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/libxfont2.h>	/* xfont2_pattern_cache_ptr */
     54 #include	<X11/Xpoll.h>		/* select & fd_set */
     55 #include	"client.h"		/* WorkQueuePtr */
     56 #include	"misc.h"		/* OldListenRec */
     57 
     58 extern long TimeOutValue;
     59 extern long ReapClientTime;
     60 
     61 extern int  currentMaxClients;
     62 extern long MaxClients;
     63 extern int  serverGeneration;
     64 
     65 extern volatile char isItTimeToYield;
     66 extern volatile char dispatchException;
     67 
     68 extern int  argcGlobal;
     69 extern char **argvGlobal;
     70 
     71 extern WorkQueuePtr workQueue;
     72 
     73 extern fd_set WellKnownConnections;
     74 extern fd_set LastSelectMask;
     75 extern fd_set WriteMask;
     76 extern fd_set ClientsWithInput;
     77 extern fd_set ClientsWriteBlocked;
     78 extern fd_set AllSockets;
     79 extern fd_set AllClients;
     80 extern fd_set OutputPending;
     81 
     82 extern Bool AnyClientsWriteBlocked;
     83 extern Bool NewOutputPending;
     84 
     85 extern int ConnectionTranslation[];
     86 
     87 extern xfont2_pattern_cache_ptr fontPatternCache;
     88 
     89 extern long LastReapTime;
     90 extern Bool drone_server;
     91 extern char *progname;
     92 extern char *configfilename;
     93 
     94 extern XtransConnInfo *ListenTransConns;
     95 extern int *ListenTransFds;
     96 extern int  ListenTransCount;
     97 
     98 extern OldListenRec *OldListen;
     99 extern int OldListenCount;
    100 
    101 extern Bool portFromCmdline;
    102 
    103 extern char *ConnectionInfo;
    104 extern int ConnInfoLen;
    105 
    106 extern 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