mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 07:23:04 +01:00
Remove SINIX-Z from FB2.
This commit is contained in:
parent
18efeba01d
commit
05876e7f0a
@ -78,7 +78,7 @@ const ConfigImpl::ConfigEntry ConfigImpl::entries[] =
|
||||
#else
|
||||
{TYPE_INTEGER, "LockMemSize", (ConfigValue) 262144}, // bytes
|
||||
#endif
|
||||
#if defined(SINIXZ) || defined(FREEBSD) || defined(NETBSD)
|
||||
#if defined(FREEBSD) || defined(NETBSD)
|
||||
{TYPE_INTEGER, "LockSemCount", (ConfigValue) 25}, // semaphores
|
||||
#else
|
||||
{TYPE_INTEGER, "LockSemCount", (ConfigValue) 32}, // semaphores
|
||||
|
@ -33,11 +33,7 @@
|
||||
#else
|
||||
INT_PARAMETER (LockMemSize, 262144) // bytes
|
||||
#endif
|
||||
#ifdef SINIXZ
|
||||
INT_PARAMETER (LockSemCount, 25) // semaphores
|
||||
#else
|
||||
INT_PARAMETER (LockSemCount, 32) // semaphores
|
||||
#endif
|
||||
INT_PARAMETER (LockSignal, 16) // signal #
|
||||
BOOL_PARAMETER (LockGrantOrder, true)
|
||||
INT_PARAMETER (LockHashSlots, 101) // slots
|
||||
|
@ -126,7 +126,7 @@ static const char* const ISC_BADDRESS = "ISC_BADDRESS";
|
||||
static const char* const COMMIT = "commit";
|
||||
static const char* const ROLLBACK = "rollback";
|
||||
|
||||
#if defined AIX || defined AIX_PPC || defined SOLARIS || defined HP10 || defined HP11 || defined SINIXZ || defined LINUX || defined DARWIN || defined FREEBSD || defined NETBSD || defined WIN_NT
|
||||
#if defined AIX || defined AIX_PPC || defined SOLARIS || defined HP10 || defined HP11 || defined LINUX || defined DARWIN || defined FREEBSD || defined NETBSD || defined WIN_NT
|
||||
static const char* const OMITTED = "BY VALUE 0";
|
||||
static const char* const BY_VALUE = "BY VALUE ";
|
||||
static const char* const END_VALUE = "";
|
||||
|
@ -209,23 +209,6 @@ const char* const I4CONST_2 = "";
|
||||
const char* const COMMENT = "* ";
|
||||
const char* const INLINE_COMMENT = "\n* ";
|
||||
const char* const COMMA = ",";
|
||||
#elif defined(SINIXZ)
|
||||
const char* const INCLUDE_ISC_FTN = " INCLUDE '/usr/interbase/include/gds.f\' \n\n";
|
||||
const char* const INCLUDE_FTN_FILE = "include/gds.f";
|
||||
const char* const DOUBLE_DCL = "DOUBLE PRECISION";
|
||||
const char* const I2CONST_1 = "";
|
||||
const char* const I2CONST_2 = "";
|
||||
const char* const I2_1 = "";
|
||||
const char* const I2_2 = "";
|
||||
const char* const VAL_1 = "";
|
||||
const char* const VAL_2 = "";
|
||||
const char* const REF_1 = "";
|
||||
const char* const REF_2 = "";
|
||||
const char* const I4CONST_1 = "";
|
||||
const char* const I4CONST_2 = "";
|
||||
const char* const COMMENT = "* ";
|
||||
const char* const INLINE_COMMENT = "\n* ";
|
||||
const char* const COMMA = ",";
|
||||
#elif defined(LINUX)
|
||||
const char* const INCLUDE_ISC_FTN = " INCLUDE '/usr/interbase/include/gds.f\' \n\n";
|
||||
const char* const INCLUDE_FTN_FILE = "include/gds.f";
|
||||
|
@ -252,7 +252,6 @@
|
||||
#undef AIX
|
||||
#define WIN_NT
|
||||
#undef SCO_EV
|
||||
#undef SINIXZ
|
||||
|
||||
#define FB_PREFIX "c:\\Program Files\\Firebird\\"
|
||||
|
||||
|
112
src/jrd/common.h
112
src/jrd/common.h
@ -146,118 +146,6 @@
|
||||
|
||||
#endif /* LINUX */
|
||||
|
||||
/*****************************************************
|
||||
* SINIX-Z 5.42
|
||||
*****************************************************/
|
||||
#ifdef SINIXZ
|
||||
#include <sys/types.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/socket.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* These prototypes are missing in the system header files :-( */
|
||||
int gettimeofday (struct timeval *tp);
|
||||
int munmap(void * addr, size_t len);
|
||||
int gethostname(char *name, size_t len);
|
||||
int socket(int domain, int type, int protocol);
|
||||
int connect(int s, struct sockaddr *name, int namelen);
|
||||
int send(int s, void *msg, int len, int flags);
|
||||
int recv(int s, void *buf, int len, int flags);
|
||||
int strcasecmp(const char *s1, const char *s2);
|
||||
int strncasecmp(const char *s1, const char *s2, size_t n);
|
||||
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *execptfds, struct timeval *timeout);
|
||||
int getsockopt(int s, int level, int optname, char *optval, int *optlen);
|
||||
int setsockopt(int s, int level, int optname, char *optval, int optlen);
|
||||
int bind(int s, struct sockaddr *name, int namelen);
|
||||
int listen(int s, int backlog);
|
||||
int accept(int s, struct sockaddr *ddr, int *addrlen);
|
||||
int getsockname(int s, struct sockaddr *name, int *namelen);
|
||||
int setsockname(int s, struct sockaddr *name, int *namelen);
|
||||
int getpeername(int s, struct sockaddr *name, int *namelen);
|
||||
int shutdown(int s, int how);
|
||||
int syslog(int pri, char *fmt, ...);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#include <dlfcn.h>
|
||||
#define dlopen(a, b) dlopen((char *)(a),(b))
|
||||
#define dlsym(a, b) dlsym((a), (char *)(b))
|
||||
|
||||
#include <signal.h>
|
||||
#include <sys/siginfo.h>
|
||||
|
||||
struct sinixz_sigaction
|
||||
{
|
||||
int sa_flags;
|
||||
union
|
||||
{
|
||||
/* Used if SA_SIGINFO is not set. */
|
||||
void (*sa_handler)(int);
|
||||
/* Used if SA_SIGINFO is set. */
|
||||
void (*sa_sigaction) (int, siginfo_t *, void *);
|
||||
}
|
||||
__sigaction_handler;
|
||||
#define sa_handler __sigaction_handler.sa_handler
|
||||
#define sa_sigaction __sigaction_handler.sa_sigaction
|
||||
sigset_t sa_mask;
|
||||
int sa_resv[2];
|
||||
};
|
||||
|
||||
static inline int sinixz_sigaction(int sig, const struct sinixz_sigaction *act,
|
||||
struct sinixz_sigaction *oact)
|
||||
{
|
||||
return sigaction(sig, (struct sigaction*)act, (struct sigaction*)oact);
|
||||
}
|
||||
|
||||
// Re-define things actually
|
||||
#define sigaction sinixz_sigaction
|
||||
|
||||
#define QUADFORMAT "ll"
|
||||
#define QUADCONST(n) (n##LL)
|
||||
|
||||
//#define ALIGNMENT 4
|
||||
//#define DOUBLE_ALIGN 8
|
||||
|
||||
#ifdef SUPERSERVER
|
||||
#define SET_TCP_NO_DELAY
|
||||
#endif
|
||||
|
||||
//#define KILLER_SIGNALS
|
||||
|
||||
#define UNIX
|
||||
#define IEEE
|
||||
|
||||
#ifdef i386
|
||||
#define I386
|
||||
/* Change version string into SINIXZ */
|
||||
#define IMPLEMENTATION isc_info_db_impl_sinixz /* 64 */
|
||||
#endif /* i386 */
|
||||
|
||||
#define setreuid(ruid, euid) setuid(euid)
|
||||
#define setregid(rgid, egid) setgid(egid)
|
||||
|
||||
#define MEMMOVE(from, to, length) memmove ((void *)to, (void *)from, (size_t) length)
|
||||
#define MOVE_FAST(from, to, length) memcpy (to, from, (int) (length))
|
||||
#define MOVE_FASTER(from, to, length) memcpy (to, from, (int) (length))
|
||||
#define MOVE_CLEAR(to, length) memset (to, 0, (int) (length))
|
||||
|
||||
//format for __LINE__
|
||||
#define LINEFORMAT "d"
|
||||
|
||||
//#define SLONGFORMAT "ld"
|
||||
//#define ULONGFORMAT "lu"
|
||||
//#define XLONGFORMAT "lX"
|
||||
//#define xLONGFORMAT "lx"
|
||||
|
||||
#define O_BINARY 0
|
||||
#endif /* SINIXZ */
|
||||
|
||||
/*****************************************************
|
||||
* Darwin Platforms
|
||||
|
@ -66,7 +66,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#if (defined SOLARIS || defined SCO_EV || defined LINUX || defined AIX_PPC || defined SINIXZ || defined FREEBSD || defined NETBSD || HPUX)
|
||||
#if (defined SOLARIS || defined SCO_EV || defined LINUX || defined AIX_PPC || defined FREEBSD || defined NETBSD || HPUX)
|
||||
#define DYNAMIC_SHARED_LIBRARIES
|
||||
#endif
|
||||
|
||||
|
@ -244,7 +244,7 @@ namespace {
|
||||
#endif //NO_NFS
|
||||
} // anonymous namespace
|
||||
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD || defined SINIXZ)
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD)
|
||||
static void expand_filename2(tstring&, bool);
|
||||
#endif
|
||||
|
||||
@ -545,7 +545,7 @@ iscProtocol ISC_extract_host(Firebird::PathName& file_name,
|
||||
}
|
||||
|
||||
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD || defined SINIXZ)
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD)
|
||||
void ISC_expand_filename(tstring& buff, bool expand_mounts)
|
||||
{
|
||||
/**************************************
|
||||
@ -1116,7 +1116,7 @@ int ISC_strip_extension(TEXT* file_name)
|
||||
#endif
|
||||
|
||||
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD || defined SINIXZ)
|
||||
#if (!defined NO_NFS || defined FREEBSD || defined NETBSD)
|
||||
static void expand_filename2(tstring& buff, bool expand_mounts)
|
||||
{
|
||||
/**************************************
|
||||
|
@ -119,10 +119,6 @@
|
||||
#define FB_PLATFORM "LI" /* Linux on Intel */
|
||||
#endif
|
||||
|
||||
#ifdef SINIXZ
|
||||
#define FB_PLATFORM "SZ" /* SINIX for PC */
|
||||
#endif
|
||||
|
||||
#ifdef FREEBSD
|
||||
#define FB_PLATFORM "FB" /* FreeBSD/i386 */
|
||||
#endif
|
||||
|
@ -256,10 +256,6 @@ const SSHORT CLASS = CLASS_AIX_PPC;
|
||||
const SSHORT CLASS = CLASS_WINDOWS_I386;
|
||||
#endif
|
||||
|
||||
#ifdef SINIXZ
|
||||
const SSHORT CLASS = CLASS_LINUX_I386;
|
||||
#endif
|
||||
|
||||
#ifdef LINUX
|
||||
#ifdef i386
|
||||
const SSHORT CLASS = CLASS_LINUX_I386;
|
||||
|
@ -70,10 +70,6 @@ const int DEFAULT_SIZE = 98304;
|
||||
//#define SEMAPHORES 25
|
||||
//#endif
|
||||
//
|
||||
//#ifdef SINIXZ
|
||||
//#define SEMAPHORES 25
|
||||
//#endif
|
||||
//
|
||||
//#ifndef SEMAPHORES
|
||||
//#define SEMAPHORES 32
|
||||
//#endif
|
||||
|
@ -88,10 +88,6 @@
|
||||
#include <netinet/tcp.h>
|
||||
#include <netdb.h>
|
||||
#include <arpa/inet.h>
|
||||
/* EKU: SINIX-Z does not define INADDR_NONE */
|
||||
#ifndef INADDR_NONE
|
||||
#define INADDR_NONE (unsigned long)-1
|
||||
#endif
|
||||
#endif // !(defined VMS || defined WIN_NT)
|
||||
|
||||
#if (defined DARWIN || defined HPUX)
|
||||
@ -2196,7 +2192,7 @@ static int parse_line(
|
||||
|
||||
if (strcmp(entry1, host_name))
|
||||
{
|
||||
#if (defined UNIX) && !(defined SINIXZ) && !(defined NETBSD)
|
||||
#if (defined UNIX) && !(defined NETBSD)
|
||||
if (entry1[1] == '@')
|
||||
{
|
||||
if (!innetgr(&entry1[2], host_name, 0, 0))
|
||||
@ -2225,7 +2221,7 @@ static int parse_line(
|
||||
|
||||
/* if they're in the user group: + they're in, - they're out */
|
||||
|
||||
#if (defined UNIX) && !(defined SINIXZ) && !(defined NETBSD)
|
||||
#if (defined UNIX) && !(defined NETBSD)
|
||||
if (entry2[1] == '@') {
|
||||
if (innetgr(&entry2[2], 0, user_name, 0)) {
|
||||
if (entry2[0] == '+')
|
||||
@ -3616,12 +3612,7 @@ static bool_t packet_send( rem_port* port, const SCHAR* buffer, SSHORT buffer_le
|
||||
*
|
||||
**************************************/
|
||||
|
||||
#ifdef SINIXZ
|
||||
// Please systems with ill-defined send() function, like SINIX-Z.
|
||||
char* data = const_cast<char*>(buffer);
|
||||
#else
|
||||
const char* data = buffer;
|
||||
#endif
|
||||
SSHORT length = buffer_length;
|
||||
|
||||
while (length) {
|
||||
@ -3670,11 +3661,8 @@ static bool_t packet_send( rem_port* port, const SCHAR* buffer, SSHORT buffer_le
|
||||
int count = 0;
|
||||
SSHORT n;
|
||||
int inetErrNo;
|
||||
#ifdef SINIXZ
|
||||
char* b = const_cast<char*>(buffer);
|
||||
#else
|
||||
const char* b = buffer;
|
||||
#endif
|
||||
|
||||
while ((n = send((SOCKET) port->port_handle, b, 1, MSG_OOB)) == -1 &&
|
||||
(INET_ERRNO == ENOBUFS || INTERRUPT_ERROR(INET_ERRNO)))
|
||||
{
|
||||
|
@ -361,7 +361,7 @@ static int sem_exclusive( SLONG key, SLONG count)
|
||||
**************************************/
|
||||
int semid;
|
||||
|
||||
#if !(defined sun || defined LINUX || defined FREEBSD || defined NETBSD || defined SINIXZ)
|
||||
#if !(defined sun || defined LINUX || defined FREEBSD || defined NETBSD)
|
||||
return semget(key, (int) count, IPC_EXCL);
|
||||
#else
|
||||
if ((semid = semget(key, (int) count, IPC_EXCL)) != -1)
|
||||
|
Loading…
Reference in New Issue
Block a user