You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
2.9 KiB

Several Netware specific fixes. configure.in: To configure InnoDB for cross compilation. include/config-netware.h: NetWare specific change to fix the compilation errors caused by event.h NetWare specific change required for WINE PATH and for new versions LibC(Jun 05) and zlib(1.2.3) netware/BUILD/compile-AUTOTOOLS: Netware specific change reflecting the change in source code directory structure. netware/BUILD/compile-linux-tools: Netware specific change to fix the location where gen_lex_hash gets created. Fixed also directory structure reflecting changes. netware/BUILD/compile-netware-END: Netware specific change for creating mysqld_error.h netware/BUILD/mwenv: Netware specific change required for WINE PATH and for new versions LibC(Jun 05) and zlib(1.2.3). netware/BUILD/nwbootstrap: NetWare Specific change to produce absoulte path for XDC file. netware/Makefile.am: Netware specific changes to fix to match new directory structure. netware/my_manage.h: Netware specific change required for WINE PATH and for new versions LibC(Jun 05) and zlib(1.2.3). netware/mysql_test_run.c: Netware specific change, added --autoclose option for mysql_test_run.nlm. scripts/make_binary_distribution.sh: Fix to reflect change in directory structure. sql/mysqld.cc: Stacksize change for Netware. Netware specific change to fix the compilation errors caused by event.h sql/set_var.cc: Minor indending related fix. sql/sql_class.cc: Added #ifdef HAVE_EXPLICIT_TEMPLATE_INSTANTIATION macro. storage/innobase/os/os0thread.c: Netware specific change to increase the thread stack size. storage/myisam/mi_locking.c: Enclosed MMAP related code under HAVE_MMAP preprocessor directive.
20 years ago
  1. /*
  2. Copyright (c) 2002 Novell, Inc. All Rights Reserved.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  14. */
  15. #ifndef _MY_MANAGE
  16. #define _MY_MANAGE
  17. /******************************************************************************
  18. includes
  19. ******************************************************************************/
  20. #include <stdlib.h>
  21. #ifndef __WIN__
  22. #include <unistd.h>
  23. #endif
  24. /******************************************************************************
  25. macros
  26. ******************************************************************************/
  27. #ifdef __WIN__
  28. #define PATH_MAX _MAX_PATH
  29. #define NAME_MAX _MAX_FNAME
  30. #define kill(A,B) TerminateProcess((HANDLE)A,0)
  31. #define NOT_NEED_PID 0
  32. #define MASTER_PID 1
  33. #define SLAVE_PID 2
  34. #define mysqld_timeout 60000
  35. intptr_t master_server;
  36. intptr_t slave_server;
  37. int pid_mode;
  38. bool run_server;
  39. char win_args[1024];
  40. bool skip_first_param;
  41. #endif
  42. #define ARG_BUF 10
  43. #define TRY_MAX 5
  44. #define NULL (char) 0
  45. #ifdef __NETWARE__
  46. #define strstr(A,B) strindex(A,B)
  47. #endif
  48. /******************************************************************************
  49. structures
  50. ******************************************************************************/
  51. typedef struct
  52. {
  53. int argc;
  54. char **argv;
  55. size_t size;
  56. } arg_list_t;
  57. typedef int pid_t;
  58. /******************************************************************************
  59. global variables
  60. ******************************************************************************/
  61. /******************************************************************************
  62. prototypes
  63. ******************************************************************************/
  64. void init_args(arg_list_t *);
  65. void add_arg(arg_list_t *, const char *, ...);
  66. void free_args(arg_list_t *);
  67. int sleep_until_file_exists(char *);
  68. int sleep_until_file_deleted(char *);
  69. int wait_for_server_start(char *, char *, char *, int,char *);
  70. int spawn(char *, arg_list_t *, int, char *, char *, char *);
  71. int stop_server(char *, char *, char *, int, char *,char *);
  72. pid_t get_server_pid(char *);
  73. void kill_server(pid_t pid);
  74. void del_tree(char *);
  75. int removef(const char *, ...);
  76. void get_basedir(char *, char *);
  77. char mysqladmin_file[PATH_MAX];
  78. #endif /* _MY_MANAGE */