diff options
author | greg@mysql.com <> | 2003-04-24 20:48:54 -0400 |
---|---|---|
committer | greg@mysql.com <> | 2003-04-24 20:48:54 -0400 |
commit | 24968f1ee3479abaad6af4141986567d234d0d13 (patch) | |
tree | c36594ab694e521b8b9f7a633e650af1857c88f4 /mysys | |
parent | 80a3c64d9322240cfb39fd39949a5442c354da8c (diff) | |
download | mariadb-git-24968f1ee3479abaad6af4141986567d234d0d13.tar.gz |
Changes from Novell for NetWare platform
Diffstat (limited to 'mysys')
-rw-r--r-- | mysys/mf_path.c | 3 | ||||
-rw-r--r-- | mysys/my_pthread.c | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/mysys/mf_path.c b/mysys/mf_path.c index 23eadd2acce..1ecd5fbb2b1 100644 --- a/mysys/mf_path.c +++ b/mysys/mf_path.c @@ -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 diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c index 1eb15d92bc9..f88a884a1bc 100644 --- a/mysys/my_pthread.c +++ b/mysys/my_pthread.c @@ -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) */ |