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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
24968f1e
Commit
24968f1e
authored
Apr 24, 2003
by
greg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes from Novell for NetWare platform
parent
80a3c64d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
11 deletions
+36
-11
include/my_pthread.h
include/my_pthread.h
+5
-0
mysys/mf_path.c
mysys/mf_path.c
+3
-0
mysys/my_pthread.c
mysys/my_pthread.c
+23
-0
sql/mini_client.cc
sql/mini_client.cc
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-5
sql/slave.cc
sql/slave.cc
+0
-4
sql/sql_load.cc
sql/sql_load.cc
+1
-1
No files found.
include/my_pthread.h
View file @
24968f1e
...
...
@@ -247,6 +247,11 @@ extern int my_sigwait(const sigset_t *set,int *sig);
#error Requires at least rev 2 of EMX pthreads library.
#endif
#ifdef __NETWARE__
void
my_pthread_exit
(
void
*
status
);
#define pthread_exit(A) my_pthread_exit(A)
#endif
extern
int
my_pthread_getprio
(
pthread_t
thread_id
);
#define pthread_key(T,V) pthread_key_t V
...
...
mysys/mf_path.c
View file @
24968f1e
...
...
@@ -77,6 +77,9 @@ my_string my_path(my_string to, const char *progname,
#define F_OK 0
#define PATH_SEP ';'
#define PROGRAM_EXTENSION ".exe"
#elif defined(__NETWARE__)
#define PATH_SEP ';'
#define PROGRAM_EXTENSION ".nlm"
#else
#define PATH_SEP ':'
#endif
...
...
mysys/my_pthread.c
View file @
24968f1e
...
...
@@ -90,6 +90,29 @@ void *my_pthread_getspecific_imp(pthread_key_t key)
}
#endif
#ifdef __NETWARE__
/*
don't kill the LibC Reaper thread or the main thread
*/
#include <nks/thread.h>
void
my_pthread_exit
(
void
*
status
)
{
#undef pthread_exit
NXThreadId_t
tid
=
NXThreadGetId
();
NXContext_t
ctx
;
char
name
[
PATH_MAX
]
=
""
;
NXThreadGetContext
(
tid
,
&
ctx
);
NXContextGetName
(
ctx
,
name
,
PATH_MAX
);
// "MYSQLD.NLM's LibC Reaper" or "MYSQLD.NLM's main thread"
// with a debug build of LibC the reaper can have different names
if
(
!
strindex
(
name
,
"
\'
s"
))
{
pthread_exit
(
status
);
}
}
#endif
/* Some functions for RTS threads, AIX, Siemens Unix and UnixWare 7
(and DEC OSF/1 3.2 too) */
...
...
sql/mini_client.cc
View file @
24968f1e
...
...
@@ -243,7 +243,7 @@ static void mc_free_old_query(MYSQL *mysql)
static
int
mc_sock_connect
(
my_socket
s
,
const
struct
sockaddr
*
name
,
uint
namelen
,
uint
to
)
{
#if defined(__WIN__) || defined(OS2)
#if defined(__WIN__) || defined(OS2)
|| defined(__NETWARE__)
return
connect
(
s
,
(
struct
sockaddr
*
)
name
,
namelen
);
#else
int
flags
,
res
,
s_err
;
...
...
sql/mysqld.cc
View file @
24968f1e
...
...
@@ -797,9 +797,9 @@ static void __cdecl kill_server(int sig_ptr)
#ifdef __NETWARE__
pthread_join
(
select_thread
,
NULL
);
// wait for main thread
#else
pthread_exit
(
0
);
/* purecov: deadcode */
#endif
/* __NETWARE__ */
pthread_exit
(
0
);
/* purecov: deadcode */
RETURN_FROM_KILL_SERVER
;
}
...
...
@@ -856,13 +856,11 @@ void unireg_end(void)
{
clean_up
(
1
);
my_thread_end
();
#ifndef __NETWARE__
#ifdef SIGNALS_DONT_BREAK_READ
#if defined(SIGNALS_DONT_BREAK_READ) && !defined(__NETWARE__)
exit
(
0
);
#else
pthread_exit
(
0
);
// Exit is in main thread
#endif
#endif
/* __NETWARE__ */
}
...
...
sql/slave.cc
View file @
24968f1e
...
...
@@ -2355,9 +2355,7 @@ log space");
goto
slave_begin
;
#endif
my_thread_end
();
#ifndef __NETWARE__
pthread_exit
(
0
);
#endif
/* __NETWARE__ */
DBUG_RETURN
(
0
);
// Can't return anything here
}
...
...
@@ -2500,9 +2498,7 @@ the slave SQL thread with \"SLAVE START\". We stopped at log \
goto
slave_begin
;
#endif
my_thread_end
();
// clean-up before broadcasting termination
#ifndef __NETWARE__
pthread_exit
(
0
);
#endif
/* __NETWARE__ */
DBUG_RETURN
(
0
);
// Can't return anything here
}
...
...
sql/sql_load.cc
View file @
24968f1e
...
...
@@ -179,7 +179,7 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list,
else
{
unpack_filename
(
name
,
ex
->
file_name
);
#if !defined(__WIN__) && !defined(OS2)
#if !defined(__WIN__) && !defined(OS2)
&& ! defined(__NETWARE__)
MY_STAT
stat_info
;
if
(
!
my_stat
(
name
,
&
stat_info
,
MYF
(
MY_WME
)))
DBUG_RETURN
(
-
1
);
...
...
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