]>
cvs.zerfleddert.de Git - micropolis/blob - src/tk/tkconfig.h
d8e27a20269f5d2912917bb212f9f5661b95d7c7
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>
55 #include <X11/cursorfont.h>
56 #include <X11/keysym.h>
57 #include <X11/Xatom.h>
58 #include <X11/Xproto.h>
59 #include <X11/Xresource.h>
60 #include <X11/Xutil.h>
63 * Macro to use instead of "void" for arguments that must have
64 * type "void *" in ANSI C; maps them to type "char *" in
77 * Not all systems declare the errno variable in errno.h. so this
78 * file does it explicitly.
84 * Define OPEN_MAX if it isn't already defined for this system.
92 * The following macro defines the type of the mask arguments to
96 #if defined(IS_LINUX) || (defined(sun) && !defined(sprite))
97 # define SELECT_MASK fd_set
100 # define SELECT_MASK void
102 # define SELECT_MASK int
107 * Declarations for various library procedures that aren't declared
111 extern int close
_ANSI_ARGS_((int fd
));
113 extern int gettimeofday
_ANSI_ARGS_((struct timeval
*tp
,
114 struct timezone
*tzp
));
116 #if !(defined(_CRAY) || defined(sparc) || defined(_IBMR2) || defined(sgi))
117 extern int open
_ANSI_ARGS_((CONST
char *path
, int flags
, ...));
119 extern void panic
_ANSI_ARGS_(VARARGS
);
121 extern int read
_ANSI_ARGS_((int fd
, void *buf
, unsigned int numBytes
));
122 extern int select
_ANSI_ARGS_((int nfds
, SELECT_MASK
*readfds
,
123 SELECT_MASK
*writefds
, SELECT_MASK
*exceptfds
,
124 struct timeval
*timeout
));
127 #endif /* _TKCONFIG */