summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2001-12-15 05:12:21 +0200
committerunknown <monty@hundin.mysql.fi>2001-12-15 05:12:21 +0200
commitf86c6b70d65287d6f34335ccbb10093077617577 (patch)
tree5b07ad850f8dba78d186135337dd5a151d18a2b8 /extra
parentf6ead1d76630dfa470f1dc329f8ac9d15a54c316 (diff)
parenta3eda4e3982ad3267a818de654555d84573b4dcb (diff)
downloadmariadb-git-f86c6b70d65287d6f34335ccbb10093077617577.tar.gz
Merge with 3.23.47
extra/resolve_stack_dump.c: Auto merged include/my_bitmap.h: Auto merged innobase/buf/buf0buf.c: Auto merged innobase/dict/dict0crea.c: Auto merged mysql-test/t/rpl_get_lock.test: Auto merged
Diffstat (limited to 'extra')
-rw-r--r--extra/mysql_install.c62
-rw-r--r--extra/resolve_stack_dump.c3
2 files changed, 64 insertions, 1 deletions
diff --git a/extra/mysql_install.c b/extra/mysql_install.c
new file mode 100644
index 00000000000..dfd71895647
--- /dev/null
+++ b/extra/mysql_install.c
@@ -0,0 +1,62 @@
+/* Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult 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 */
+
+/* Install or upgrade MySQL server. By Sasha Pachev <sasha@mysql.com>
+ */
+
+#define INSTALL_VERSION "1.0"
+
+#define DONT_USE_RAID
+#include <global.h>
+#include <m_ctype.h>
+#include <my_sys.h>
+#include <m_string.h>
+#include <mysql_version.h>
+#include <errno.h>
+#include <getopt.h>
+
+struct option long_options[] =
+{
+ {"help", no_argument, 0, 'h'},
+ {"version", no_argument, 0, 'V'},
+ {0, 0,0,0}
+};
+
+static void print_version(void)
+{
+ printf("%s Ver %s Distrib %s, for %s (%s)\n",my_progname,INSTALL_VERSION,
+ MYSQL_SERVER_VERSION,SYSTEM_TYPE,MACHINE_TYPE);
+}
+
+static void usage()
+{
+ print_version();
+ printf("MySQL AB, by Sasha Pachev\n");
+ printf("This software comes with ABSOLUTELY NO WARRANTY\n\n");
+ printf("Install or upgrade MySQL server.\n\n");
+ printf("Usage: %s [OPTIONS] \n", my_progname);
+ printf("\n\
+ -?, --help Display this help and exit.\n\
+ -h, --host=... Connect to host.\n\
+ -V, --version Output version information and exit.\n");
+}
+
+
+
+
+
+
diff --git a/extra/resolve_stack_dump.c b/extra/resolve_stack_dump.c
index d79fb1b6e5d..6c2ddf66027 100644
--- a/extra/resolve_stack_dump.c
+++ b/extra/resolve_stack_dump.c
@@ -74,7 +74,8 @@ static void usage()
printf("Usage: %s [OPTIONS] symbols-file [numeric-dump-file]\n", my_progname);
printf("\n\
-?, --help Display this help and exit.\n\
- -h, --host=... Connect to host.\n\
+ -s, --symbols-file=... Use specified symbols file.\n\
+ -n, --numeric-dump-file=... Read the dump from specified file.\n\
-V, --version Output version information and exit.\n");
printf("\n\
The symbols-file should include the output from: 'nm --numeric-sort mysqld'.\n\