Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
6cd8de36
Commit
6cd8de36
authored
May 27, 2004
by
jani@a80-186-24-72.elisa-laajakaista.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merged in some patches from Novell.
parent
1aa3b2c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
39 deletions
+74
-39
netware/BUILD/nwbootstrap
netware/BUILD/nwbootstrap
+5
-0
netware/mysqld_safe.c
netware/mysqld_safe.c
+69
-39
No files found.
netware/BUILD/nwbootstrap
View file @
6cd8de36
...
@@ -171,6 +171,11 @@ do
...
@@ -171,6 +171,11 @@ do
rm
$file
.org
rm
$file
.org
done
done
# create the libmysql.imp file in netware folder from libmysql/libmysql.def
# file
echo
"generating llibmysql.imp file..."
awk
'BEGIN{x=0;} x==1 {print $1;next} /EXPORTS/{x=1}'
libmysql/libmysql.def
>
netware/libmysql.imp
# build linux tools
# build linux tools
echo
"compiling linux tools..."
echo
"compiling linux tools..."
./netware/BUILD/compile-linux-tools
./netware/BUILD/compile-linux-tools
...
...
netware/mysqld_safe.c
View file @
6cd8de36
...
@@ -67,6 +67,7 @@ void check_data_vol();
...
@@ -67,6 +67,7 @@ void check_data_vol();
void
check_setup
();
void
check_setup
();
void
check_tables
();
void
check_tables
();
void
mysql_start
(
int
,
char
*
[]);
void
mysql_start
(
int
,
char
*
[]);
void
parse_setvar
(
char
*
arg
);
/******************************************************************************
/******************************************************************************
...
@@ -321,7 +322,8 @@ void parse_args(int argc, char *argv[])
...
@@ -321,7 +322,8 @@ void parse_args(int argc, char *argv[])
OPT_ERR_LOG
,
OPT_ERR_LOG
,
OPT_SAFE_LOG
,
OPT_SAFE_LOG
,
OPT_MYSQLD
,
OPT_MYSQLD
,
OPT_HELP
OPT_HELP
,
OPT_SETVAR
};
};
static
struct
option
options
[]
=
static
struct
option
options
[]
=
...
@@ -337,6 +339,7 @@ void parse_args(int argc, char *argv[])
...
@@ -337,6 +339,7 @@ void parse_args(int argc, char *argv[])
{
"safe-log"
,
required_argument
,
0
,
OPT_SAFE_LOG
},
{
"safe-log"
,
required_argument
,
0
,
OPT_SAFE_LOG
},
{
"mysqld"
,
required_argument
,
0
,
OPT_MYSQLD
},
{
"mysqld"
,
required_argument
,
0
,
OPT_MYSQLD
},
{
"help"
,
no_argument
,
0
,
OPT_HELP
},
{
"help"
,
no_argument
,
0
,
OPT_HELP
},
{
"set-variable"
,
required_argument
,
0
,
OPT_SETVAR
},
{
0
,
0
,
0
,
0
}
{
0
,
0
,
0
,
0
}
};
};
...
@@ -385,6 +388,10 @@ void parse_args(int argc, char *argv[])
...
@@ -385,6 +388,10 @@ void parse_args(int argc, char *argv[])
strcpy
(
mysqld
,
optarg
);
strcpy
(
mysqld
,
optarg
);
break
;
break
;
case
OPT_SETVAR
:
parse_setvar
(
optarg
);
break
;
case
OPT_HELP
:
case
OPT_HELP
:
usage
();
usage
();
break
;
break
;
...
@@ -396,6 +403,25 @@ void parse_args(int argc, char *argv[])
...
@@ -396,6 +403,25 @@ void parse_args(int argc, char *argv[])
}
}
}
}
/*
parse_setvar(char *arg)
Pasrsing for port just to display the port num on the mysqld_safe screen
*/
void
parse_setvar
(
char
*
arg
)
{
char
*
pos
;
if
((
pos
=
strindex
(
arg
,
"port"
)))
{
for
(;
*
pos
&&
*
pos
!=
'='
;
pos
++
)
;
if
(
*
pos
)
strcpy
(
port
,
pos
+
1
);
}
}
/******************************************************************************
/******************************************************************************
/******************************************************************************
get_options()
get_options()
...
@@ -633,13 +659,17 @@ void mysql_start(int argc, char *argv[])
...
@@ -633,13 +659,17 @@ void mysql_start(int argc, char *argv[])
if
(
!
strnicmp
(
argv
[
i
],
private_options
[
j
],
strlen
(
private_options
[
j
])))
if
(
!
strnicmp
(
argv
[
i
],
private_options
[
j
],
strlen
(
private_options
[
j
])))
{
{
skip
=
TRUE
;
skip
=
TRUE
;
consoleprintf
(
"The argument skipped is %s
\n
"
,
argv
[
i
]);
break
;
break
;
}
}
}
}
if
(
!
skip
)
add_arg
(
&
al
,
"%s"
,
argv
[
i
]);
if
(
!
skip
)
{
add_arg
(
&
al
,
"%s"
,
argv
[
i
]);
consoleprintf
(
"The final argument is %s
\n
"
,
argv
[
i
]);
}
}
}
// spawn
// spawn
do
do
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment