1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-04 23:44:42 +00:00

Remove platform support for Apollo/Domain. (#30)

This commit is contained in:
Bruce Mitchener
2020-12-13 09:07:08 +07:00
committed by GitHub
parent 69e66470a0
commit 292809694e
15 changed files with 5 additions and 137 deletions

View File

@@ -134,12 +134,6 @@ static char *id = "$Id: dsk.c,v 1.4 2001/12/24 01:09:01 sybalsky Exp $ Copyright
#endif /* ULTRIX */
#ifdef APOLLO
#include <sys/statfs.h>
#define d_fileno d_ino
#define f_bavail f_bfree
#endif /* APOLLO */
#ifdef GCC386
#include "inlnPS2.h"
#endif /* GCC386 */
@@ -2450,9 +2444,6 @@ LispPTR COM_getfreeblock(register LispPTR *args)
#elif defined(ISC)
TIMEOUT(rval = statfs(dir, &sfsbuf, sizeof(struct statfs), 0));
if (rval != 0) {
#elif APOLLO
TIMEOUT(rval = statfs(dir, &sfsbuf, sizeof(struct statfs), 0));
if (rval != 0) {
#elif defined(LINUX)
TIMEOUT(rval = statfs(dir, &sfsbuf));
if (rval != 0) {

View File

@@ -127,16 +127,7 @@ LispPTR aref1(LispPTR array, int index) {
base = actarray->base;
switch (typenumber) {
case 3: /* unsigned 8bits */
/* the following code confuses the Apollo compiler; */
/* its equivalent doesn't */
#ifndef APOLLO
retval = (GETBYTE(((char *)Addr68k_from_LADDR(base)) + index)) & 0x0ff;
#else
{
register char *eightbitbase = (char *)Addr68k_from_LADDR(base);
retval = GETBYTE(eightbitbase + index) & 0xff;
}
#endif
retval |= S_POSITIVE;
break;
case 4: /* unsigned 16bits */

View File

@@ -322,7 +322,7 @@ void getsignaldata(int sig, int code, void *scp)
#endif
#ifdef XWINDOW
#if (defined(APOLLO) || defined(sun))
#if defined(sun)
if (Event_Req) {
if (!XLocked++)
getXsignaldata(currentdsp);

View File

@@ -110,8 +110,6 @@ int read_hex(char *s1, long unsigned int *array) {
/* convert key to numeric format*/
#ifdef HPUX
*(array + i) = strtoul(ptr, NULL, 16); /* On HP, must convert to unsigned */
#elif defined(APOLLO)
*(array + i) = strtoul(ptr, NULL, 16); /* On APOLLO, must convert to unsigned */
#elif defined(INDIGO)
*(array + i) = strtoul(ptr, NULL, 16); /* On Indigo, must convert to unsigned */
#elif defined(RS6000)

View File

@@ -36,13 +36,11 @@ static char *id = "$Id: osmsg.c,v 1.2 1999/01/03 02:07:29 sybalsky Exp $ Copyrig
#endif /* AIX */
#include <sys/time.h>
#ifndef AIX
#ifndef APOLLO
#ifndef MACOSX
#ifndef FREEBSD
#include <sys/vfs.h>
#endif /* FREEBSD */
#endif /* MACOSX */
#endif /* APOLLO */
#endif /* AIX */
#ifndef SYSVONLY
#include <strings.h>

View File

@@ -82,11 +82,6 @@ extern int ether_fd;
#include <sys/fpcontrol.h>
#endif /* AIXPS2 */
/* Apollo and Sun have different ideas about the name of this field */
#ifdef APOLLO
#define sv_flags sv_onstack
#endif
#ifdef OSF1
/* This is where FPE_FLTOVF & friends are defined */
#include <siginfo.h>

View File

@@ -34,13 +34,11 @@ static char *id = "$Id: ufs.c,v 1.2 1999/01/03 02:07:41 sybalsky Exp $ Copyright
#include <sys/stat.h>
#include <sys/time.h>
#ifndef AIX
#ifndef APOLLO
#ifndef MACOSX
#ifndef FREEBSD
#include <sys/vfs.h>
#endif /* FREEBSD */
#endif /* MACOSX */
#endif /* APOLLO */
#endif /* AIX */
#if defined(SYSVONLY) || defined(FREEBSD) || defined(OS5)

View File

@@ -34,8 +34,6 @@ Unix Interface Communications
#include <string.h> /* for strcpy etc. */
#ifdef OS4
#include <sys/termios.h>
#elif APOLLO
#include </sys5/usr/include/termios.h>
#elif LINUX
#include <termios.h>
/* this was called termio in the past, but no longer

View File

@@ -41,7 +41,6 @@ static char *id = "$Id: xinit.c,v 1.5 2001/12/26 22:17:06 sybalsky Exp $ Copyrig
#include <sys/ioctl.h>
#include <sys/select.h>
#ifndef APOLLO
#ifndef HPUX
#ifndef ULTRIX
#ifndef LINUX
@@ -53,7 +52,6 @@ static char *id = "$Id: xinit.c,v 1.5 2001/12/26 22:17:06 sybalsky Exp $ Copyrig
#endif /* LINUX */
#endif /* ULTRIX */
#endif /* HPUX */
#endif /* APOLLO */
#ifdef ISC
#define FASYNC O_NONBLOCK