2003-01-28 07:38:28 +01:00
|
|
|
/* Copyright (C) 2000 MySQL AB
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
/* Header for NetWare compatible with MySQL */
|
|
|
|
|
|
|
|
#ifndef _config_netware_h
|
|
|
|
#define _config_netware_h
|
2003-01-28 07:38:28 +01:00
|
|
|
|
|
|
|
/* required headers */
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <screen.h>
|
|
|
|
#include <limits.h>
|
|
|
|
#include <signal.h>
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <time.h>
|
|
|
|
#include <sys/time.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <termios.h>
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2003-01-28 07:38:28 +01:00
|
|
|
/* required adjustments */
|
|
|
|
#undef HAVE_READDIR_R
|
|
|
|
#undef HAVE_RWLOCK_INIT
|
|
|
|
#undef HAVE_SCHED_H
|
|
|
|
#undef HAVE_SYS_MMAN_H
|
|
|
|
#undef HAVE_SYNCH_H
|
2005-10-25 15:56:25 +02:00
|
|
|
#undef HAVE_RINT
|
2003-01-28 07:38:28 +01:00
|
|
|
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
|
|
|
|
#define HAVE_PTHREAD_SIGMASK 1
|
|
|
|
#define HAVE_PTHREAD_YIELD_ZERO_ARG 1
|
|
|
|
#define HAVE_BROKEN_REALPATH 1
|
|
|
|
|
2005-08-18 20:26:25 +02:00
|
|
|
/*required adjustments with LibC-June-2004 */
|
|
|
|
#undef HAVE_POSIX_SIGNALS
|
|
|
|
#undef HAVE_PTHREAD_ATTR_SETSCOPE
|
|
|
|
#undef HAVE_ALLOCA_H
|
|
|
|
#undef HAVE_FINITE
|
|
|
|
#undef HAVE_GETPWNAM
|
|
|
|
#undef HAVE_GETPWUID
|
|
|
|
#undef HAVE_PTHREAD_SETSCHEDPARAM
|
|
|
|
#undef HAVE_READLINK
|
|
|
|
#undef HAVE_STPCPY
|
|
|
|
/*required adjustments with LibC-June-2004 */
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
/* no libc crypt() function */
|
|
|
|
#ifdef HAVE_OPENSSL
|
|
|
|
#define HAVE_CRYPT 1
|
|
|
|
#else
|
|
|
|
#undef HAVE_CRYPT
|
|
|
|
#endif /* HAVE_OPENSSL */
|
|
|
|
|
2004-05-28 00:02:20 +02:00
|
|
|
/* Configure can't detect this because it uses AC_TRY_RUN */
|
|
|
|
#undef HAVE_COMPRESS
|
|
|
|
#define HAVE_COMPRESS
|
|
|
|
|
2003-03-21 21:43:38 +01:00
|
|
|
/* include the old function apis */
|
|
|
|
#define USE_OLD_FUNCTIONS 1
|
|
|
|
|
2003-01-28 07:38:28 +01:00
|
|
|
/* no case sensitivity */
|
|
|
|
#define FN_NO_CASE_SENCE 1
|
|
|
|
|
|
|
|
/* the thread alarm is not used */
|
|
|
|
#define DONT_USE_THR_ALARM 1
|
|
|
|
|
|
|
|
/* signals do not interrupt sockets */
|
|
|
|
#define SIGNALS_DONT_BREAK_READ 1
|
|
|
|
|
|
|
|
/* signal by closing the sockets */
|
|
|
|
#define SIGNAL_WITH_VIO_CLOSE 1
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
/* On NetWare, stack grows towards lower address*/
|
|
|
|
#define STACK_DIRECTION -1
|
|
|
|
|
2005-10-25 15:56:25 +02:00
|
|
|
/* On NetWare, to fix the problem with the deletion of open files */
|
|
|
|
#define CANT_DELETE_OPEN_FILES 1
|
|
|
|
|
2003-01-28 07:38:28 +01:00
|
|
|
/* default directory information */
|
|
|
|
#define DEFAULT_MYSQL_HOME "sys:/mysql"
|
|
|
|
#define PACKAGE "mysql"
|
|
|
|
#define DEFAULT_BASEDIR "sys:/"
|
|
|
|
#define SHAREDIR "share/"
|
|
|
|
#define DEFAULT_CHARSET_HOME "sys:/mysql/"
|
|
|
|
#define DATADIR "data/"
|
|
|
|
|
|
|
|
/* 64-bit file system calls */
|
|
|
|
#define SIZEOF_OFF_T 8
|
|
|
|
#define off_t off64_t
|
|
|
|
#define chsize chsize64
|
|
|
|
#define ftruncate ftruncate64
|
|
|
|
#define lseek lseek64
|
|
|
|
#define pread pread64
|
|
|
|
#define pwrite pwrite64
|
|
|
|
#define tell tell64
|
|
|
|
|
|
|
|
/* do not use the extended time in LibC sys\stat.h */
|
|
|
|
#define _POSIX_SOURCE
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
/* Kernel call on NetWare that will only yield if our time slice is up */
|
|
|
|
void kYieldIfTimeSliceUp(void);
|
|
|
|
|
2003-01-28 07:38:28 +01:00
|
|
|
/* Some macros for portability */
|
|
|
|
|
2004-05-25 21:00:14 +02:00
|
|
|
#define set_timespec(ABSTIME,SEC) { (ABSTIME).tv_sec=time(NULL)+(SEC); (ABSTIME).tv_nsec=0; }
|
|
|
|
|
|
|
|
/* extra protection against CPU Hogs on NetWare */
|
|
|
|
#define NETWARE_YIELD kYieldIfTimeSliceUp()
|
|
|
|
/* Screen mode for help texts */
|
|
|
|
#define NETWARE_SET_SCREEN_MODE(A) setscreenmode(A)
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _config_netware_h */
|