Close fd in CMD_Exec
[fvwm.git] / fvwm / externs.h
blobbfcec5d994e2a787688cd9ff33bf4a25a72fad69
1 /* -*-c-*- */
2 /*
3 * Copyright 1988 by Evans & Sutherland Computer Corporation,
4 * Salt Lake City, Utah
5 * Portions Copyright 1989 by the Massachusetts Institute of Technology
6 * Cambridge, Massachusetts
8 * All Rights Reserved
10 * Permission to use, copy, modify, and distribute this software and
11 * its documentation for any purpose and without fee is hereby
12 * granted, provided that the above copyright notice appear in all
13 * copies and that both that copyright notice and this permis-
14 * sion notice appear in supporting documentation, and that the
15 * names of Evans & Sutherland and M.I.T. not be used in advertising
16 * in publicity pertaining to distribution of the software without
17 * specific, written prior permission.
19 * EVANS & SUTHERLAND AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD
20 * TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT-
21 * ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND OR
22 * M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM-
23 * AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA
24 * OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
25 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
26 * OR PERFORMANCE OF THIS SOFTWARE.
29 #ifndef EXTERNS_H
30 #define EXTERNS_H
32 void Done(int, char *) __attribute__((__noreturn__));
33 void set_init_function_name(int n, const char *name);
34 const char *get_init_function_name(int n);
36 extern char NoName[];
37 extern char NoClass[];
38 extern char NoResource[];
39 extern XGCValues Globalgcv;
40 extern unsigned long Globalgcm;
41 extern int master_pid;
42 extern Display *dpy;
43 extern int x_fd;
44 extern XContext FvwmContext;
45 extern Bool fFvwmInStartup;
46 extern Bool DoingCommandLine;
47 extern Bool debugging;
48 extern Bool debugging_stack_ring;
49 extern int GrabPointerState;
50 extern Window JunkRoot, JunkChild;
51 extern int JunkX, JunkY;
52 extern int JunkWidth, JunkHeight, JunkBW, JunkDepth;
53 extern unsigned int JunkMask;
54 extern char *fvwm_userdir;
55 extern char *display_name;
56 extern Atom _XA_MIT_PRIORITY_COLORS;
57 extern Atom _XA_WM_CHANGE_STATE;
58 extern Atom _XA_WM_STATE;
59 extern Atom _XA_WM_COLORMAP_WINDOWS;
60 extern Atom _XA_WM_PROTOCOLS;
61 extern Atom _XA_WM_TAKE_FOCUS;
62 extern Atom _XA_WM_SAVE_YOURSELF;
63 extern Atom _XA_WM_DELETE_WINDOW;
64 extern Atom _XA_WM_DESKTOP;
65 extern Atom _XA_OL_WIN_ATTR;
66 extern Atom _XA_OL_WT_BASE;
67 extern Atom _XA_OL_WT_CMD;
68 extern Atom _XA_OL_WT_HELP;
69 extern Atom _XA_OL_WT_NOTICE;
70 extern Atom _XA_OL_WT_OTHER;
71 extern Atom _XA_OL_DECOR_ADD;
72 extern Atom _XA_OL_DECOR_DEL;
73 extern Atom _XA_OL_DECOR_CLOSE;
74 extern Atom _XA_OL_DECOR_RESIZE;
75 extern Atom _XA_OL_DECOR_HEADER;
76 extern Atom _XA_OL_DECOR_ICON_NAME;
77 extern Atom _XA_WM_WINDOW_ROLE;
78 extern Atom _XA_WINDOW_ROLE;
79 extern Atom _XA_WM_CLIENT_LEADER;
80 extern Atom _XA_SM_CLIENT_ID;
81 extern Atom _XA_WIN_SX;
82 extern Atom _XA_MANAGER;
83 extern Atom _XA_ATOM_PAIR;
84 extern Atom _XA_WM_COLORMAP_NOTIFY;
85 extern Atom _XA_XROOTPMAP_ID;
86 extern Atom _XA_XSETROOT_ID;
87 #endif /* _EXTERNS_ */