midasinc.h

Go to the documentation of this file.
00001 /********************************************************************\
00002 
00003   Name:         MIDASINC.H
00004   Created by:   Stefan Ritt
00005 
00006   Purpose:      Centralized file with all #includes
00007   Contents:     Includes all necessary include files
00008 
00009   $Id: midasinc.h 4788 2010-07-19 17:06:18Z olchanski $
00010 
00011 \********************************************************************/
00012 
00013 /* OS independent files */
00014 
00015 #include <stdio.h>
00016 #include <stdlib.h>
00017 #include <string.h>
00018 #include <time.h>
00019 #include <ctype.h>
00020 #include <assert.h>
00021 
00022 /* OS dependent files */
00023 
00024 #ifdef OS_VMS
00025 
00026 #include <descrip.h>
00027 #include <errno.h>
00028 #include <in.h>
00029 #include <inet.h>
00030 #include <lckdef.h>
00031 #include <lkidef.h>
00032 #include <netdb.h>
00033 #include <ppl$def.h>
00034 #include <ppl$routines.h>
00035 #include <ppldef.h>
00036 #include <prcdef.h>
00037 #include <socket.h>
00038 #include <starlet.h>
00039 #include <stdarg.h>
00040 #include <ssdef.h>
00041 #include <ucx$inetdef.h>
00042 #include <file.h>
00043 #include <stat.h>
00044 #include <ctype.h>
00045 
00046 #ifdef __ALPHA
00047 #include <unixio.h>
00048 #include <unixlib.h>
00049 #include <lib$routines.h>
00050 #endif
00051 
00052 #endif
00053 
00054 #ifdef OS_WINNT
00055 
00056 #include <windows.h>
00057 #include <conio.h>
00058 #include <process.h>
00059 #include <direct.h>
00060 #include <io.h>
00061 #include <fcntl.h>
00062 #include <sys/stat.h>
00063 #include <sys/timeb.h>
00064 
00065 #endif
00066 
00067 #ifdef OS_MSDOS
00068 
00069 #include <sys/stat.h>
00070 #include <io.h>
00071 #include <fcntl.h>
00072 #include <sys/types.h>
00073 #include <netdb.h>
00074 #include <in.h>
00075 #include <sys/socket.h>
00076 #include <sys/ioctl.h>
00077 #include <stdarg.h>
00078 #include <process.h>
00079 #include <dos.h>
00080 #include <alloc.h>
00081 #include <errno.h>
00082 #include <conio.h>
00083 #include <ctype.h>
00084 
00085 #endif
00086 
00087 #ifdef OS_VXWORKS
00088 
00089 #include <vxWorks.h>
00090 #include <sockLib.h>
00091 #include <selectLib.h>
00092 #include <hostLib.h>
00093 #include <in.h>
00094 #include <ioLib.h>
00095 #include <netinet/tcp.h>
00096 #include <sys/stat.h>
00097 /*-PAA- permanent as semphore moved in ss_mutex_...() */
00098 #include <semLib.h>
00099 #include <taskLib.h>
00100 #include <symLib.h>
00101 #include <errnoLib.h>
00102 
00103 #endif
00104 
00105 #ifdef OS_UNIX
00106 
00107 #ifndef __USE_GNU
00108 #define __USE_GNU // needed for semtimedop()
00109 #endif
00110 
00111 #include <errno.h>
00112 #include <stdarg.h>
00113 #include <unistd.h>
00114 #include <netdb.h>
00115 #include <pwd.h>
00116 #include <fcntl.h>
00117 #include <syslog.h>
00118 #include <netinet/in.h>
00119 #include <netinet/tcp.h>
00120 #include <sys/termios.h>
00121 #include <sys/types.h>
00122 #include <sys/param.h>
00123 #include <sys/ipc.h>
00124 #include <sys/sem.h>
00125 #include <sys/shm.h>
00126 #include <sys/ioctl.h>
00127 #include <sys/socket.h>
00128 #include <sys/timeb.h>
00129 #include <sys/stat.h>
00130 
00131 #if defined(OS_DARWIN)
00132 /* mtio.h vanished from MacOS 10.6 */
00133 #elif defined(OS_LINUX)
00134 #include <sys/mtio.h>
00135 #endif
00136 
00137 #include <sys/syscall.h>
00138 #include <dirent.h>
00139 #include <pthread.h>
00140 
00141 /* special code for Linux and FreeBSD */
00142 #if defined(OS_LINUX) || defined(OS_FREEBSD)
00143 #include <sys/time.h>
00144 #ifdef OS_DARWIN
00145 #else
00146 #include <linux/unistd.h>
00147 #include <sys/vfs.h>
00148 #endif
00149 #include <arpa/inet.h>
00150 #include <fnmatch.h>
00151 #ifdef OS_DARWIN
00152 #include <util.h>
00153 #else
00154 #include <pty.h>
00155 #endif
00156 #undef LITTLE_ENDIAN
00157 #endif
00158 
00159 /* special code for OSF1 */
00160 #ifdef OS_OSF1
00161 #include <sys/time.h>
00162 #include <sys/timers.h>
00163 
00164 /*-PAA- Special for Ultrix */
00165 #ifndef OS_ULTRIX
00166 #include <fnmatch.h>
00167 #define NO_PTY
00168 #endif
00169 
00170 extern void *malloc();          /* patches for wrong gcc include files */
00171 extern void *realloc();
00172 #endif
00173 
00174 #ifdef OS_IRIX
00175 #include <sys/statfs.h>
00176 #include <fnmatch.h>
00177 #define NO_PTY
00178 #endif
00179 
00180 #include <sys/wait.h>
00181 
00182 #endif
00183 
00184 /* special code for Solaris */
00185 #ifdef OS_SOLARIS
00186 #include <sys/filio.h>
00187 #include <sys/statvfs.h>
00188 #define NO_PTY
00189 #endif
00190 
00191 /* FTP library */
00192 #include "ftplib.h"
00193 
00194 /*------------------------------------------------------------------*/

Midas DOC Version 3.0.0 ---- PSI Stefan Ritt ----
Contributions: Pierre-Andre Amaudruz - Sergio Ballestrero - Suzannah Daviel - Doxygen - Peter Green - Qing Gu - Greg Hackman - Gertjan Hofman - Paul Knowles - Exaos Lee - Rudi Meier - Glenn Moloney - Dave Morris - John M O'Donnell - Konstantin Olchanski - Renee Poutissou - Tamsen Schurman - Andreas Suter - Jan M.Wouters - Piotr Adam Zolnierczuk