mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Update copyright
Fixed memory leak on shutdown (Affects the embedded version & MyODBC)
This commit is contained in:
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Quick & light hash implementation for tab completion purposes
|
/* Quick & light hash implementation for tab completion purposes
|
||||||
*
|
*
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This library is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU Library General Public
|
modify it under the terms of the GNU Library General Public
|
||||||
License as published by the Free Software Foundation; either
|
License as published by the Free Software Foundation; either
|
||||||
version 2 of the License, or (at your option) any later version.
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This library is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
Library General Public License for more details.
|
Library General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU Library General Public
|
||||||
License along with this library; if not, write to the Free
|
License along with this library; if not, write to the Free
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Error messages for MySQL clients */
|
/* Error messages for MySQL clients */
|
||||||
/* error messages for the demon is in share/language/errmsg.sys */
|
/* error messages for the demon is in share/language/errmsg.sys */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Ask for a password from tty
|
** Ask for a password from tty
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -1,34 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 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; 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 */
|
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifdef __WIN__
|
#ifdef __WIN__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* readline for batch mode */
|
/* readline for batch mode */
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
@ -1790,7 +1790,7 @@ xmlencode(char *dest, char *src)
|
|||||||
const char *t;
|
const char *t;
|
||||||
char s[2] = { 0, 0 };
|
char s[2] = { 0, 0 };
|
||||||
*dest = 0;
|
*dest = 0;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
s[0] = *p;
|
s[0] = *p;
|
||||||
@ -1812,7 +1812,7 @@ my_chomp(char *end) {
|
|||||||
mend--;
|
mend--;
|
||||||
} while (mend && *mend);
|
} while (mend && *mend);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
safe_put_field(const char *pos,ulong length)
|
safe_put_field(const char *pos,ulong length)
|
||||||
@ -2419,7 +2419,7 @@ static int
|
|||||||
put_info(const char *str,INFO_TYPE info_type,uint error)
|
put_info(const char *str,INFO_TYPE info_type,uint error)
|
||||||
{
|
{
|
||||||
static int inited=0;
|
static int inited=0;
|
||||||
|
|
||||||
if (status.batch)
|
if (status.batch)
|
||||||
{
|
{
|
||||||
if (info_type == INFO_ERROR)
|
if (info_type == INFO_ERROR)
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
@ -337,7 +337,7 @@ static my_bool sql_connect(MYSQL *mysql,const char *host, const char *user,
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wait)
|
if (!wait)
|
||||||
{
|
{
|
||||||
if (!option_silent)
|
if (!option_silent)
|
||||||
@ -649,7 +649,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
print_top(res);
|
print_top(res);
|
||||||
|
|
||||||
ex_status_printed = 1; /* From now on the output will be relative */
|
ex_status_printed = 1; /* From now on the output will be relative */
|
||||||
mysql_free_result(res);
|
mysql_free_result(res);
|
||||||
break;
|
break;
|
||||||
@ -745,7 +745,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
|
|||||||
else
|
else
|
||||||
puts("Slave stopped");
|
puts("Slave stopped");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ADMIN_PING:
|
case ADMIN_PING:
|
||||||
mysql->reconnect=0; /* We want to know of reconnects */
|
mysql->reconnect=0; /* We want to know of reconnects */
|
||||||
if (!mysql_ping(mysql))
|
if (!mysql_ping(mysql))
|
||||||
@ -1000,7 +1000,7 @@ static void print_relative_row_vert(MYSQL_RES *result __attribute__((unused)),
|
|||||||
uint length;
|
uint length;
|
||||||
ulonglong tmp;
|
ulonglong tmp;
|
||||||
char buff[22];
|
char buff[22];
|
||||||
|
|
||||||
if (!row)
|
if (!row)
|
||||||
putchar('|');
|
putchar('|');
|
||||||
|
|
||||||
@ -1079,7 +1079,7 @@ static void truncate_names()
|
|||||||
*ptr++='+';
|
*ptr++='+';
|
||||||
*ptr=0;
|
*ptr=0;
|
||||||
puts(top_line);
|
puts(top_line);
|
||||||
|
|
||||||
for (i = 0 ; i < ex_var_count; i++)
|
for (i = 0 ; i < ex_var_count; i++)
|
||||||
{
|
{
|
||||||
uint sfx=1,j;
|
uint sfx=1,j;
|
||||||
|
@ -1,20 +1,19 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
|
||||||
#define MYSQL_CLIENT
|
#define MYSQL_CLIENT
|
||||||
#undef MYSQL_SERVER
|
#undef MYSQL_SERVER
|
||||||
#include "client_priv.h"
|
#include "client_priv.h"
|
||||||
@ -198,12 +197,12 @@ static int parse_args(int *argc, char*** argv)
|
|||||||
use_remote = 1;
|
use_remote = 1;
|
||||||
host = my_strdup(optarg, MYF(0));
|
host = my_strdup(optarg, MYF(0));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'P':
|
case 'P':
|
||||||
use_remote = 1;
|
use_remote = 1;
|
||||||
port = atoi(optarg);
|
port = atoi(optarg);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'p':
|
case 'p':
|
||||||
use_remote = 1;
|
use_remote = 1;
|
||||||
pass = my_strdup(optarg, MYF(0));
|
pass = my_strdup(optarg, MYF(0));
|
||||||
@ -269,13 +268,13 @@ static void dump_remote_table(NET* net, const char* db, const char* table)
|
|||||||
uint db_len = (uint) strlen(db);
|
uint db_len = (uint) strlen(db);
|
||||||
if(table_len + db_len > sizeof(buf) - 2)
|
if(table_len + db_len > sizeof(buf) - 2)
|
||||||
die("Buffer overrun");
|
die("Buffer overrun");
|
||||||
|
|
||||||
*p++ = db_len;
|
*p++ = db_len;
|
||||||
memcpy(p, db, db_len);
|
memcpy(p, db, db_len);
|
||||||
p += db_len;
|
p += db_len;
|
||||||
*p++ = table_len;
|
*p++ = table_len;
|
||||||
memcpy(p, table, table_len);
|
memcpy(p, table, table_len);
|
||||||
|
|
||||||
if(simple_command(mysql, COM_TABLE_DUMP, buf, p - buf + table_len, 1))
|
if(simple_command(mysql, COM_TABLE_DUMP, buf, p - buf + table_len, 1))
|
||||||
die("Error sending the table dump command");
|
die("Error sending the table dump command");
|
||||||
|
|
||||||
@ -296,7 +295,7 @@ static int check_master_version(MYSQL* mysql)
|
|||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
const char* version;
|
const char* version;
|
||||||
int old_format = 0;
|
int old_format = 0;
|
||||||
|
|
||||||
if (mysql_query(mysql, "SELECT VERSION()")
|
if (mysql_query(mysql, "SELECT VERSION()")
|
||||||
|| !(res = mysql_store_result(mysql)))
|
|| !(res = mysql_store_result(mysql)))
|
||||||
{
|
{
|
||||||
@ -317,7 +316,7 @@ static int check_master_version(MYSQL* mysql)
|
|||||||
mysql_close(mysql);
|
mysql_close(mysql);
|
||||||
die("Master reported NULL for the version");
|
die("Master reported NULL for the version");
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (*version)
|
switch (*version)
|
||||||
{
|
{
|
||||||
case '3':
|
case '3':
|
||||||
@ -345,7 +344,7 @@ static void dump_remote_log_entries(const char* logname)
|
|||||||
NET* net = &mysql->net;
|
NET* net = &mysql->net;
|
||||||
int old_format;
|
int old_format;
|
||||||
old_format = check_master_version(mysql);
|
old_format = check_master_version(mysql);
|
||||||
|
|
||||||
if(!position) position = 4; // protect the innocent from spam
|
if(!position) position = 4; // protect the innocent from spam
|
||||||
if (position < 4)
|
if (position < 4)
|
||||||
{
|
{
|
||||||
@ -360,7 +359,7 @@ static void dump_remote_log_entries(const char* logname)
|
|||||||
memcpy(buf + 10, logname,len);
|
memcpy(buf + 10, logname,len);
|
||||||
if (simple_command(mysql, COM_BINLOG_DUMP, buf, len + 10, 1))
|
if (simple_command(mysql, COM_BINLOG_DUMP, buf, len + 10, 1))
|
||||||
die("Error sending the log dump command");
|
die("Error sending the log dump command");
|
||||||
|
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
const char *error;
|
const char *error;
|
||||||
@ -390,7 +389,7 @@ static int check_header (IO_CACHE* file)
|
|||||||
{
|
{
|
||||||
char buf[PROBE_HEADER_LEN];
|
char buf[PROBE_HEADER_LEN];
|
||||||
int old_format;
|
int old_format;
|
||||||
|
|
||||||
my_off_t pos = my_b_tell(file);
|
my_off_t pos = my_b_tell(file);
|
||||||
my_b_seek(file, (my_off_t)0);
|
my_b_seek(file, (my_off_t)0);
|
||||||
if (my_b_read(file, buf, sizeof(buf)))
|
if (my_b_read(file, buf, sizeof(buf)))
|
||||||
@ -454,7 +453,7 @@ static void dump_local_log_entries(const char* logname)
|
|||||||
if(memcmp(magic, BINLOG_MAGIC, 4))
|
if(memcmp(magic, BINLOG_MAGIC, 4))
|
||||||
die("Bad magic number; The file is probably not a MySQL binary log");
|
die("Bad magic number; The file is probably not a MySQL binary log");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
char llbuff[21];
|
char llbuff[21];
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -198,7 +198,7 @@ printf("\
|
|||||||
print_defaults("my", load_default_groups);
|
print_defaults("my", load_default_groups);
|
||||||
} /* usage */
|
} /* usage */
|
||||||
|
|
||||||
|
|
||||||
static int get_options(int *argc, char ***argv)
|
static int get_options(int *argc, char ***argv)
|
||||||
{
|
{
|
||||||
int c, option_index;
|
int c, option_index;
|
||||||
@ -412,7 +412,7 @@ static int process_selected_tables(char *db, char **table_names, int tables)
|
|||||||
|
|
||||||
for (i = 0; i < tables; i++)
|
for (i = 0; i < tables; i++)
|
||||||
tot_length += strlen(*(table_names + i)) + 1;
|
tot_length += strlen(*(table_names + i)) + 1;
|
||||||
|
|
||||||
if (!(table_names_comma_sep = (char *)
|
if (!(table_names_comma_sep = (char *)
|
||||||
my_malloc((sizeof(char) * tot_length) + 1, MYF(MY_WME))))
|
my_malloc((sizeof(char) * tot_length) + 1, MYF(MY_WME))))
|
||||||
return 1;
|
return 1;
|
||||||
@ -445,7 +445,7 @@ static int process_all_tables_in_db(char *database)
|
|||||||
if (!(mysql_query(sock, "SHOW TABLES") ||
|
if (!(mysql_query(sock, "SHOW TABLES") ||
|
||||||
(res = mysql_store_result(sock))))
|
(res = mysql_store_result(sock))))
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if (opt_all_in_1)
|
if (opt_all_in_1)
|
||||||
{
|
{
|
||||||
char *tables, *end;
|
char *tables, *end;
|
||||||
@ -454,7 +454,7 @@ static int process_all_tables_in_db(char *database)
|
|||||||
while ((row = mysql_fetch_row(res)))
|
while ((row = mysql_fetch_row(res)))
|
||||||
tot_length += strlen(row[0]) + 1;
|
tot_length += strlen(row[0]) + 1;
|
||||||
mysql_data_seek(res, 0);
|
mysql_data_seek(res, 0);
|
||||||
|
|
||||||
if (!(tables=(char *) my_malloc(sizeof(char)*tot_length+1, MYF(MY_WME))))
|
if (!(tables=(char *) my_malloc(sizeof(char)*tot_length+1, MYF(MY_WME))))
|
||||||
{
|
{
|
||||||
mysql_free_result(res);
|
mysql_free_result(res);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -1158,7 +1158,7 @@ static void dumpTable(uint numFields, char *table)
|
|||||||
if (row_break && !opt_xml)
|
if (row_break && !opt_xml)
|
||||||
fputs(";\n", md_result_file);
|
fputs(";\n", md_result_file);
|
||||||
row_break=1; /* This is first row */
|
row_break=1; /* This is first row */
|
||||||
|
|
||||||
if (!opt_xml)
|
if (!opt_xml)
|
||||||
{
|
{
|
||||||
fputs(insert_pat,md_result_file);
|
fputs(insert_pat,md_result_file);
|
||||||
@ -1170,7 +1170,7 @@ static void dumpTable(uint numFields, char *table)
|
|||||||
else if (!opt_xml)
|
else if (!opt_xml)
|
||||||
fputs(");\n", md_result_file);
|
fputs(");\n", md_result_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
//XML - close table tag and supress regular output
|
//XML - close table tag and supress regular output
|
||||||
if (opt_xml)
|
if (opt_xml)
|
||||||
fprintf(md_result_file, "\t</%s>\n", table);
|
fprintf(md_result_file, "\t</%s>\n", table);
|
||||||
@ -1201,7 +1201,7 @@ static void dumpTable(uint numFields, char *table)
|
|||||||
static void print_quoted_xml(FILE *output, char *fname, char *str, uint len)
|
static void print_quoted_xml(FILE *output, char *fname, char *str, uint len)
|
||||||
{
|
{
|
||||||
const char *end;
|
const char *end;
|
||||||
|
|
||||||
fprintf(output, "\t\t<%s>", fname);
|
fprintf(output, "\t\t<%s>", fname);
|
||||||
for (end = str + len; str != end; str++)
|
for (end = str + len; str != end; str++)
|
||||||
{
|
{
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
@ -336,7 +336,7 @@ static int write_to_table(char *filename, MYSQL *sock)
|
|||||||
if (ignore)
|
if (ignore)
|
||||||
end= strmov(end, " IGNORE");
|
end= strmov(end, " IGNORE");
|
||||||
end= strmov(strmov(end, " INTO TABLE "), tablename);
|
end= strmov(strmov(end, " INTO TABLE "), tablename);
|
||||||
|
|
||||||
if (fields_terminated || enclosed || opt_enclosed || escaped)
|
if (fields_terminated || enclosed || opt_enclosed || escaped)
|
||||||
end= strmov(end, " FIELDS");
|
end= strmov(end, " FIELDS");
|
||||||
end= add_load_option(end, fields_terminated, " TERMINATED BY");
|
end= add_load_option(end, fields_terminated, " TERMINATED BY");
|
||||||
@ -482,7 +482,7 @@ static char *add_load_option(char *ptr, const char *object,
|
|||||||
** This is done by doubleing ' and add a end -\ if needed to avoid
|
** This is done by doubleing ' and add a end -\ if needed to avoid
|
||||||
** syntax errors from the SQL parser.
|
** syntax errors from the SQL parser.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static char *field_escape(char *to,const char *from,uint length)
|
static char *field_escape(char *to,const char *from,uint length)
|
||||||
{
|
{
|
||||||
const char *end;
|
const char *end;
|
||||||
@ -505,7 +505,7 @@ static char *field_escape(char *to,const char *from,uint length)
|
|||||||
*to++= '\\';
|
*to++= '\\';
|
||||||
return to;
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -135,12 +135,12 @@ int main(int argc, char** argv)
|
|||||||
uchar digest[16];
|
uchar digest[16];
|
||||||
char pw[17];
|
char pw[17];
|
||||||
uint i;
|
uint i;
|
||||||
|
|
||||||
MY_INIT(argv[0]);
|
MY_INIT(argv[0]);
|
||||||
parse_args(argc,argv);
|
parse_args(argc,argv);
|
||||||
if (!outfile)
|
if (!outfile)
|
||||||
die("Missing --output-file");
|
die("Missing --output-file");
|
||||||
|
|
||||||
if (!(fp=fopen(outfile,"w")))
|
if (!(fp=fopen(outfile,"w")))
|
||||||
die("Could not open '%s'(errno=%d)",outfile,errno);
|
die("Could not open '%s'(errno=%d)",outfile,errno);
|
||||||
get_pass(pw,sizeof(pw)-1);
|
get_pass(pw,sizeof(pw)-1);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -176,5 +176,3 @@ int main(int argc, char** argv)
|
|||||||
mysql_manager_close(manager);
|
mysql_manager_close(manager);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -295,7 +295,7 @@ static void do_eval(DYNAMIC_STRING* query_eval, const char* query)
|
|||||||
register char c;
|
register char c;
|
||||||
register int escaped = 0;
|
register int escaped = 0;
|
||||||
VAR* v;
|
VAR* v;
|
||||||
|
|
||||||
for(p = query; (c = *p); ++p)
|
for(p = query; (c = *p); ++p)
|
||||||
{
|
{
|
||||||
switch(c)
|
switch(c)
|
||||||
@ -364,7 +364,7 @@ static void free_used_memory()
|
|||||||
close_cons();
|
close_cons();
|
||||||
close_files();
|
close_files();
|
||||||
hash_free(&var_hash);
|
hash_free(&var_hash);
|
||||||
|
|
||||||
for (i=0 ; i < q_lines.elements ; i++)
|
for (i=0 ; i < q_lines.elements ; i++)
|
||||||
{
|
{
|
||||||
struct st_query **q= dynamic_element(&q_lines, i, struct st_query**);
|
struct st_query **q= dynamic_element(&q_lines, i, struct st_query**);
|
||||||
@ -496,18 +496,18 @@ int dyn_string_cmp(DYNAMIC_STRING* ds, const char* fname)
|
|||||||
res_ptr = tmp;
|
res_ptr = tmp;
|
||||||
res_len = stat_info.st_size;
|
res_len = stat_info.st_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = (memcmp(res_ptr, ds->str, res_len)) ? 1 : 0;
|
res = (memcmp(res_ptr, ds->str, res_len)) ? 1 : 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
if(res && eval_result)
|
if(res && eval_result)
|
||||||
str_to_file(fn_format(eval_file, fname, "", ".eval",2), res_ptr,
|
str_to_file(fn_format(eval_file, fname, "", ".eval",2), res_ptr,
|
||||||
res_len);
|
res_len);
|
||||||
|
|
||||||
my_free((gptr) tmp, MYF(0));
|
my_free((gptr) tmp, MYF(0));
|
||||||
my_close(fd, MYF(MY_WME));
|
my_close(fd, MYF(MY_WME));
|
||||||
dynstr_free(&res_ds);
|
dynstr_free(&res_ds);
|
||||||
|
|
||||||
DBUG_RETURN(res);
|
DBUG_RETURN(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -561,7 +561,7 @@ VAR* var_get(const char* var_name, const char** var_name_end, int raw)
|
|||||||
}
|
}
|
||||||
if(var_name == save_var_name)
|
if(var_name == save_var_name)
|
||||||
die("Empty variable");
|
die("Empty variable");
|
||||||
|
|
||||||
if(!(v = (VAR*)hash_search(&var_hash, save_var_name,
|
if(!(v = (VAR*)hash_search(&var_hash, save_var_name,
|
||||||
var_name - save_var_name)))
|
var_name - save_var_name)))
|
||||||
{
|
{
|
||||||
@ -573,7 +573,7 @@ VAR* var_get(const char* var_name, const char** var_name_end, int raw)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
v = var_reg + digit;
|
v = var_reg + digit;
|
||||||
|
|
||||||
if (!raw && v->int_dirty)
|
if (!raw && v->int_dirty)
|
||||||
{
|
{
|
||||||
sprintf(v->str_val, "%d", v->int_val);
|
sprintf(v->str_val, "%d", v->int_val);
|
||||||
@ -618,7 +618,7 @@ int var_set(char* var_name, char* var_name_end, char* var_val,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
v = var_reg + digit;
|
v = var_reg + digit;
|
||||||
|
|
||||||
return eval_expr(v, var_val, (const char**)&var_val_end);
|
return eval_expr(v, var_val, (const char**)&var_val_end);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -713,7 +713,7 @@ int var_query_set(VAR* v, const char* p, const char** p_end)
|
|||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
MYSQL* mysql = &cur_con->mysql;
|
MYSQL* mysql = &cur_con->mysql;
|
||||||
LINT_INIT(res);
|
LINT_INIT(res);
|
||||||
|
|
||||||
while (end > p && *end != '`')
|
while (end > p && *end != '`')
|
||||||
--end;
|
--end;
|
||||||
if (p == end)
|
if (p == end)
|
||||||
@ -860,10 +860,10 @@ int do_sync_with_master(struct st_query* q)
|
|||||||
|
|
||||||
rpl_parse = mysql_rpl_parse_enabled(mysql);
|
rpl_parse = mysql_rpl_parse_enabled(mysql);
|
||||||
mysql_disable_rpl_parse(mysql);
|
mysql_disable_rpl_parse(mysql);
|
||||||
|
|
||||||
if(*p)
|
if(*p)
|
||||||
offset = atoi(p);
|
offset = atoi(p);
|
||||||
|
|
||||||
sprintf(query_buf, "select master_pos_wait('%s', %ld)", master_pos.file,
|
sprintf(query_buf, "select master_pos_wait('%s', %ld)", master_pos.file,
|
||||||
master_pos.pos + offset);
|
master_pos.pos + offset);
|
||||||
if(mysql_query(mysql, query_buf))
|
if(mysql_query(mysql, query_buf))
|
||||||
@ -879,7 +879,7 @@ int do_sync_with_master(struct st_query* q)
|
|||||||
mysql_free_result(res); last_result=0;
|
mysql_free_result(res); last_result=0;
|
||||||
if(rpl_parse)
|
if(rpl_parse)
|
||||||
mysql_enable_rpl_parse(mysql);
|
mysql_enable_rpl_parse(mysql);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -892,7 +892,7 @@ int do_save_master_pos()
|
|||||||
|
|
||||||
rpl_parse = mysql_rpl_parse_enabled(mysql);
|
rpl_parse = mysql_rpl_parse_enabled(mysql);
|
||||||
mysql_disable_rpl_parse(mysql);
|
mysql_disable_rpl_parse(mysql);
|
||||||
|
|
||||||
if(mysql_query(mysql, "show master status"))
|
if(mysql_query(mysql, "show master status"))
|
||||||
die("At line %u: failed in show master status: %d: %s", start_lineno,
|
die("At line %u: failed in show master status: %d: %s", start_lineno,
|
||||||
mysql_errno(mysql), mysql_error(mysql));
|
mysql_errno(mysql), mysql_error(mysql));
|
||||||
@ -904,10 +904,10 @@ int do_save_master_pos()
|
|||||||
strncpy(master_pos.file, row[0], sizeof(master_pos.file));
|
strncpy(master_pos.file, row[0], sizeof(master_pos.file));
|
||||||
master_pos.pos = strtoul(row[1], (char**) 0, 10);
|
master_pos.pos = strtoul(row[1], (char**) 0, 10);
|
||||||
mysql_free_result(res); last_result=0;
|
mysql_free_result(res); last_result=0;
|
||||||
|
|
||||||
if(rpl_parse)
|
if(rpl_parse)
|
||||||
mysql_enable_rpl_parse(mysql);
|
mysql_enable_rpl_parse(mysql);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1207,7 +1207,7 @@ int close_connection(struct st_query* q)
|
|||||||
con->mysql.net.vio = 0;
|
con->mysql.net.vio = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_close(&con->mysql);
|
mysql_close(&con->mysql);
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
}
|
}
|
||||||
@ -1281,7 +1281,7 @@ int do_connect(struct st_query* q)
|
|||||||
int con_port;
|
int con_port;
|
||||||
int con_error;
|
int con_error;
|
||||||
int free_con_sock = 0;
|
int free_con_sock = 0;
|
||||||
|
|
||||||
DBUG_ENTER("do_connect");
|
DBUG_ENTER("do_connect");
|
||||||
DBUG_PRINT("enter",("connect: %s",p));
|
DBUG_PRINT("enter",("connect: %s",p));
|
||||||
|
|
||||||
@ -1322,7 +1322,7 @@ int do_connect(struct st_query* q)
|
|||||||
con_sock[var_sock->str_val_len] = 0;
|
con_sock[var_sock->str_val_len] = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (next_con == cons_end)
|
if (next_con == cons_end)
|
||||||
die("Connection limit exhausted - increase MAX_CONS in mysqltest.c");
|
die("Connection limit exhausted - increase MAX_CONS in mysqltest.c");
|
||||||
|
|
||||||
@ -1379,7 +1379,7 @@ int do_while(struct st_query* q)
|
|||||||
*cur_block++ = parser.current_line++;
|
*cur_block++ = parser.current_line++;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
expr_start = strchr(p, '(');
|
expr_start = strchr(p, '(');
|
||||||
if (!expr_start)
|
if (!expr_start)
|
||||||
die("missing '(' in while");
|
die("missing '(' in while");
|
||||||
@ -1907,7 +1907,7 @@ void str_to_file(const char* fname, char* str, int size)
|
|||||||
fname=buff;
|
fname=buff;
|
||||||
}
|
}
|
||||||
fn_format(buff,fname,"","",4);
|
fn_format(buff,fname,"","",4);
|
||||||
|
|
||||||
if ((fd = my_open(buff, O_WRONLY | O_CREAT | O_TRUNC,
|
if ((fd = my_open(buff, O_WRONLY | O_CREAT | O_TRUNC,
|
||||||
MYF(MY_WME | MY_FFNF))) < 0)
|
MYF(MY_WME | MY_FFNF))) < 0)
|
||||||
die("Could not open %s: errno = %d", buff, errno);
|
die("Could not open %s: errno = %d", buff, errno);
|
||||||
@ -1972,7 +1972,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
|
|||||||
query = eval_query.str;
|
query = eval_query.str;
|
||||||
query_len = eval_query.length;
|
query_len = eval_query.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( q->record_file[0])
|
if ( q->record_file[0])
|
||||||
{
|
{
|
||||||
init_dynamic_string(&ds_tmp, "", 16384, 65536);
|
init_dynamic_string(&ds_tmp, "", 16384, 65536);
|
||||||
@ -1980,7 +1980,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
ds= &ds_res;
|
ds= &ds_res;
|
||||||
|
|
||||||
if ((flags & QUERY_SEND) && mysql_send_query(mysql, query, query_len))
|
if ((flags & QUERY_SEND) && mysql_send_query(mysql, query, query_len))
|
||||||
die("At line %u: unable to send query '%s'(mysql_errno=%d,errno=%d)",
|
die("At line %u: unable to send query '%s'(mysql_errno=%d,errno=%d)",
|
||||||
start_lineno, query,
|
start_lineno, query,
|
||||||
@ -1992,7 +1992,7 @@ int run_query(MYSQL* mysql, struct st_query* q, int flags)
|
|||||||
}
|
}
|
||||||
if (!(flags & QUERY_REAP))
|
if (!(flags & QUERY_REAP))
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
|
|
||||||
if (mysql_read_query_result(mysql) ||
|
if (mysql_read_query_result(mysql) ||
|
||||||
(!(last_result = res = mysql_store_result(mysql)) &&
|
(!(last_result = res = mysql_store_result(mysql)) &&
|
||||||
mysql_field_count(mysql)))
|
mysql_field_count(mysql)))
|
||||||
@ -2163,13 +2163,13 @@ static VAR* var_init(VAR* v, const char* name, int name_len, const char* val,
|
|||||||
if(!(tmp_var=v) && !(tmp_var = (VAR*)my_malloc(sizeof(*tmp_var)
|
if(!(tmp_var=v) && !(tmp_var = (VAR*)my_malloc(sizeof(*tmp_var)
|
||||||
+ name_len, MYF(MY_WME))))
|
+ name_len, MYF(MY_WME))))
|
||||||
die("Out of memory");
|
die("Out of memory");
|
||||||
|
|
||||||
tmp_var->name = (name) ? (char*)tmp_var + sizeof(*tmp_var) : 0;
|
tmp_var->name = (name) ? (char*)tmp_var + sizeof(*tmp_var) : 0;
|
||||||
tmp_var->alloced = (v == 0);
|
tmp_var->alloced = (v == 0);
|
||||||
|
|
||||||
if(!(tmp_var->str_val = my_malloc(val_alloc_len, MYF(MY_WME))))
|
if(!(tmp_var->str_val = my_malloc(val_alloc_len, MYF(MY_WME))))
|
||||||
die("Out of memory");
|
die("Out of memory");
|
||||||
|
|
||||||
memcpy(tmp_var->name, name, name_len);
|
memcpy(tmp_var->name, name, name_len);
|
||||||
if(val)
|
if(val)
|
||||||
memcpy(tmp_var->str_val, val, val_len + 1);
|
memcpy(tmp_var->str_val, val, val_len + 1);
|
||||||
@ -2195,7 +2195,7 @@ static void var_from_env(const char* name, const char* def_val)
|
|||||||
VAR* v;
|
VAR* v;
|
||||||
if(!(tmp = getenv(name)))
|
if(!(tmp = getenv(name)))
|
||||||
tmp = def_val;
|
tmp = def_val;
|
||||||
|
|
||||||
v = var_init(0, name, 0, tmp, 0);
|
v = var_init(0, name, 0, tmp, 0);
|
||||||
hash_insert(&var_hash, (byte*)v);
|
hash_insert(&var_hash, (byte*)v);
|
||||||
}
|
}
|
||||||
@ -2232,7 +2232,7 @@ int main(int argc, char** argv)
|
|||||||
cons_end = cons + MAX_CONS;
|
cons_end = cons + MAX_CONS;
|
||||||
next_con = cons + 1;
|
next_con = cons + 1;
|
||||||
cur_con = cons;
|
cur_con = cons;
|
||||||
|
|
||||||
memset(file_stack, 0, sizeof(file_stack));
|
memset(file_stack, 0, sizeof(file_stack));
|
||||||
memset(&master_pos, 0, sizeof(master_pos));
|
memset(&master_pos, 0, sizeof(master_pos));
|
||||||
file_stack_end = file_stack + MAX_INCLUDE_DEPTH;
|
file_stack_end = file_stack + MAX_INCLUDE_DEPTH;
|
||||||
@ -2268,7 +2268,7 @@ int main(int argc, char** argv)
|
|||||||
cur_con->name = my_strdup("default", MYF(MY_WME));
|
cur_con->name = my_strdup("default", MYF(MY_WME));
|
||||||
if (!cur_con->name)
|
if (!cur_con->name)
|
||||||
die("Out of memory");
|
die("Out of memory");
|
||||||
|
|
||||||
if (safe_connect(&cur_con->mysql, host,
|
if (safe_connect(&cur_con->mysql, host,
|
||||||
user, pass, db, port, unix_sock))
|
user, pass, db, port, unix_sock))
|
||||||
die("Failed in mysql_real_connect(): %s", mysql_error(&cur_con->mysql));
|
die("Failed in mysql_real_connect(): %s", mysql_error(&cur_con->mysql));
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* password checking routines */
|
/* password checking routines */
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* readline for batch mode */
|
/* readline for batch mode */
|
||||||
|
|
||||||
|
@ -1,20 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 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; 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 */
|
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
@ -1,34 +1,20 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 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; 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 */
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WIN__
|
#ifdef __WIN__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program file is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file is originally from the mysql distribution. Coded by monty */
|
/* This file is originally from the mysql distribution. Coded by monty */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file is originally from the mysql distribution. Coded by monty */
|
/* This file is originally from the mysql distribution. Coded by monty */
|
||||||
|
|
||||||
|
@ -1,34 +1,20 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 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; 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 */
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WIN__
|
#ifdef __WIN__
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -89,5 +105,3 @@ static void *be_stern(void *v __attribute__((unused)))
|
|||||||
fputs("You are NOTHING!\n", stderr);
|
fputs("You are NOTHING!\n", stderr);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#include <my_global.h>
|
#include <my_global.h>
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
@ -126,7 +126,7 @@ static void permute_aux(int *order, int num_queries, int* fixed)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*printf("num_free = %d\n", num_free); */
|
/*printf("num_free = %d\n", num_free); */
|
||||||
|
|
||||||
if(num_free <= 1)
|
if(num_free <= 1)
|
||||||
{
|
{
|
||||||
count++;
|
count++;
|
||||||
@ -156,7 +156,7 @@ static void run_query_batch(int* order, int num_queries)
|
|||||||
dump_result(q->mysql, q->query);
|
dump_result(q->mysql, q->query);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void safe_net_read(NET* net, char* query)
|
static void safe_net_read(NET* net, char* query)
|
||||||
@ -167,8 +167,8 @@ static void safe_net_read(NET* net, char* query)
|
|||||||
die("Error running query '%s'", query);
|
die("Error running query '%s'", query);
|
||||||
if(net->read_pos[0] == 255)
|
if(net->read_pos[0] == 255)
|
||||||
die("Error running query '%s'", query);
|
die("Error running query '%s'", query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void safe_query(MYSQL* mysql, char* query, int read_ok)
|
static void safe_query(MYSQL* mysql, char* query, int read_ok)
|
||||||
{
|
{
|
||||||
@ -230,7 +230,7 @@ int main()
|
|||||||
|
|
||||||
permute(order, num_queries);
|
permute(order, num_queries);
|
||||||
printf("count = %d\n", count);
|
printf("count = %d\n", count);
|
||||||
|
|
||||||
mysql_close(&lock);
|
mysql_close(&lock);
|
||||||
mysql_close(&sel);
|
mysql_close(&sel);
|
||||||
mysql_close(&del_ins);
|
mysql_close(&del_ins);
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Saves all errmesg in a header file, updated by me, in a compact file */
|
/* Saves all errmesg in a header file, updated by me, in a compact file */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** print_default.c:
|
** print_default.c:
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Return error-text for system error messages and nisam messages */
|
/* Return error-text for system error messages and nisam messages */
|
||||||
|
|
||||||
@ -111,7 +110,7 @@ static void usage(void)
|
|||||||
-s, --silent Only print the error message\n\
|
-s, --silent Only print the error message\n\
|
||||||
-v, --verbose Print error code and message (default).\n\
|
-v, --verbose Print error code and message (default).\n\
|
||||||
-V, --version Displays version information and exits.\n");
|
-V, --version Displays version information and exits.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int get_options(int *argc,char ***argv)
|
static int get_options(int *argc,char ***argv)
|
||||||
@ -231,4 +230,3 @@ int main(int argc,char *argv[])
|
|||||||
exit(error);
|
exit(error);
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Replace strings in textfile
|
/* Replace strings in textfile
|
||||||
This program replace strings in a file or on stdin/stdout.
|
This program replace strings in a file or on stdin/stdout.
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Resolve numeric stack dump produced by mysqld 3.23.30 and later
|
/* Resolve numeric stack dump produced by mysqld 3.23.30 and later
|
||||||
versions into symbolic names. By Sasha Pachev <sasha@mysql.com>
|
versions into symbolic names. By Sasha Pachev <sasha@mysql.com>
|
||||||
@ -162,7 +161,7 @@ static void open_files()
|
|||||||
{
|
{
|
||||||
fp_out = stdout;
|
fp_out = stdout;
|
||||||
fp_dump = stdin;
|
fp_dump = stdin;
|
||||||
|
|
||||||
if(dump_fname && !(fp_dump = my_fopen(dump_fname, O_RDONLY, MYF(MY_WME))))
|
if(dump_fname && !(fp_dump = my_fopen(dump_fname, O_RDONLY, MYF(MY_WME))))
|
||||||
die("Could not open %s", dump_fname);
|
die("Could not open %s", dump_fname);
|
||||||
/* if name not given, assume stdin*/
|
/* if name not given, assume stdin*/
|
||||||
@ -172,7 +171,7 @@ static void open_files()
|
|||||||
trace dump and specify the path to it with -s or --symbols-file");
|
trace dump and specify the path to it with -s or --symbols-file");
|
||||||
if(!(fp_sym = my_fopen(sym_fname, O_RDONLY, MYF(MY_WME))))
|
if(!(fp_sym = my_fopen(sym_fname, O_RDONLY, MYF(MY_WME))))
|
||||||
die("Could not open %s", sym_fname);
|
die("Could not open %s", sym_fname);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static uchar hex_val(char c)
|
static uchar hex_val(char c)
|
||||||
@ -191,10 +190,10 @@ static my_long_addr_t read_addr(char** buf)
|
|||||||
uchar c;
|
uchar c;
|
||||||
char* p = *buf;
|
char* p = *buf;
|
||||||
my_long_addr_t addr = 0;
|
my_long_addr_t addr = 0;
|
||||||
|
|
||||||
while((c = hex_val(*p++)) != HEX_INVALID)
|
while((c = hex_val(*p++)) != HEX_INVALID)
|
||||||
addr = (addr << 4) + c;
|
addr = (addr << 4) + c;
|
||||||
|
|
||||||
*buf = p;
|
*buf = p;
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
@ -208,7 +207,7 @@ static int init_sym_entry(SYM_ENTRY* se, char* buf)
|
|||||||
return -1;
|
return -1;
|
||||||
while(isspace(*buf++))
|
while(isspace(*buf++))
|
||||||
/* empty */;
|
/* empty */;
|
||||||
|
|
||||||
while(isspace(*buf++))
|
while(isspace(*buf++))
|
||||||
/* empty - skip more space */;
|
/* empty - skip more space */;
|
||||||
--buf;
|
--buf;
|
||||||
@ -255,7 +254,7 @@ static void verify_sort()
|
|||||||
{
|
{
|
||||||
uint i;
|
uint i;
|
||||||
uchar* last = 0;
|
uchar* last = 0;
|
||||||
|
|
||||||
for(i = 0; i < sym_table.elements; i++)
|
for(i = 0; i < sym_table.elements; i++)
|
||||||
{
|
{
|
||||||
SYM_ENTRY se;
|
SYM_ENTRY se;
|
||||||
@ -273,7 +272,7 @@ static SYM_ENTRY* resolve_addr(uchar* addr, SYM_ENTRY* se)
|
|||||||
get_dynamic(&sym_table, (gptr)se, 0);
|
get_dynamic(&sym_table, (gptr)se, 0);
|
||||||
if(addr < se->addr)
|
if(addr < se->addr)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for(i = 1; i < sym_table.elements; i++)
|
for(i = 1; i < sym_table.elements; i++)
|
||||||
{
|
{
|
||||||
get_dynamic(&sym_table, (gptr)se, i);
|
get_dynamic(&sym_table, (gptr)se, i);
|
||||||
@ -296,7 +295,7 @@ static void do_resolve()
|
|||||||
while(isspace(*p))
|
while(isspace(*p))
|
||||||
++p;
|
++p;
|
||||||
/* skip space */;
|
/* skip space */;
|
||||||
|
|
||||||
if(*p++ == '0' && *p++ == 'x')
|
if(*p++ == '0' && *p++ == 'x')
|
||||||
{
|
{
|
||||||
SYM_ENTRY se ;
|
SYM_ENTRY se ;
|
||||||
@ -306,7 +305,7 @@ static void do_resolve()
|
|||||||
(int) (addr - se.addr));
|
(int) (addr - se.addr));
|
||||||
else
|
else
|
||||||
fprintf(fp_out, "%p (?)\n", addr);
|
fprintf(fp_out, "%p (?)\n", addr);
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -326,4 +325,3 @@ int main(int argc, char** argv)
|
|||||||
clean_up();
|
clean_up();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,24 +1,23 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Resolves IP's to hostname and hostnames to IP's */
|
/* Resolves IP's to hostname and hostnames to IP's */
|
||||||
|
|
||||||
#define RESOLVE_VERSION "2.0"
|
#define RESOLVE_VERSION "2.0"
|
||||||
|
|
||||||
#include <my_global.h>
|
#include <my_global.h>
|
||||||
#include <m_ctype.h>
|
#include <m_ctype.h>
|
||||||
#include <my_net.h>
|
#include <my_net.h>
|
||||||
@ -55,7 +54,7 @@ static void print_version(void)
|
|||||||
{
|
{
|
||||||
printf("%s Ver %s, for %s (%s)\n",my_progname,RESOLVE_VERSION,
|
printf("%s Ver %s, for %s (%s)\n",my_progname,RESOLVE_VERSION,
|
||||||
SYSTEM_TYPE,MACHINE_TYPE);
|
SYSTEM_TYPE,MACHINE_TYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
@ -141,7 +140,7 @@ int main(int argc, char **argv)
|
|||||||
puts("Old-Bcast");
|
puts("Old-Bcast");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
hpaddr = gethostbyaddr((char*) &(taddr), sizeof(struct in_addr),AF_INET);
|
hpaddr = gethostbyaddr((char*) &(taddr), sizeof(struct in_addr),AF_INET);
|
||||||
if (hpaddr)
|
if (hpaddr)
|
||||||
{
|
{
|
||||||
@ -203,6 +202,3 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
exit(error);
|
exit(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ void db_show_result(MYSQL* sock, char *b, struct format *f)
|
|||||||
|
|
||||||
buffptr=b;
|
buffptr=b;
|
||||||
OUTPUT(f->tablestart)
|
OUTPUT(f->tablestart)
|
||||||
|
|
||||||
OUTPUT_TOP(f->leftuppercorner);
|
OUTPUT_TOP(f->leftuppercorner);
|
||||||
OUTPUT_MIDDLE(f->leftcross);
|
OUTPUT_MIDDLE(f->leftcross);
|
||||||
OUTPUT_BOTTOM(f->leftdowncorner);
|
OUTPUT_BOTTOM(f->leftdowncorner);
|
||||||
@ -136,7 +136,7 @@ void db_show_result(MYSQL* sock, char *b, struct format *f)
|
|||||||
|
|
||||||
sprintf(hdrptr,"%-*s",field->max_length,field->name);
|
sprintf(hdrptr,"%-*s",field->max_length,field->name);
|
||||||
//num_flag[off]= IS_NUM(field->type);
|
//num_flag[off]= IS_NUM(field->type);
|
||||||
|
|
||||||
topptr+=field->max_length;
|
topptr+=field->max_length;
|
||||||
midptr+=field->max_length;
|
midptr+=field->max_length;
|
||||||
botptr+=field->max_length;
|
botptr+=field->max_length;
|
||||||
@ -161,7 +161,7 @@ void db_show_result(MYSQL* sock, char *b, struct format *f)
|
|||||||
OUTPUT(middleseparator);
|
OUTPUT(middleseparator);
|
||||||
while(row=mysql_fetch_row(result)) {
|
while(row=mysql_fetch_row(result)) {
|
||||||
mysql_field_seek(result,0);
|
mysql_field_seek(result,0);
|
||||||
|
|
||||||
OUTPUT(f->contentrowstart);
|
OUTPUT(f->contentrowstart);
|
||||||
for(i=0 ; i < mysql_field_count(sock); ++i) {
|
for(i=0 ; i < mysql_field_count(sock); ++i) {
|
||||||
field = mysql_fetch_field(result);
|
field = mysql_fetch_field(result);
|
||||||
@ -242,7 +242,7 @@ int db_show_field(char *b,const char *database,const char *table, const char *fi
|
|||||||
/* We cant output fields when one of these variables is missing */
|
/* We cant output fields when one of these variables is missing */
|
||||||
if (!(database[0] && table[0] && field[0]))
|
if (!(database[0] && table[0] && field[0]))
|
||||||
DBUG_RETURN(-1);
|
DBUG_RETURN(-1);
|
||||||
|
|
||||||
init_dynamic_array(&field_array, sizeof(buff), 4096, 1024);
|
init_dynamic_array(&field_array, sizeof(buff), 4096, 1024);
|
||||||
|
|
||||||
if (mysql_select_db(sock,database))
|
if (mysql_select_db(sock,database))
|
||||||
@ -459,7 +459,7 @@ db_show_databases(char *b,int size)
|
|||||||
MYSQL_ROW row;
|
MYSQL_ROW row;
|
||||||
char buff[BUFLEN];
|
char buff[BUFLEN];
|
||||||
int i=0;
|
int i=0;
|
||||||
|
|
||||||
DBUG_ENTER("db_show_databases");
|
DBUG_ENTER("db_show_databases");
|
||||||
DBUG_PRINT("enter",("buffer: '%s', size: '%d'", b, size));
|
DBUG_PRINT("enter",("buffer: '%s', size: '%d'", b, size));
|
||||||
result=mysql_list_dbs(sock,NULL);
|
result=mysql_list_dbs(sock,NULL);
|
||||||
@ -481,7 +481,7 @@ void db_load_formats()
|
|||||||
|
|
||||||
/* HTML output */
|
/* HTML output */
|
||||||
HTML.tablestart="<table>\n";
|
HTML.tablestart="<table>\n";
|
||||||
|
|
||||||
HTML.headerrowstart="<tr>";
|
HTML.headerrowstart="<tr>";
|
||||||
HTML.headercellstart="<th>";
|
HTML.headercellstart="<th>";
|
||||||
HTML.headercellseparator="</th><th>";
|
HTML.headercellseparator="</th><th>";
|
||||||
@ -499,7 +499,7 @@ void db_load_formats()
|
|||||||
HTML.leftcross="";
|
HTML.leftcross="";
|
||||||
HTML.rightcross="";
|
HTML.rightcross="";
|
||||||
HTML.bottomcross="";
|
HTML.bottomcross="";
|
||||||
|
|
||||||
HTML.contentrowstart="<tr>";
|
HTML.contentrowstart="<tr>";
|
||||||
HTML.contentcellstart="<td>";
|
HTML.contentcellstart="<td>";
|
||||||
HTML.contentcellseparator="</td><td>";
|
HTML.contentcellseparator="</td><td>";
|
||||||
@ -517,16 +517,16 @@ void db_load_formats()
|
|||||||
HTML.tableend="</table>\n";
|
HTML.tableend="</table>\n";
|
||||||
|
|
||||||
/* Nice to look mysql client like output */
|
/* Nice to look mysql client like output */
|
||||||
|
|
||||||
Human.tablestart="\n";
|
Human.tablestart="\n";
|
||||||
|
|
||||||
Human.headerrowstart="| ";
|
Human.headerrowstart="| ";
|
||||||
Human.headercellstart="";
|
Human.headercellstart="";
|
||||||
Human.headercellseparator=" | ";
|
Human.headercellseparator=" | ";
|
||||||
Human.headercellend=" |";
|
Human.headercellend=" |";
|
||||||
Human.headerrowend="\n";
|
Human.headerrowend="\n";
|
||||||
Human.headerformat=1;
|
Human.headerformat=1;
|
||||||
|
|
||||||
Human.leftuppercorner="/=";
|
Human.leftuppercorner="/=";
|
||||||
Human.rightuppercorner="=\\\n";
|
Human.rightuppercorner="=\\\n";
|
||||||
Human.leftdowncorner="\\=";
|
Human.leftdowncorner="\\=";
|
||||||
@ -554,9 +554,9 @@ void db_load_formats()
|
|||||||
Human.tableend="\n";
|
Human.tableend="\n";
|
||||||
|
|
||||||
/* Comma-separated format. For machine reading */
|
/* Comma-separated format. For machine reading */
|
||||||
|
|
||||||
/* XML */
|
/* XML */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
tee_fprintf(PAGER,"<?xml version=\"1.0\"?>\n\n<resultset statement=\"%s\">", statement);
|
tee_fprintf(PAGER,"<?xml version=\"1.0\"?>\n\n<resultset statement=\"%s\">", statement);
|
||||||
(void) tee_fputs("\n <row>\n", PAGER);
|
(void) tee_fputs("\n <row>\n", PAGER);
|
||||||
@ -626,4 +626,3 @@ gptr db_load_functions()
|
|||||||
}
|
}
|
||||||
DBUG_RETURN((gptr)&functions_array);
|
DBUG_RETURN((gptr)&functions_array);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,7 +141,7 @@ int parse(const char * path, char *server, char * database, char *table,
|
|||||||
if(*funce) *server='\0';
|
if(*funce) *server='\0';
|
||||||
} else
|
} else
|
||||||
*funce=NULL;
|
*funce=NULL;
|
||||||
|
|
||||||
DBUG_PRINT("info",("path: '%s', server: '%s', db: '%s', table: '%s', field: '%s', value: '%s', function: '%x'",
|
DBUG_PRINT("info",("path: '%s', server: '%s', db: '%s', table: '%s', field: '%s', value: '%s', function: '%x'",
|
||||||
buffer, server, database, table, field, value, funce ));
|
buffer, server, database, table, field, value, funce ));
|
||||||
if(p && *p) /* Something is in buffer - too deep in levels */
|
if(p && *p) /* Something is in buffer - too deep in levels */
|
||||||
@ -149,5 +149,3 @@ int parse(const char * path, char *server, char * database, char *table,
|
|||||||
else
|
else
|
||||||
DBUG_RETURN(0)
|
DBUG_RETURN(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ static my_bool verbose=0,opt_compress=0,extended_insert=0, lock_tables=0,
|
|||||||
opt_quoted=0, opt_lock=0, opt_delayed=0, ignore_errors=0;
|
opt_quoted=0, opt_lock=0, opt_delayed=0, ignore_errors=0;
|
||||||
|
|
||||||
gptr fptr;
|
gptr fptr;
|
||||||
|
|
||||||
static const char *load_default_groups[]= { "mysqlcorbafs","client",0 };
|
static const char *load_default_groups[]= { "mysqlcorbafs","client",0 };
|
||||||
static char *default_charset, *current_host, *current_user, *opt_password,
|
static char *default_charset, *current_host, *current_user, *opt_password,
|
||||||
*path,*fields_terminated=0, *lines_terminated=0, *enclosed=0,
|
*path,*fields_terminated=0, *lines_terminated=0, *enclosed=0,
|
||||||
@ -314,7 +314,7 @@ char *field_escape(char *to,const char *from,uint length)
|
|||||||
const char *end;
|
const char *end;
|
||||||
uint end_backslashes=0;
|
uint end_backslashes=0;
|
||||||
DBUG_ENTER("field_escape");
|
DBUG_ENTER("field_escape");
|
||||||
|
|
||||||
{
|
{
|
||||||
*to++= *from;
|
*to++= *from;
|
||||||
if (*from == '\\')
|
if (*from == '\\')
|
||||||
@ -442,7 +442,7 @@ static int get_options(int *argc,char ***argv)
|
|||||||
case OPT_CHARSETS_DIR:
|
case OPT_CHARSETS_DIR:
|
||||||
charsets_dir= optarg;
|
charsets_dir= optarg;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
ignore_errors=1;
|
ignore_errors=1;
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
@ -652,7 +652,7 @@ impl_Inode_getStatus(impl_POA_CorbaFS_Inode * servant,
|
|||||||
key[BUFLEN],
|
key[BUFLEN],
|
||||||
field[BUFLEN],
|
field[BUFLEN],
|
||||||
value[BUFLEN];
|
value[BUFLEN];
|
||||||
|
|
||||||
struct func_st *func;
|
struct func_st *func;
|
||||||
|
|
||||||
DBUG_ENTER("impl_Inode_getStatus");
|
DBUG_ENTER("impl_Inode_getStatus");
|
||||||
@ -675,7 +675,7 @@ impl_Inode_getStatus(impl_POA_CorbaFS_Inode * servant,
|
|||||||
DBUG_PRINT("info",("Argument is directory, returning S_IFDIR"));
|
DBUG_PRINT("info",("Argument is directory, returning S_IFDIR"));
|
||||||
*mode = S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH ; // Dir
|
*mode = S_IFDIR | S_IXUSR | S_IXGRP | S_IXOTH ; // Dir
|
||||||
}
|
}
|
||||||
|
|
||||||
*mode |= S_IRUSR | S_IRGRP | S_IROTH;
|
*mode |= S_IRUSR | S_IRGRP | S_IROTH;
|
||||||
*uid = 0;
|
*uid = 0;
|
||||||
*gid = 0;
|
*gid = 0;
|
||||||
@ -685,7 +685,7 @@ impl_Inode_getStatus(impl_POA_CorbaFS_Inode * servant,
|
|||||||
*atime = 3;
|
*atime = 3;
|
||||||
*mtime = 2;
|
*mtime = 2;
|
||||||
*ctime = 1;
|
*ctime = 1;
|
||||||
|
|
||||||
// lstat(servant->path, &buf);
|
// lstat(servant->path, &buf);
|
||||||
// *mode = buf.st_mode;
|
// *mode = buf.st_mode;
|
||||||
/* *uid = buf.st_uid;
|
/* *uid = buf.st_uid;
|
||||||
@ -922,7 +922,7 @@ impl_FileSystem_readlink(impl_POA_CorbaFS_FileSystem * servant,
|
|||||||
CORBA_char *retval = CORBA_OBJECT_NIL;
|
CORBA_char *retval = CORBA_OBJECT_NIL;
|
||||||
char tmp[MAXPATHLEN + 1];
|
char tmp[MAXPATHLEN + 1];
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
DBUG_ENTER("impl_FileSystem_readlink");
|
DBUG_ENTER("impl_FileSystem_readlink");
|
||||||
DBUG_PRINT("enter",("path: '%s'", filename));
|
DBUG_PRINT("enter",("path: '%s'", filename));
|
||||||
|
|
||||||
@ -989,4 +989,3 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,7 +153,5 @@ static struct format {
|
|||||||
char *middlecross;
|
char *middlecross;
|
||||||
char *bottomcross;
|
char *bottomcross;
|
||||||
|
|
||||||
|
|
||||||
} Human, HTML, CSF, XML;
|
} Human, HTML, CSF, XML;
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ main (int argc, char *argv[])
|
|||||||
CorbaFS_Buffer *buffer;
|
CorbaFS_Buffer *buffer;
|
||||||
CorbaFS_DirEntSeq *dirents;
|
CorbaFS_DirEntSeq *dirents;
|
||||||
CorbaFS_dirent *dirent;
|
CorbaFS_dirent *dirent;
|
||||||
|
|
||||||
CORBA_unsigned_short mode;
|
CORBA_unsigned_short mode;
|
||||||
CORBA_unsigned_long uid;
|
CORBA_unsigned_long uid;
|
||||||
CORBA_unsigned_long gid;
|
CORBA_unsigned_long gid;
|
||||||
@ -25,9 +25,9 @@ main (int argc, char *argv[])
|
|||||||
CORBA_long atime;
|
CORBA_long atime;
|
||||||
CORBA_long mtime;
|
CORBA_long mtime;
|
||||||
CORBA_long ctime;
|
CORBA_long ctime;
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
int niters = 10;
|
int niters = 10;
|
||||||
|
|
||||||
CORBA_exception_init(&ev);
|
CORBA_exception_init(&ev);
|
||||||
@ -45,12 +45,12 @@ main (int argc, char *argv[])
|
|||||||
printf("Cannot bind to %s\n", argv[1]);
|
printf("Cannot bind to %s\n", argv[1]);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (argc >= 3)
|
if (argc >= 3)
|
||||||
inode = CorbaFS_FileSystem_getInode(fs, argv[2], &ev);
|
inode = CorbaFS_FileSystem_getInode(fs, argv[2], &ev);
|
||||||
else
|
else
|
||||||
inode = CorbaFS_FileSystem_getInode(fs, "/proc/cpuinfo", &ev);
|
inode = CorbaFS_FileSystem_getInode(fs, "/proc/cpuinfo", &ev);
|
||||||
|
|
||||||
if (!inode)
|
if (!inode)
|
||||||
{
|
{
|
||||||
printf("Cannot get inode\n");
|
printf("Cannot get inode\n");
|
||||||
@ -67,7 +67,7 @@ main (int argc, char *argv[])
|
|||||||
&mtime,
|
&mtime,
|
||||||
&ctime,
|
&ctime,
|
||||||
&ev);
|
&ev);
|
||||||
|
|
||||||
printf("inode = %x\n", inode);
|
printf("inode = %x\n", inode);
|
||||||
CorbaFS_Inode_readpage(inode, &buffer, 100000, 100, &ev);
|
CorbaFS_Inode_readpage(inode, &buffer, 100000, 100, &ev);
|
||||||
printf("readpage got %d bytes\n", buffer->_length);
|
printf("readpage got %d bytes\n", buffer->_length);
|
||||||
@ -84,7 +84,7 @@ main (int argc, char *argv[])
|
|||||||
printf("%d = %s\n", dirent->inode, dirent->name);
|
printf("%d = %s\n", dirent->inode, dirent->name);
|
||||||
dirent++;
|
dirent++;
|
||||||
}
|
}
|
||||||
|
|
||||||
CORBA_Object_release(fs, &ev);
|
CORBA_Object_release(fs, &ev);
|
||||||
CORBA_Object_release((CORBA_Object)orb, &ev);
|
CORBA_Object_release((CORBA_Object)orb, &ev);
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
@ -49,4 +49,3 @@ int _hp_close(register HP_INFO *info)
|
|||||||
my_free((gptr) info,MYF(0));
|
my_free((gptr) info,MYF(0));
|
||||||
DBUG_RETURN(error);
|
DBUG_RETURN(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
(at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Defines for Win32 to make it compatible for MySQL */
|
/* Defines for Win32 to make it compatible for MySQL */
|
||||||
|
|
||||||
@ -138,7 +137,7 @@ typedef uint rf_SetTimer;
|
|||||||
#define USE_MB 1
|
#define USE_MB 1
|
||||||
#define USE_MB_IDENT 1
|
#define USE_MB_IDENT 1
|
||||||
#define USE_STRCOLL 1
|
#define USE_STRCOLL 1
|
||||||
|
|
||||||
/* Convert some simple functions to Posix */
|
/* Convert some simple functions to Posix */
|
||||||
|
|
||||||
#define sigset(A,B) signal((A),(B))
|
#define sigset(A,B) signal((A),(B))
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _dbug_h
|
#ifndef _dbug_h
|
||||||
#define _dbug_h
|
#define _dbug_h
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Error messages for mysql clients */
|
/* Error messages for mysql clients */
|
||||||
/* error messages for the demon is in share/language/errmsg.sys */
|
/* error messages for the demon is in share/language/errmsg.sys */
|
||||||
@ -62,6 +61,3 @@ extern const char *client_errors[]; /* Error messages */
|
|||||||
#define CR_PROBE_SLAVE_HOSTS 2023
|
#define CR_PROBE_SLAVE_HOSTS 2023
|
||||||
#define CR_PROBE_SLAVE_CONNECT 2024
|
#define CR_PROBE_SLAVE_CONNECT 2024
|
||||||
#define CR_PROBE_MASTER_CONNECT 2025
|
#define CR_PROBE_MASTER_CONNECT 2025
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
/* Declarations for getopt.
|
/* Declarations for getopt.
|
||||||
Copyright (C) 1989, 90, 91, 92, 93, 94 Free Software Foundation, Inc.
|
Copyright (C) 1989, 90, 91, 92, 93, 94 Free Software Foundation, Inc.
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Dynamic hashing of record with different key-length */
|
/* Dynamic hashing of record with different key-length */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file should be included when using heap_database_funktions */
|
/* This file should be included when using heap_database_funktions */
|
||||||
/* Author: Michael Widenius */
|
/* Author: Michael Widenius */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
A better inplementation of the UNIX ctype(3) library.
|
A better inplementation of the UNIX ctype(3) library.
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* There may be prolems include all of theese. Try to test in
|
/* There may be prolems include all of theese. Try to test in
|
||||||
configure with ones are needed? */
|
configure with ones are needed? */
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
|
||||||
/* MD5.H - header file for MD5C.C
|
/* MD5.H - header file for MD5C.C
|
||||||
*/
|
*/
|
||||||
@ -75,4 +91,3 @@ extern "C" {
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file should be included when using merge_isam_funktions */
|
/* This file should be included when using merge_isam_funktions */
|
||||||
/* Author: Michael Widenius */
|
/* Author: Michael Widenius */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
File to include when we want to use alarm or a loop_counter to display
|
File to include when we want to use alarm or a loop_counter to display
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file includes constants used with all databases */
|
/* This file includes constants used with all databases */
|
||||||
/* Author: Michael Widenius */
|
/* Author: Michael Widenius */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _my_bitmap_h_
|
#ifndef _my_bitmap_h_
|
||||||
#define _my_bitmap_h_
|
#define _my_bitmap_h_
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _my_dir_h
|
#ifndef _my_dir_h
|
||||||
#define _my_dir_h
|
#define _my_dir_h
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This is the main include file that should included 'first' in every
|
/* This is the main include file that should included 'first' in every
|
||||||
C file. */
|
C file. */
|
||||||
@ -646,14 +645,14 @@ typedef off_t os_off_t;
|
|||||||
|
|
||||||
#if defined(__WIN__)
|
#if defined(__WIN__)
|
||||||
#define socket_errno WSAGetLastError()
|
#define socket_errno WSAGetLastError()
|
||||||
#define SOCKET_EINTR WSAEINTR
|
#define SOCKET_EINTR WSAEINTR
|
||||||
#define SOCKET_EAGAIN WSAEINPROGRESS
|
#define SOCKET_EAGAIN WSAEINPROGRESS
|
||||||
#define SOCKET_EWOULDBLOCK WSAEINPROGRESS
|
#define SOCKET_EWOULDBLOCK WSAEINPROGRESS
|
||||||
#define SOCKET_ENFILE ENFILE
|
#define SOCKET_ENFILE ENFILE
|
||||||
#define SOCKET_EMFILE EMFILE
|
#define SOCKET_EMFILE EMFILE
|
||||||
#elif defined(OS2)
|
#elif defined(OS2)
|
||||||
#define socket_errno sock_errno()
|
#define socket_errno sock_errno()
|
||||||
#define SOCKET_EINTR SOCEINTR
|
#define SOCKET_EINTR SOCEINTR
|
||||||
#define SOCKET_EAGAIN SOCEINPROGRESS
|
#define SOCKET_EAGAIN SOCEINPROGRESS
|
||||||
#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
|
#define SOCKET_EWOULDBLOCK SOCEWOULDBLOCK
|
||||||
#define SOCKET_ENFILE SOCENFILE
|
#define SOCKET_ENFILE SOCENFILE
|
||||||
@ -765,7 +764,7 @@ typedef union {
|
|||||||
#define float8get(V,M) doubleget((V),(M))
|
#define float8get(V,M) doubleget((V),(M))
|
||||||
#define float4store(V,M) memcpy((byte*) V,(byte*) (&M),sizeof(float))
|
#define float4store(V,M) memcpy((byte*) V,(byte*) (&M),sizeof(float))
|
||||||
#define float8store(V,M) doublestore((V),(M))
|
#define float8store(V,M) doublestore((V),(M))
|
||||||
#endif /* __i386__ */
|
#endif /* __i386__ */
|
||||||
|
|
||||||
#ifndef sint2korr
|
#ifndef sint2korr
|
||||||
#define sint2korr(A) (int16) (((int16) ((uchar) (A)[0])) +\
|
#define sint2korr(A) (int16) (((int16) ((uchar) (A)[0])) +\
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _list_h_
|
#ifndef _list_h_
|
||||||
#define _list_h_
|
#define _list_h_
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
thread safe version of some common functions:
|
thread safe version of some common functions:
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
This undefs some pthread mutex locks when one isn't using threads
|
This undefs some pthread mutex locks when one isn't using threads
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Header to remove use of my_functions in functions where we need speed and
|
Header to remove use of my_functions in functions where we need speed and
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* Defines to make different thread packages compatible */
|
/* Defines to make different thread packages compatible */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _my_sys_h
|
#ifndef _my_sys_h
|
||||||
#define _my_sys_h
|
#define _my_sys_h
|
||||||
@ -125,7 +124,7 @@ extern int NEAR my_errno; /* Last error in mysys */
|
|||||||
/* root_alloc flags */
|
/* root_alloc flags */
|
||||||
#define MY_KEEP_PREALLOC 1
|
#define MY_KEEP_PREALLOC 1
|
||||||
#define MY_MARK_BLOCKS_FREE 2 /* move used to free list and reuse them */
|
#define MY_MARK_BLOCKS_FREE 2 /* move used to free list and reuse them */
|
||||||
|
|
||||||
/* defines when allocating data */
|
/* defines when allocating data */
|
||||||
|
|
||||||
#ifdef SAFEMALLOC
|
#ifdef SAFEMALLOC
|
||||||
@ -351,7 +350,7 @@ typedef int (*qsort2_cmp)(const void *, const void *, const void *);
|
|||||||
(memcpy((info)->write_pos, (Buffer), (size_t)(Count)),\
|
(memcpy((info)->write_pos, (Buffer), (size_t)(Count)),\
|
||||||
((info)->write_pos+=(Count)),0) : \
|
((info)->write_pos+=(Count)),0) : \
|
||||||
(*(info)->write_function)((info),(Buffer),(Count)))
|
(*(info)->write_function)((info),(Buffer),(Count)))
|
||||||
|
|
||||||
|
|
||||||
#define my_b_get(info) \
|
#define my_b_get(info) \
|
||||||
((info)->read_pos != (info)->read_end ?\
|
((info)->read_pos != (info)->read_end ?\
|
||||||
@ -655,11 +654,3 @@ extern my_bool have_tcpip; /* Is set if tcpip is used */
|
|||||||
#endif
|
#endif
|
||||||
#include "raid.h"
|
#include "raid.h"
|
||||||
#endif /* _my_sys_h */
|
#endif /* _my_sys_h */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _tree_h
|
#ifndef _tree_h
|
||||||
#define _tree_h
|
#define _tree_h
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file should be included when using myisam_funktions */
|
/* This file should be included when using myisam_funktions */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file should be included when using merge_isam_funktions */
|
/* This file should be included when using merge_isam_funktions */
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Storing of values in high byte first order.
|
Storing of values in high byte first order.
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _mysql_h
|
#ifndef _mysql_h
|
||||||
#define _mysql_h
|
#define _mysql_h
|
||||||
@ -29,7 +28,7 @@
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _global_h /* If not standard header */
|
#ifndef _global_h /* If not standard header */
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#ifdef __LCC__
|
#ifdef __LCC__
|
||||||
@ -170,7 +169,7 @@ enum mysql_status { MYSQL_STATUS_READY,MYSQL_STATUS_GET_RESULT,
|
|||||||
*/
|
*/
|
||||||
enum mysql_rpl_type { MYSQL_RPL_MASTER, MYSQL_RPL_SLAVE,
|
enum mysql_rpl_type { MYSQL_RPL_MASTER, MYSQL_RPL_SLAVE,
|
||||||
MYSQL_RPL_ADMIN };
|
MYSQL_RPL_ADMIN };
|
||||||
|
|
||||||
|
|
||||||
typedef struct st_mysql {
|
typedef struct st_mysql {
|
||||||
NET net; /* Communication parameters */
|
NET net; /* Communication parameters */
|
||||||
@ -204,7 +203,7 @@ typedef struct st_mysql {
|
|||||||
/* pointers to the master, and the next slave
|
/* pointers to the master, and the next slave
|
||||||
connections, points to itself if lone connection */
|
connections, points to itself if lone connection */
|
||||||
struct st_mysql* master, *next_slave;
|
struct st_mysql* master, *next_slave;
|
||||||
|
|
||||||
struct st_mysql* last_used_slave; /* needed for round-robin slave pick */
|
struct st_mysql* last_used_slave; /* needed for round-robin slave pick */
|
||||||
/* needed for send/read/store/use result to work correctly with replication */
|
/* needed for send/read/store/use result to work correctly with replication */
|
||||||
struct st_mysql* last_used_con;
|
struct st_mysql* last_used_con;
|
||||||
@ -235,7 +234,7 @@ typedef struct st_mysql_res {
|
|||||||
#define MANAGER_INTERNAL_ERR 500
|
#define MANAGER_INTERNAL_ERR 500
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef struct st_mysql_manager
|
typedef struct st_mysql_manager
|
||||||
{
|
{
|
||||||
NET net;
|
NET net;
|
||||||
@ -249,7 +248,7 @@ typedef struct st_mysql_manager
|
|||||||
int net_buf_size;
|
int net_buf_size;
|
||||||
char last_error[MAX_MYSQL_MANAGER_ERR];
|
char last_error[MAX_MYSQL_MANAGER_ERR];
|
||||||
} MYSQL_MANAGER;
|
} MYSQL_MANAGER;
|
||||||
|
|
||||||
/* Set up and bring down the server; to ensure that applications will
|
/* Set up and bring down the server; to ensure that applications will
|
||||||
* work when linked against either the standard client library or the
|
* work when linked against either the standard client library or the
|
||||||
* embedded server library, these functions should be called. */
|
* embedded server library, these functions should be called. */
|
||||||
@ -336,7 +335,7 @@ enum mysql_rpl_type STDCALL mysql_rpl_query_type(const char* q, int len);
|
|||||||
|
|
||||||
/* discover the master and its slaves */
|
/* discover the master and its slaves */
|
||||||
int STDCALL mysql_rpl_probe(MYSQL* mysql);
|
int STDCALL mysql_rpl_probe(MYSQL* mysql);
|
||||||
|
|
||||||
/* set the master, close/free the old one, if it is not a pivot */
|
/* set the master, close/free the old one, if it is not a pivot */
|
||||||
int STDCALL mysql_set_master(MYSQL* mysql, const char* host,
|
int STDCALL mysql_set_master(MYSQL* mysql, const char* host,
|
||||||
unsigned int port,
|
unsigned int port,
|
||||||
@ -346,7 +345,7 @@ int STDCALL mysql_add_slave(MYSQL* mysql, const char* host,
|
|||||||
unsigned int port,
|
unsigned int port,
|
||||||
const char* user,
|
const char* user,
|
||||||
const char* passwd);
|
const char* passwd);
|
||||||
|
|
||||||
int STDCALL mysql_shutdown(MYSQL *mysql);
|
int STDCALL mysql_shutdown(MYSQL *mysql);
|
||||||
int STDCALL mysql_dump_debug_info(MYSQL *mysql);
|
int STDCALL mysql_dump_debug_info(MYSQL *mysql);
|
||||||
int STDCALL mysql_refresh(MYSQL *mysql,
|
int STDCALL mysql_refresh(MYSQL *mysql,
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Common definition between mysql server & client
|
** Common definition between mysql server & client
|
||||||
@ -222,7 +221,7 @@ typedef struct st_udf_init
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void randominit(struct rand_struct *,unsigned long seed1,
|
void randominit(struct rand_struct *,unsigned long seed1,
|
||||||
unsigned long seed2);
|
unsigned long seed2);
|
||||||
double rnd(struct rand_struct *);
|
double rnd(struct rand_struct *);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,3 +1,19 @@
|
|||||||
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program 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 General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
/* Definefile for errormessagenumbers */
|
/* Definefile for errormessagenumbers */
|
||||||
|
|
||||||
#define ER_HASHCHK 1000
|
#define ER_HASHCHK 1000
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
#ifndef _mysys_err_h
|
#ifndef _mysys_err_h
|
||||||
#define _mysys_err_h
|
#define _mysys_err_h
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/* This file should be included when using nisam_funktions */
|
/* This file should be included when using nisam_funktions */
|
||||||
/* Author: Michael Widenius */
|
/* Author: Michael Widenius */
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB
|
/* Copyright (C) 2000 MySQL AB
|
||||||
|
|
||||||
This library is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or modify
|
||||||
modify it under the terms of the GNU Library General Public
|
it under the terms of the GNU General Public License as published by
|
||||||
License as published by the Free Software Foundation; either
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
version 2 of the License, or (at your option) any later version.
|
(at your option) any later version.
|
||||||
|
|
||||||
This library is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
Library General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU Library General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this library; if not, write to the Free
|
along with this program; if not, write to the Free Software
|
||||||
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
MA 02111-1307, USA */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Code for generell handling of priority Queues.
|
Code for generell handling of priority Queues.
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user