?? config-os2.h
字號:
/* Copyright (C) 2000 MySQL AB & Yuri Dario All the above parties has a full, independent copyright to the following code, including the right to use the code in any manner without any demands from the other parties. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA *//* Defines for OS2 to make it compatible for MySQL */#ifndef __CONFIG_OS2_H__#define __CONFIG_OS2_H__#include <os2.h>#include <math.h>#include <io.h>#include <types.h>/* Define to name of system eg solaris*/#define SYSTEM_TYPE "IBM OS/2 Warp"/* Define to machine type name eg sun10 */#define MACHINE_TYPE "i686"/* Name of package */#define PACKAGE "mysql"/* Version number of package */#define VERSION MYSQL_SERVER_VERSION/* Default socket */#define MYSQL_UNIX_ADDR "\\socket\\MySQL"#define FN_LIBCHAR '\\'#define FN_ROOTDIR "\\"#define MY_NFILE 1024 /* This is only used to save filenames */#define HAVE_ACCESS#define DEFAULT_MYSQL_HOME "c:\\mysql"#define DEFAULT_BASEDIR "C:\\"#define SHAREDIR "share"#define DEFAULT_CHARSET_HOME "C:/mysql/"#define _POSIX_PATH_MAX 255#define DWORD ULONG#define O_SHARE 0x1000 /* Open file in sharing mode */#define FILE_BINARY O_BINARY /* my_fopen in binary mode */#define S_IROTH S_IREAD /* for my_lib */#define CANT_DELETE_OPEN_FILES /* saves open files in a list, for delayed delete */#define O_NONBLOCK 0x10#define NO_OPEN_3 /* For my_create() */#define SIGQUIT SIGTERM /* No SIGQUIT */#define SIGALRM 14 /* Alarm */#define NO_FCNTL_NONBLOCK#define EFBIG E2BIG/*#define ENFILE EMFILE *//*#define ENAMETOOLONG (EOS2ERR+2) *//*#define ETIMEDOUT 145 *//*#define EPIPE 146 */#define EROFS 147#define sleep(A) DosSleep((A)*1000)#define closesocket(A) soclose(A)#define F_OK 0#define W_OK 2#define bzero(x,y) memset((x),'\0',(y))#define bcopy(x,y,z) memcpy((y),(x),(z))#define bcmp(x,y,z) memcmp((y),(x),(z))#define F_RDLCK 4 /* Read lock. */#define F_WRLCK 2 /* Write lock. */#define F_UNLCK 0 /* Remove lock. */#define S_IFMT 0x17000 /* Mask for file type */#define F_TO_EOF 0L /* Param to lockf() to lock rest of file */#define HUGE_PTR#ifdef __cplusplusextern "C"#endifdouble _cdecl rint( double nr);DWORD TlsAlloc( void);BOOL TlsFree( DWORD);PVOID TlsGetValue( DWORD);BOOL TlsSetValue( DWORD, PVOID);/* support for > 2GB file size */#define SIZEOF_OFF_T 8#define lseek(A,B,C) _lseek64( A, B, C)#define tell(A) _lseek64( A, 0, SEEK_CUR)void* dlopen( char* path, int flag);char* dlerror( void);void* dlsym( void* hmod, char* fn);void dlclose( void* hmod);/* Some typedefs */typedef unsigned long long os_off_t;/* config.h. Generated automatically by configure. *//* config.h.in. Generated automatically from configure.in by autoheader. *//* Define if using alloca.c. *//* #undef C_ALLOCA *//* Define to empty if the keyword does not work. *//* #undef const *//* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems. This function is required for alloca.c support on those systems. *//* #undef CRAY_STACKSEG_END *//* Define if you have alloca, as a function or macro. */#define HAVE_ALLOCA 1/* Define if you have <alloca.h> and it should be used (not on Ultrix). *//* #define HAVE_ALLOCA_H 1 *//* Define if you don't have vprintf but do have _doprnt. *//* #undef HAVE_DOPRNT *//* Define if you have a working `mmap' system call. *//* #undef HAVE_MMAP *//* Define if system calls automatically restart after interruption by a signal. *//* #undef HAVE_RESTARTABLE_SYSCALLS *//* Define if your struct stat has st_rdev. */#define HAVE_ST_RDEV 1/* Define if you have <sys/wait.h> that is POSIX.1 compatible. *//* #define HAVE_SYS_WAIT_H 1 *//* Define if you don't have tm_zone but do have the external array tzname. */#define HAVE_TZNAME 1/* Define if utime(file, NULL) sets file's timestamp to the present. */#define HAVE_UTIME_NULL 1/* Define if you have the vprintf function. */#define HAVE_VPRINTF 1/* Define as __inline if that's what the C compiler calls it. *//* #undef inline *//* Define to `long' if <sys/types.h> doesn't define. *//* #undef off_t *//* Define as the return type of signal handlers (int or void). */#define RETSIGTYPE void/* Define to `unsigned' if <sys/types.h> doesn't define. *//* #undef size_t *//* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at run-time. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */#define STACK_DIRECTION -1/* Define if the `S_IS*' macros in <sys/stat.h> do not work properly. *//* #undef STAT_MACROS_BROKEN *//* Define if you have the ANSI C header files. */#define STDC_HEADERS 1/* Define if you can safely include both <sys/time.h> and <time.h>. */#define TIME_WITH_SYS_TIME 1/* Define if your <sys/time.h> declares struct tm. *//* #undef TM_IN_SYS_TIME *//* Define if your processor stores words with the most significant byte first (like Motorola and SPARC, unlike Intel and VAX). *//* #undef WORDS_BIGENDIAN *//* Version of .frm files */#define DOT_FRM_VERSION 6/* READLINE: */#define FIONREAD_IN_SYS_IOCTL 1/* READLINE: Define if your system defines TIOCGWINSZ in sys/ioctl.h. *//* #undef GWINSZ_IN_SYS_IOCTL *//* Do we have FIONREAD */#define FIONREAD_IN_SYS_IOCTL 1/* atomic_add() from <asm/atomic.h> (Linux only) *//* #undef HAVE_ATOMIC_ADD *//* atomic_sub() from <asm/atomic.h> (Linux only) *//* #undef HAVE_ATOMIC_SUB *//* bool is not defined by all C++ compilators */#define HAVE_BOOL 1/* Have berkeley db installed *//* #define HAVE_BERKELEY_DB 1 *//* DSB style signals ? *//* #undef HAVE_BSD_SIGNALS *//* Can netinet be included *//* #undef HAVE_BROKEN_NETINET_INCLUDES *//* READLINE: *//* #undef HAVE_BSD_SIGNALS *//* ZLIB and compress: */#define HAVE_COMPRESS 1/* Define if we are using OSF1 DEC threads *//* #undef HAVE_DEC_THREADS *//* Define if we are using OSF1 DEC threads on 3.2 *//* #undef HAVE_DEC_3_2_THREADS *//* fp_except from ieeefp.h *//* #undef HAVE_FP_EXCEPT *//* READLINE: *//* #undef HAVE_GETPW_DECLS *//* Solaris define gethostbyname_r with 5 arguments. glibc2 defines this with 6 arguments *//* #undef HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE *//* In OSF 4.0f the 3'd argument to gethostname_r is hostent_data * *//* #undef HAVE_GETHOSTBYNAME_R_RETURN_INT *//* Define if int8, int16 and int32 types exist *//* #undef HAVE_INT_8_16_32 *//* Define if have -lwrap *//* #undef HAVE_LIBWRAP *//* Define if we are using Xavier Leroy's LinuxThreads *//* #undef HAVE_LINUXTHREADS *//* Do we use user level threads *//* #undef HAVE_mit_thread *//* For some non posix threads *//* #undef HAVE_NONPOSIX_PTHREAD_GETSPECIFIC *//* For some non posix threads *//* #undef HAVE_NONPOSIX_PTHREAD_MUTEX_INIT *//* READLINE: */#define HAVE_POSIX_SIGNALS 0/* sigwait with one argument *//* #undef HAVE_NONPOSIX_SIGWAIT *//* pthread_attr_setscope */#define HAVE_PTHREAD_ATTR_SETSCOPE 1/* POSIX readdir_r *//* #undef HAVE_READDIR_R *//* POSIX sigwait *//* #undef HAVE_SIGWAIT *//* crypt */#define HAVE_CRYPT 1/* Solaris define gethostbyaddr_r with 7 arguments. glibc2 defines this with 8 arguments *//* #undef HAVE_SOLARIS_STYLE_GETHOST *//* Timespec has a ts_sec instead of tv_sev */#define HAVE_TIMESPEC_TS_SEC 1/* Have the tzname variable */#define HAVE_TZNAME 1/* Define if the system files define uchar *//* #undef HAVE_UCHAR *//* Define if the system files define uint *//* #undef HAVE_UINT *//* Define if the system files define ulong *//* #undef HAVE_ULONG *//* UNIXWARE7 threads are not posix *//* #undef HAVE_UNIXWARE7_THREADS *//* new UNIXWARE7 threads that are not yet posix *//* #undef HAVE_UNIXWARE7_POSIX *//* READLINE: *//* #undef HAVE_USG_SIGHOLD *//* Define if want -lwrap *//* #undef LIBWRAP *//* mysql client protocoll version */#define PROTOCOL_VERSION 10/* Define if qsort returns void */#define QSORT_TYPE_IS_VOID 1/* Define as the return type of qsort (int or void). */#define RETQSORTTYPE void/* Define as the base type of the last arg to accept */#define SOCKET_SIZE_TYPE int/* Last argument to get/setsockopt *//* #undef SOCKOPT_OPTLEN_TYPE *//* #undef SPEED_T_IN_SYS_TYPES *//* #undef SPRINTF_RETURNS_PTR */#define SPRINTF_RETURNS_INT 1/* #undef SPRINTF_RETURNS_GARBAGE *//* #undef STRUCT_DIRENT_HAS_D_FILENO */#define STRUCT_DIRENT_HAS_D_INO 1/* Define if you want to have threaded code. This may be undef on client code */#define THREAD 1/* Should be client be thread safe *//* #undef THREAD_SAFE_CLIENT *//* READLINE: *//* #undef TIOCSTAT_IN_SYS_IOCTL *//* Use multi-byte character routines *//* #undef USE_MB *//* #undef USE_MB_IDENT *//* Use MySQL RAID *//* #undef USE_RAID *//* Use strcoll() functions when comparing and sorting. *//* #undef USE_STRCOLL *//* READLINE: */#define VOID_SIGHANDLER 1/* The number of bytes in a char. */#define SIZEOF_CHAR 1/* The number of bytes in a int. */#define SIZEOF_INT 4/* The number of bytes in a long. */#define SIZEOF_LONG 4/* The number of bytes in a long long. */#define SIZEOF_LONG_LONG 8/* Define if you have the alarm function. */#define HAVE_ALARM 1/* Define if you have the atod function. *//* #undef HAVE_ATOD *//* Define if you have the bcmp function. */#define HAVE_BCMP 1/* Define if you have the bfill function. *//* #undef HAVE_BFILL *//* Define if you have the bmove function. *//* #undef HAVE_BMOVE *//* Define if you have the bzero function. */#define HAVE_BZERO 1/* Define if you have the chsize function. */#define HAVE_CHSIZE 1/* Define if you have the cuserid function. *//* #define HAVE_CUSERID 1 *//* Define if you have the dlerror function. */#define HAVE_DLERROR 1/* Define if you have the dlopen function. */#define HAVE_DLOPEN 1/* Define if you have the fchmod function. *//* #undef HAVE_FCHMOD *//* Define if you have the fcntl function. *//* #define HAVE_FCNTL 1 *//* Define if you have the fconvert function. *//* #undef HAVE_FCONVERT *//* Define if you have the finite function. */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -