33 changed files with 278 additions and 2593 deletions
-
6.bzr-mysql/default.conf
-
2232README
-
4VC++Files/client/mysqlclient.dsp
-
3VC++Files/client/mysqlclient.vcproj
-
4VC++Files/client/mysqlclient_ia64.dsp
-
4VC++Files/libmysql/libmysql.dsp
-
3VC++Files/libmysql/libmysql.vcproj
-
4VC++Files/libmysql/libmysql_ia64.dsp
-
6VC++Files/mysys/mysys.dsp
-
5VC++Files/mysys/mysys.vcproj
-
8VC++Files/mysys/mysys_ia64.dsp
-
4configure.in
-
4include/Makefile.am
-
4include/heap.h
-
27include/my_compare.h
-
5include/my_global.h
-
5include/myisam.h
-
4libmysql/CMakeLists.txt
-
5libmysql/Makefile.shared
-
4myisam/ft_stopwords.c
-
90myisam/mi_check.c
-
6myisam/mi_range.c
-
7mysql-test/r/gis.result
-
10mysql-test/t/gis.test
-
6mysys/CMakeLists.txt
-
9mysys/Makefile.am
-
117mysys/my_compare.c
-
111mysys/my_gethostbyname.c
-
91mysys/my_net.c
-
40mysys/my_port.c
-
31mysys/raid2.c
-
3scripts/make_win_bin_dist
-
9sql/spatial.cc
@ -1,4 +1,4 @@ |
|||
[MYSQL] |
|||
post_commit_to = "dbg_mysql_security@sun.com" |
|||
post_push_to = "dbg_mysql_security@sun.com" |
|||
tree_name = "mysql-5.0-security" |
|||
post_commit_to = "commits@lists.mysql.com" |
|||
post_push_to = "commits@lists.mysql.com" |
|||
tree_name = "mysql-5.0" |
2232
README
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,111 +0,0 @@ |
|||
/* Copyright (C) 2002, 2004 MySQL AB |
|||
|
|||
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; version 2 |
|||
of the License. |
|||
|
|||
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 */ |
|||
|
|||
/* Thread safe version of gethostbyname_r() */ |
|||
|
|||
#include "mysys_priv.h" |
|||
#if !defined(MSDOS) && !defined(__WIN__) |
|||
#include <netdb.h> |
|||
#endif |
|||
#include <my_net.h> |
|||
|
|||
/* This file is not needed if my_gethostbyname_r is a macro */ |
|||
#if !defined(my_gethostbyname_r) |
|||
|
|||
/* |
|||
Emulate SOLARIS style calls, not because it's better, but just to make the |
|||
usage of getbostbyname_r simpler. |
|||
*/ |
|||
|
|||
#if defined(HAVE_GETHOSTBYNAME_R) |
|||
|
|||
#if defined(HAVE_GETHOSTBYNAME_R_GLIBC2_STYLE) |
|||
|
|||
struct hostent *my_gethostbyname_r(const char *name, |
|||
struct hostent *result, char *buffer, |
|||
int buflen, int *h_errnop) |
|||
{ |
|||
struct hostent *hp; |
|||
DBUG_ASSERT((size_t) buflen >= sizeof(*result)); |
|||
if (gethostbyname_r(name,result, buffer, (size_t) buflen, &hp, h_errnop)) |
|||
return 0; |
|||
return hp; |
|||
} |
|||
|
|||
#elif defined(HAVE_GETHOSTBYNAME_R_RETURN_INT) |
|||
|
|||
struct hostent *my_gethostbyname_r(const char *name, |
|||
struct hostent *result, char *buffer, |
|||
int buflen, int *h_errnop) |
|||
{ |
|||
if (gethostbyname_r(name,result,(struct hostent_data *) buffer) == -1) |
|||
{ |
|||
*h_errnop= errno; |
|||
return 0; |
|||
} |
|||
return result; |
|||
} |
|||
|
|||
#else |
|||
|
|||
/* gethostbyname_r with similar interface as gethostbyname() */ |
|||
|
|||
struct hostent *my_gethostbyname_r(const char *name, |
|||
struct hostent *result, char *buffer, |
|||
int buflen, int *h_errnop) |
|||
{ |
|||
struct hostent *hp; |
|||
DBUG_ASSERT(buflen >= sizeof(struct hostent_data)); |
|||
hp= gethostbyname_r(name,result,(struct hostent_data *) buffer); |
|||
*h_errnop= errno; |
|||
return hp; |
|||
} |
|||
#endif /* GLIBC2_STYLE_GETHOSTBYNAME_R */ |
|||
|
|||
#else /* !HAVE_GETHOSTBYNAME_R */ |
|||
|
|||
#ifdef THREAD |
|||
extern pthread_mutex_t LOCK_gethostbyname_r; |
|||
#endif |
|||
|
|||
/* |
|||
No gethostbyname_r() function exists. |
|||
In this case we have to keep a mutex over the call to ensure that no |
|||
other thread is going to reuse the internal memory. |
|||
|
|||
The user is responsible to call my_gethostbyname_r_free() when he |
|||
is finished with the structure. |
|||
*/ |
|||
|
|||
struct hostent *my_gethostbyname_r(const char *name, |
|||
struct hostent *result, char *buffer, |
|||
int buflen, int *h_errnop) |
|||
{ |
|||
struct hostent *hp; |
|||
pthread_mutex_lock(&LOCK_gethostbyname_r); |
|||
hp= gethostbyname(name); |
|||
*h_errnop= h_errno; |
|||
return hp; |
|||
} |
|||
|
|||
void my_gethostbyname_r_free() |
|||
{ |
|||
pthread_mutex_unlock(&LOCK_gethostbyname_r); |
|||
} |
|||
|
|||
#endif /* !HAVE_GETHOSTBYNAME_R */ |
|||
#endif /* !my_gethostbyname_r */ |
@ -1,40 +0,0 @@ |
|||
/* Copyright (C) 2002 MySQL AB |
|||
|
|||
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; version 2 |
|||
of the License. |
|||
|
|||
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 */ |
|||
|
|||
/* |
|||
Small functions to make code portable |
|||
*/ |
|||
|
|||
#include "mysys_priv.h" |
|||
|
|||
#ifdef _AIX |
|||
|
|||
/* |
|||
On AIX, at least with gcc 3.1, the expression |
|||
'(double) (ulonglong) var' doesn't always work for big unsigned |
|||
integers like '18446744073709551615'. The end result is that the |
|||
high bit is simply dropped. (probably bug in gcc optimizations) |
|||
Handling the conversion in a sub function seems to work. |
|||
*/ |
|||
|
|||
|
|||
|
|||
double my_ulonglong2double(unsigned long long nr) |
|||
{ |
|||
return (double) nr; |
|||
} |
|||
#endif /* _AIX */ |
@ -1,31 +0,0 @@ |
|||
/* Copyright (C) 2002 MySQL AB |
|||
|
|||
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; version 2 |
|||
of the License. |
|||
|
|||
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 */ |
|||
|
|||
/* |
|||
RAID support for MySQL. For full comments, check raid.cc |
|||
This is in a separate file to not cause problems on OS that can't |
|||
put C++ files in archives. |
|||
*/ |
|||
|
|||
#include "mysys_priv.h" |
|||
|
|||
const char *raid_type_string[]={"none","striped"}; |
|||
|
|||
const char *my_raid_type(int raid_type) |
|||
{ |
|||
return raid_type_string[raid_type]; |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue