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
55f0e6bf
Commit
55f0e6bf
authored
Dec 02, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes for netware by Guenter Knauf
parent
ffab2a90
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
404 additions
and
400 deletions
+404
-400
include/config-netware.h
include/config-netware.h
+1
-0
netware/Makefile.am
netware/Makefile.am
+1
-0
netware/my_manage.c
netware/my_manage.c
+6
-4
netware/mysql_install_db.c
netware/mysql_install_db.c
+7
-7
netware/mysqld_safe.c
netware/mysqld_safe.c
+389
-389
No files found.
include/config-netware.h
View file @
55f0e6bf
...
...
@@ -57,6 +57,7 @@ extern "C" {
#undef HAVE_RWLOCK_INIT
#undef HAVE_SCHED_H
#undef HAVE_SYS_MMAN_H
#undef HAVE_SYS_UN_H
#undef HAVE_SYNCH_H
#undef HAVE_MMAP
#undef HAVE_RINT
...
...
netware/Makefile.am
View file @
55f0e6bf
...
...
@@ -108,6 +108,7 @@ init_db.sql: $(top_srcdir)/scripts/mysql_system_tables.sql \
@
echo
"CREATE DATABASE test;"
>>
$@
;
@
echo
"use mysql;"
>>
$@
;
@
cat
$(top_srcdir)
/scripts/mysql_system_tables.sql
>>
$@
;
@
cat
$(top_srcdir)
/scripts/mysql_system_tables_data.sql |
grep
-v
'@current_hostname'
>>
$@
;
# Build test_db.sql from init_db.sql plus
# some test data
...
...
netware/my_manage.c
View file @
55f0e6bf
...
...
@@ -24,8 +24,10 @@
#include <proc.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <assert.h>
#include <nks/vm.h>
#include "my_manage.h"
...
...
@@ -356,17 +358,17 @@ pid_t get_server_pid(char *pid_file)
// terminate string
if
((
p
=
strchr
(
buf
,
'\n'
))
!=
NULL
)
{
*
p
=
NULL
;
*
p
=
0
;
// check for a '\r'
if
((
p
=
strchr
(
buf
,
'\r'
))
!=
NULL
)
{
*
p
=
NULL
;
*
p
=
0
;
}
}
else
{
buf
[
err
]
=
NULL
;
buf
[
err
]
=
0
;
}
id
=
strtol
(
buf
,
NULL
,
0
);
...
...
@@ -471,7 +473,7 @@ void get_basedir(char *argv0, char *basedir)
if
((
p
=
strindex
(
temp
,
"/bin/"
))
!=
NULL
)
{
*
p
=
NULL
;
*
p
=
0
;
strcpy
(
basedir
,
temp
);
}
}
netware/mysql_install_db.c
View file @
55f0e6bf
...
...
@@ -34,7 +34,7 @@
global variables
******************************************************************************/
char
autoclose
;
int
autoclose
;
char
basedir
[
PATH_MAX
];
char
datadir
[
PATH_MAX
];
char
err_log
[
PATH_MAX
];
...
...
@@ -99,7 +99,7 @@ void start_defaults(int argc, char *argv[])
}
// default option
default_option
[
0
]
=
NULL
;
default_option
[
0
]
=
0
;
for
(
i
=
0
;
(
argc
>
1
)
&&
default_options
[
i
];
i
++
)
{
if
(
!
strnicmp
(
argv
[
1
],
default_options
[
i
],
strlen
(
default_options
[
i
])))
...
...
@@ -110,11 +110,11 @@ void start_defaults(int argc, char *argv[])
}
// set after basedir is established
datadir
[
0
]
=
NULL
;
err_log
[
0
]
=
NULL
;
out_log
[
0
]
=
NULL
;
mysqld
[
0
]
=
NULL
;
sql_file
[
0
]
=
NULL
;
datadir
[
0
]
=
0
;
err_log
[
0
]
=
0
;
out_log
[
0
]
=
0
;
mysqld
[
0
]
=
0
;
sql_file
[
0
]
=
0
;
}
/******************************************************************************
...
...
netware/mysqld_safe.c
View file @
55f0e6bf
...
...
@@ -193,7 +193,7 @@ void start_defaults(int argc, char *argv[])
snprintf
(
port
,
PATH_MAX
,
"%d"
,
MYSQL_PORT
);
// default option
default_option
[
0
]
=
NULL
;
default_option
[
0
]
=
0
;
for
(
i
=
0
;
(
argc
>
1
)
&&
default_options
[
i
];
i
++
)
{
if
(
!
strnicmp
(
argv
[
1
],
default_options
[
i
],
strlen
(
default_options
[
i
])))
...
...
@@ -204,11 +204,11 @@ void start_defaults(int argc, char *argv[])
}
// set after basedir is established
datadir
[
0
]
=
NULL
;
pid_file
[
0
]
=
NULL
;
err_log
[
0
]
=
NULL
;
safe_log
[
0
]
=
NULL
;
mysqld
[
0
]
=
NULL
;
datadir
[
0
]
=
0
;
pid_file
[
0
]
=
0
;
err_log
[
0
]
=
0
;
safe_log
[
0
]
=
0
;
mysqld
[
0
]
=
0
;
}
/******************************************************************************
...
...
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