00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #if __GNUC__ >= 4
00013 #define DSL_API __attribute__ ((visibility("default")))
00014 #define DSL_API_CLASS __attribute__ ((visibility("default")))
00015 #else
00016 #define DSL_API
00017 #define DSL_API_CLASS
00018 #endif
00019 #define DSL_CC
00020
00021
00022 #include <stdlib.h>
00023 #include <stdio.h>
00024 #include <string.h>
00025 #include <ctype.h>
00026 #include <malloc.h>
00027 #include <sys/stat.h>
00028 #include <errno.h>
00029 #include <sys/types.h>
00030 #include <time.h>
00031 #include <limits.h>
00032
00033 #include <new>
00034 #include <pthread.h>
00035 #include <signal.h>
00036 #include <sys/socket.h>
00037 #include <sys/utsname.h>
00038 #include <dirent.h>
00039 #include <netinet/in.h>
00040 #include <netdb.h>
00041 #include <unistd.h>
00042 #include <arpa/inet.h>
00043 #include <fcntl.h>
00044 #include <dlfcn.h>
00045
00046
00047 #define PLATFORM "Solaris"
00048 #define SOLARIS
00049 #ifdef __i386__
00050 #define CPU "x86"
00051 #else
00052 #warning WARNING: Unknown CPU Type
00053 #endif
00054
00055
00056 #define MAX_PATH 1024
00057 #define THREADTYPE void *
00058 typedef void * (*ThreadProto)(void *);
00059
00060
00061 #define stricmp strcasecmp
00062 #define strnicmp strncasecmp
00063 #define dsl_mkdir(x,y) mkdir(x, y)