tkConfig.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.1.1.1 $ 00022 // $Date: 2000/09/15 08:23:24 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/tcl/tkConfig.h,v $ 00024 00025 00026 /* 00027 * tkConfig.h -- 00028 * 00029 * This file is included by all of the Tk C files. It contains 00030 * information that may be configuration-dependent, such as 00031 * #includes for system include files and a few other things. 00032 * 00033 * Copyright 1991 Regents of the University of California 00034 * Permission to use, copy, modify, and distribute this 00035 * software and its documentation for any purpose and without 00036 * fee is hereby granted, provided that this copyright 00037 * notice appears in all copies. The University of California 00038 * makes no representations about the suitability of this 00039 * software for any purpose. It is provided "as is" without 00040 * express or implied warranty. 00041 * 00042 * $Header: /usr/local/cvs/OpenSees/SRC/tcl/tkConfig.h,v 1.1.1.1 2000/09/15 08:23:24 fmk Exp $ SPRITE (Berkeley) 00043 */ 00044 00045 #ifndef _TKCONFIG 00046 #define _TKCONFIG 00047 00048 /* 00049 * Macro to use instead of "void" for arguments that must have 00050 * type "void *" in ANSI C; maps them to type "char *" in 00051 * non-ANSI systems. This macro may be used in some of the include 00052 * files below, which is why it is defined here. 00053 */ 00054 00055 #ifndef VOID 00056 # ifdef __STDC__ 00057 # define VOID void 00058 # else 00059 # define VOID char 00060 # endif 00061 #endif 00062 00063 #include <stdio.h> 00064 #include <ctype.h> 00065 #include <fcntl.h> 00066 #include <math.h> 00067 #include <pwd.h> 00068 #include <stdlib.h> 00069 #include <string.h> 00070 #include <sys/types.h> 00071 #include <sys/file.h> 00072 #include <sys/stat.h> 00073 #include <sys/time.h> 00074 #ifndef _TCL 00075 # include <tcl.h> 00076 #endif 00077 #include <X11/Xlib.h> 00078 #include <X11/cursorfont.h> 00079 #include <X11/keysym.h> 00080 #include <X11/Xatom.h> 00081 #include <X11/Xproto.h> 00082 #include <X11/Xresource.h> 00083 #include <X11/Xutil.h> 00084 00085 /* 00086 * Macro to use instead of "void" for arguments that must have 00087 * type "void *" in ANSI C; maps them to type "char *" in 00088 * non-ANSI systems. 00089 */ 00090 00091 #ifndef VOID 00092 # ifdef __STDC__ 00093 # define VOID void 00094 # else 00095 # define VOID char 00096 # endif 00097 #endif 00098 00099 /* 00100 * Not all systems declare the errno variable in errno.h. so this 00101 * file does it explicitly. 00102 */ 00103 00104 extern int errno; 00105 00106 /* 00107 * Define OPEN_MAX if it isn't already defined for this system. 00108 */ 00109 00110 #ifndef OPEN_MAX 00111 # define OPEN_MAX 256 00112 #endif 00113 00114 /* 00115 * The following macro defines the type of the mask arguments to 00116 * select: 00117 */ 00118 00119 #if (defined(sun) && !defined(sprite)) || defined(linux) 00120 # define SELECT_MASK fd_set 00121 #else 00122 # if defined(_IBMR2) 00123 # define SELECT_MASK void 00124 # else 00125 # define SELECT_MASK int 00126 # endif 00127 #endif 00128 00129 /* 00130 * Declarations for various library procedures that aren't declared 00131 * in a header file. 00132 */ 00133 00134 extern int close _ANSI_ARGS_((int fd)); 00135 //extern int gettimeofday _ANSI_ARGS_((struct timeval *tp, 00136 // struct timezone *tzp)); 00137 extern uid_t getuid _ANSI_ARGS_((void)); 00138 #if !(defined(_CRAY) || defined(sparc) || defined(_IBMR2)) 00139 extern int open _ANSI_ARGS_((CONST char *path, int flags, ...)); 00140 #endif 00141 //extern void panic _ANSI_ARGS_(VARARGS); 00142 extern int read _ANSI_ARGS_((int fd, char *buf, int numBytes)); 00143 //extern int select _ANSI_ARGS_((size_t nfds, SELECT_MASK *readfds, 00144 // SELECT_MASK *writefds, SELECT_MASK *exceptfds, 00145 // const struct timeval *timeout)); 00146 00147 #endif /* _TKCONFIG */ |