]> cvs.zerfleddert.de Git - micropolis/blob - src/tk/tkconfig.h
remove outdated and unused .dif-files
[micropolis] / src / tk / tkconfig.h
1 /*
2 * tkConfig.h --
3 *
4 * This file is included by all of the Tk C files. It contains
5 * information that may be configuration-dependent, such as
6 * #includes for system include files and a few other things.
7 *
8 * Copyright 1991 Regents of the University of California
9 * Permission to use, copy, modify, and distribute this
10 * software and its documentation for any purpose and without
11 * fee is hereby granted, provided that this copyright
12 * notice appears in all copies. The University of California
13 * makes no representations about the suitability of this
14 * software for any purpose. It is provided "as is" without
15 * express or implied warranty.
16 *
17 * $Header: /user6/ouster/wish/RCS/tkConfig.h,v 1.13 92/08/24 09:23:53 ouster Exp $ SPRITE (Berkeley)
18 */
19
20 #ifndef _TKCONFIG
21 #define _TKCONFIG
22
23 /*
24 * Macro to use instead of "void" for arguments that must have
25 * type "void *" in ANSI C; maps them to type "char *" in
26 * non-ANSI systems. This macro may be used in some of the include
27 * files below, which is why it is defined here.
28 */
29
30 #ifndef VOID
31 # ifdef __STDC__
32 # define VOID void
33 # else
34 # define VOID char
35 # endif
36 #endif
37
38 #include <stdio.h>
39 #include <ctype.h>
40 #include <fcntl.h>
41 #include <math.h>
42 #include <stdlib.h>
43 #include <string.h>
44 #include <sys/types.h>
45 #include <sys/file.h>
46 #include <sys/stat.h>
47 #include <sys/time.h>
48 #include <unistd.h>
49 #ifndef _TCL
50 # include <tcl.h>
51 #endif
52 #ifndef _TCLHASH
53 # include <tclhash.h>
54 #endif
55 #include <X11/Xlib.h>
56 #include <X11/cursorfont.h>
57 #include <X11/keysym.h>
58 #include <X11/Xatom.h>
59 #include <X11/Xproto.h>
60 #include <X11/Xresource.h>
61 #include <X11/Xutil.h>
62
63 /*
64 * Macro to use instead of "void" for arguments that must have
65 * type "void *" in ANSI C; maps them to type "char *" in
66 * non-ANSI systems.
67 */
68
69 #ifndef VOID
70 # ifdef __STDC__
71 # define VOID void
72 # else
73 # define VOID char
74 # endif
75 #endif
76
77 /*
78 * Not all systems declare the errno variable in errno.h. so this
79 * file does it explicitly.
80 */
81
82 extern int errno;
83
84 /*
85 * Define OPEN_MAX if it isn't already defined for this system.
86 */
87
88 #ifndef OPEN_MAX
89 # define OPEN_MAX 256
90 #endif
91
92 /*
93 * The following macro defines the type of the mask arguments to
94 * select:
95 */
96
97 #if defined(IS_LINUX) || (defined(sun) && !defined(sprite))
98 # define SELECT_MASK fd_set
99 #else
100 # if defined(_IBMR2)
101 # define SELECT_MASK void
102 # else
103 # define SELECT_MASK int
104 # endif
105 #endif
106
107 /*
108 * Declarations for various library procedures that aren't declared
109 * in a header file.
110 */
111
112 extern int close _ANSI_ARGS_((int fd));
113 #if 0
114 extern int gettimeofday _ANSI_ARGS_((struct timeval *tp,
115 struct timezone *tzp));
116 #endif
117 #if !(defined(_CRAY) || defined(sparc) || defined(_IBMR2) || defined(sgi))
118 extern int open _ANSI_ARGS_((CONST char *path, int flags, ...));
119 #endif
120 extern void panic _ANSI_ARGS_(VARARGS);
121 #if 0
122 extern int read _ANSI_ARGS_((int fd, void *buf, unsigned int numBytes));
123 extern int select _ANSI_ARGS_((int nfds, SELECT_MASK *readfds,
124 SELECT_MASK *writefds, SELECT_MASK *exceptfds,
125 struct timeval *timeout));
126 #endif
127
128 #endif /* _TKCONFIG */
Impressum, Datenschutz