]>
cvs.zerfleddert.de Git - micropolis/blob - src/tk/tkconfig.h
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.
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.
17 * $Header: /user6/ouster/wish/RCS/tkConfig.h,v 1.13 92/08/24 09:23:53 ouster Exp $ SPRITE (Berkeley)
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.
44 #include <sys/types.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>
64 * Macro to use instead of "void" for arguments that must have
65 * type "void *" in ANSI C; maps them to type "char *" in
78 * Not all systems declare the errno variable in errno.h. so this
79 * file does it explicitly.
85 * Define OPEN_MAX if it isn't already defined for this system.
93 * The following macro defines the type of the mask arguments to
97 #if defined(IS_LINUX) || (defined(sun) && !defined(sprite))
98 # define SELECT_MASK fd_set
101 # define SELECT_MASK void
103 # define SELECT_MASK int
108 * Declarations for various library procedures that aren't declared
112 extern int close
_ANSI_ARGS_((int fd
));
114 extern int gettimeofday
_ANSI_ARGS_((struct timeval
*tp
,
115 struct timezone
*tzp
));
117 #if !(defined(_CRAY) || defined(sparc) || defined(_IBMR2) || defined(sgi))
118 extern int open
_ANSI_ARGS_((CONST
char *path
, int flags
, ...));
120 extern void panic
_ANSI_ARGS_(VARARGS
);
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
));
128 #endif /* _TKCONFIG */