diff options
author | unknown <monty@hundin.mysql.fi> | 2001-09-12 23:53:31 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-09-12 23:53:31 +0300 |
commit | 76989cf55c016a9d8619f582f753444241a4d934 (patch) | |
tree | 51a09b9e3466647e4386ab24f3c9aa89ff7a93b9 /include | |
parent | a53e8ea0ac4f7d53297b7942febf04e02d8c3b54 (diff) | |
download | mariadb-git-76989cf55c016a9d8619f582f753444241a4d934.tar.gz |
OS2 patch
Docs/manual.texi:
Updated section of how to change the socket file.
Changelog for 3.23.43
include/merge.h:
Fixed typo
include/my_pthread.h:
Fixed bug for WIN32
include/myisam.h:
Fixed typo
include/nisam.h:
Fixed typo
sql/handler.h:
Fixed typo
sql/sql_table.cc:
Fixed typo
sql/unireg.cc:
F
Diffstat (limited to 'include')
-rw-r--r-- | include/config-os2.h | 9 | ||||
-rw-r--r-- | include/global.h | 11 | ||||
-rw-r--r-- | include/merge.h | 2 | ||||
-rw-r--r-- | include/my_pthread.h | 2 | ||||
-rw-r--r-- | include/myisam.h | 2 | ||||
-rw-r--r-- | include/nisam.h | 2 |
6 files changed, 22 insertions, 6 deletions
diff --git a/include/config-os2.h b/include/config-os2.h index 172a04a9f01..9064cd5a5bb 100644 --- a/include/config-os2.h +++ b/include/config-os2.h @@ -87,6 +87,8 @@ #define S_IFMT 0xF000 /* Mask for file type */ #define F_TO_EOF 0L /* Param to lockf() to lock rest of file */ +#define HUGE_PTR + #ifdef __cplusplus extern "C" #endif @@ -102,8 +104,13 @@ BOOL TlsSetValue( DWORD, PVOID); #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 ulonglong os_off_t; +typedef unsigned long long os_off_t; /* config.h. Generated automatically by configure. */ /* config.h.in. Generated automatically from configure.in by autoheader. */ diff --git a/include/global.h b/include/global.h index f10411af0aa..c7d6952f1c6 100644 --- a/include/global.h +++ b/include/global.h @@ -647,15 +647,24 @@ typedef off_t os_off_t; #define socket_errno WSAGetLastError() #define SOCKET_EINTR WSAEINTR #define SOCKET_EAGAIN WSAEINPROGRESS +#define SOCKET_ENFILE ENFILE +#define SOCKET_EMFILE EMFILE #elif defined(OS2) #define socket_errno sock_errno() +#define SOCKET_EINTR SOCEINTR +#define SOCKET_EAGAIN SOCEINPROGRESS +#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK +#define SOCKET_ENFILE SOCENFILE +#define SOCKET_EMFILE SOCEMFILE #define closesocket(A) soclose(A) #else /* Unix */ -#define socket_errno errno +#define socket_errno errno #define closesocket(A) close(A) #define SOCKET_EINTR EINTR #define SOCKET_EAGAIN EAGAIN #define SOCKET_EWOULDBLOCK EWOULDBLOCK +#define SOCKET_ENFILE ENFILE +#define SOCKET_EMFILE EMFILE #endif typedef uint8 int7; /* Most effective integer 0 <= x <= 127 */ diff --git a/include/merge.h b/include/merge.h index b090e49b471..c661e03a0c7 100644 --- a/include/merge.h +++ b/include/merge.h @@ -43,7 +43,7 @@ typedef struct st_mrg_info /* Struct from h_info */ ulonglong data_file_length; uint reclength; /* Recordlength */ int errkey; /* With key was dupplicated on err */ - uint options; /* HA_OPTIONS_... used */ + uint options; /* HA_OPTION_... used */ } MERGE_INFO; typedef struct st_mrg_table_info diff --git a/include/my_pthread.h b/include/my_pthread.h index b54a94f83fc..cd72bcced83 100644 --- a/include/my_pthread.h +++ b/include/my_pthread.h @@ -139,6 +139,7 @@ int pthread_mutex_unlock (pthread_mutex_t *); int pthread_mutex_destroy (pthread_mutex_t *); #define my_pthread_setprio(A,B) DosSetPriority(PRTYS_THREAD,PRTYC_NOCHANGE, B, A) #define pthread_kill(A,B) raise(B) +#define pthread_exit(A) pthread_dummy() #else #define pthread_mutex_init(A,B) InitializeCriticalSection(A) #define pthread_mutex_lock(A) (EnterCriticalSection(A),0) @@ -146,7 +147,6 @@ int pthread_mutex_destroy (pthread_mutex_t *); #define pthread_mutex_destroy(A) DeleteCriticalSection(A) #define my_pthread_setprio(A,B) SetThreadPriority(GetCurrentThread(), (B)) #define pthread_kill(A,B) pthread_dummy(0) -#define pthread_exit(A) pthread_dummy() #endif /* OS2 */ /* Dummy defines for easier code */ diff --git a/include/myisam.h b/include/myisam.h index 9b006467ac8..8d25e17e589 100644 --- a/include/myisam.h +++ b/include/myisam.h @@ -69,7 +69,7 @@ typedef struct st_mi_isaminfo /* Struct from h_info */ ulonglong auto_increment; ulonglong key_map; /* Which keys are used */ uint keys; /* Number of keys in use */ - uint options; /* HA_OPTIONS_... used */ + uint options; /* HA_OPTION_... used */ int errkey, /* With key was dupplicated on err */ sortkey; /* clustered by this key */ File filenr; /* (uniq) filenr for datafile */ diff --git a/include/nisam.h b/include/nisam.h index 77ca12bbc5c..7ce2b44ee79 100644 --- a/include/nisam.h +++ b/include/nisam.h @@ -57,7 +57,7 @@ typedef struct st_n_isaminfo /* Struct from h_info */ uint reclength; /* Recordlength */ uint mean_reclength; /* Mean recordlength (if packed) */ uint keys; /* How many keys used */ - uint options; /* HA_OPTIONS_... used */ + uint options; /* HA_OPTION_... used */ int errkey, /* With key was dupplicated on err */ sortkey; /* clustered by this key */ File filenr; /* (uniq) filenr for datafile */ |