remove ultrix support

This commit is contained in:
chase
2018-09-30 12:28:53 -05:00
committed by Jon Trulson
parent d8c017caa2
commit 90a2b2848a
56 changed files with 41 additions and 570 deletions

View File

@@ -948,7 +948,7 @@ signal_new_message(_Tt_message_ptr &m)
#if defined(sun) && defined(SVR4)
typedef int (*Xdrrec_reader)(...);
typedef int (*Xdrrec_writer)(...);
#elif defined(sun) & !defined(SVR4) || defined(ultrix)
#elif defined(sun) && !defined(SVR4)
typedef int (*Xdrrec_reader)();
typedef int (*Xdrrec_writer)();
#else

View File

@@ -115,7 +115,7 @@ s_open_unix_socket(char *socket_name)
server_addr.sun_family = AF_UNIX;
(void)unlink(socket_name);
strcpy(server_addr.sun_path, socket_name);
#if defined(ultrix) || defined(_AIX) || defined(hpux)
#if defined(_AIX) || defined(hpux)
int servlen = strlen(server_addr.sun_path) + sizeof(server_addr.sun_fam\
ily);
if (bind(sock, (struct sockaddr *)&server_addr,servlen) < 0) {
@@ -377,23 +377,6 @@ check_for_live_session()
return(TT_OK);
}
#if defined(ultrix)
/* strdup - make duplicate of string s */
#include <string.h>
#include <malloc.h>
static char *
strdup(char *s)
{
char *p;
p = (char *)malloc(strlen(s) + 1); /* + 1 for '\0' character */
if (p != NULL)
strcpy(p,s);
return p;
}
#endif
//
// Advertises a session procid so that any clients that come up within
// the appropiate domain will find the session id.

View File

@@ -73,10 +73,6 @@
#include "util/tt_global_env.h"
#include "util/tt_xdr_version.h"
#if defined(ultrix)
extern "C" void xdrstdio_create(XDR *, FILE *, enum xdr_op);
#endif
enum _Tt_typedb_flags {
_TT_TYPEDB_USER,

View File

@@ -33,9 +33,6 @@
*/
#ifndef _MP_TYPEDB_H
#define _MP_TYPEDB_H
#if defined(ultrix)
#include <sys/types.h>
#endif
#include <sys/stat.h>
#include "util/tt_object.h"