00001 #ifndef INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H 00002 #define INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H 00003 00004 #if (defined(_SCO_DS) || defined(UNIXWARE_7)) && !defined(SHUT_RDWR) 00005 /* 00006 SHUT_* functions are defined only if 00007 "(defined(_XOPEN_SOURCE) && _XOPEN_SOURCE_EXTENDED - 0 >= 1)" 00008 */ 00009 #define SHUT_RDWR 2 00010 #endif 00011 00012 #ifdef __WIN__ 00013 00014 #define vsnprintf _vsnprintf 00015 #define snprintf _snprintf 00016 00017 #define SIGKILL 9 00018 #define SHUT_RDWR 0x2 00019 00020 /*TODO: fix this */ 00021 #define PROTOCOL_VERSION 10 00022 00023 #define DFLT_CONFIG_FILE_NAME "my.ini" 00024 #define DFLT_MYSQLD_PATH "mysqld" 00025 #define DFLT_PASSWD_FILE_EXT ".passwd" 00026 #define DFLT_PID_FILE_EXT ".pid" 00027 #define DFLT_SOCKET_FILE_EXT ".sock" 00028 00029 typedef int pid_t; 00030 00031 #undef popen 00032 #define popen(A,B) _popen(A,B) 00033 00034 #define NEWLINE "\r\n" 00035 #define NEWLINE_LEN 2 00036 00037 #else /* ! __WIN__ */ 00038 00039 #define NEWLINE "\n" 00040 #define NEWLINE_LEN 1 00041 00042 #endif /* __WIN__ */ 00043 00044 #endif /* INCLUDES_MYSQL_INSTANCE_MANAGER_PORTABILITY_H */ 00045 00046
1.4.7

