mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-04 07:33:07 +00:00
Remove OSF1 / DEC3100 platform support. (#36)
This also removes support for the DEC3100 keyboard, but leaves a constant behind for it as I'm not sure about re-numbering. [NBriggs: keyboard type numbers are stored within all sysouts. Do not renumber supported keyboards, do not reuse previously used keyboard numbers]
This commit is contained in:
11
src/dsk.c
11
src/dsk.c
@@ -112,7 +112,7 @@ static char *id = "$Id: dsk.c,v 1.4 2001/12/24 01:09:01 sybalsky Exp $ Copyright
|
||||
#include "commondefs.h"
|
||||
#include "ufsdefs.h"
|
||||
|
||||
#if defined(OSF1) || defined(MACOSX) || defined(FREEBSD)
|
||||
#if defined(MACOSX) || defined(FREEBSD)
|
||||
#include <sys/mount.h>
|
||||
#else
|
||||
#ifdef AIX
|
||||
@@ -127,7 +127,7 @@ static char *id = "$Id: dsk.c,v 1.4 2001/12/24 01:09:01 sybalsky Exp $ Copyright
|
||||
#define d_fileno d_ino
|
||||
#endif /* AIX */
|
||||
|
||||
#endif /* OSF1 | MACOSX | FREEBSD */
|
||||
#endif /* MACOSX | FREEBSD */
|
||||
|
||||
#ifdef GCC386
|
||||
#include "inlnPS2.h"
|
||||
@@ -2421,10 +2421,7 @@ LispPTR COM_getfreeblock(register LispPTR *args)
|
||||
*buf = sfsbuf.avail_clusters * sfsbuf.sectors_per_cluster * sfsbuf.bytes_per_sector;
|
||||
}
|
||||
#else
|
||||
#if OSF1
|
||||
TIMEOUT(rval = statfs(dir, &sfsbuf, sizeof(struct statfs)));
|
||||
if (rval <= 0) {
|
||||
#elif defined(ISC)
|
||||
#if defined(ISC)
|
||||
TIMEOUT(rval = statfs(dir, &sfsbuf, sizeof(struct statfs), 0));
|
||||
if (rval != 0) {
|
||||
#elif defined(LINUX)
|
||||
@@ -2445,7 +2442,7 @@ LispPTR COM_getfreeblock(register LispPTR *args)
|
||||
#endif /* AIXPS2 */
|
||||
|
||||
if (rval != 0) {
|
||||
#endif /* OSF1 */
|
||||
#endif /* ISC */
|
||||
*Lisp_errno = errno;
|
||||
return (NIL);
|
||||
}
|
||||
|
||||
@@ -252,42 +252,6 @@ u_char SUNLispKeyMap_RS6000[128] = {
|
||||
/* 127 */ 104, 80, 106, 107, 92, 76, 14, 61
|
||||
};
|
||||
|
||||
/* For DECStation 3100 */
|
||||
|
||||
u_char SUNLispKeyMap_DEC3100[256] = {
|
||||
/* 7 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 15 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 23 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 31 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 39 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 47 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 55 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 63 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 71 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 79 */ 255, 255, 255, 255, 255, 255, 255, 97,
|
||||
/* 87 */ 99, 100, 67, 68, 255, 255, 255, 255,
|
||||
/* 95 */ 255, 255, 255, 255, 255, 101, 66, 104,
|
||||
/* 103 */ 80, 106, 255, 255, 255, 255, 255, 255,
|
||||
/* 111 */ 255, 255, 107, 108, 255, 255, 255, 255,
|
||||
/* 119 */ 255, 255, 255, 255, 255, 92, 76, 255,
|
||||
/* 127 */ 255, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 135 */ 255, 255, 255, 90, 91, 46, 93, 89,
|
||||
/* 143 */ 47, 255, 255, 98, 255, 13, 76, 94,
|
||||
/* 151 */ 69, 70, 84, 85, 87, 102, 81, 82,
|
||||
/* 159 */ 83, 255, 255, 255, 255, 255, 255, 255,
|
||||
/* 167 */ 129, 132, 131, 130, 255, 255, 255, 41,
|
||||
/* 175 */ 36, 56, 31, 255, 255, 255, 255, 255,
|
||||
/* 183 */ 255, 255, 255, 255, 255, 15, 44, 34,
|
||||
/* 191 */ 33, 32, 19, 21, 40, 255, 17, 18,
|
||||
/* 199 */ 20, 24, 45, 255, 16, 3, 5, 37,
|
||||
/* 207 */ 255, 1, 48, 35, 7, 57, 255, 0,
|
||||
/* 215 */ 49, 50, 39, 255, 2, 51, 52, 54,
|
||||
/* 223 */ 255, 4, 6, 38, 55, 255, 53, 23,
|
||||
/* 231 */ 9, 27, 255, 22, 25, 26, 42, 255,
|
||||
/* 239 */ 8, 11, 255, 43, 12, 255, 59, 29,
|
||||
/* 247 */ 105, 255, 10, 58, 28, 255, 255, 255,
|
||||
};
|
||||
|
||||
u_char *XGenericKeyMap; /* filled in with malloc if needed */
|
||||
|
||||
/* For the IBM-101 kbd FF marks exceptions */
|
||||
@@ -450,8 +414,8 @@ char *getenv(); /* ---- external entry points --------*/
|
||||
#define MIN_KEYTYPE 3
|
||||
#define KB_AS3000J (7 + MIN_KEYTYPE)
|
||||
#define KB_RS6000 (8 + MIN_KEYTYPE)
|
||||
#define KB_DEC3100 (9 + MIN_KEYTYPE)
|
||||
#define KB_HP9000 (10 + MIN_KEYTYPE) // TODO: Can we remove this?
|
||||
#define KB_DEC3100 (9 + MIN_KEYTYPE) /* TODO: Can we remove this? */
|
||||
#define KB_HP9000 (10 + MIN_KEYTYPE) /* TODO: Can we remove this? */
|
||||
#define KB_X (11 + MIN_KEYTYPE)
|
||||
#define KB_DOS (12 + MIN_KEYTYPE)
|
||||
|
||||
@@ -576,12 +540,11 @@ static u_char *make_X_keymap() {
|
||||
/* */
|
||||
/* Determine what kind of keyboard we're dealing with, by */
|
||||
/* checking the LDEKBDTYPE shell variable. It it's not set, */
|
||||
/* either default it (for DEC, IBM), or complain and exit. */
|
||||
/* either default it (for Sun, IBM), or complain and exit. */
|
||||
/* Valid LDEKBDTYPE values: */
|
||||
/* type3 Sun type-3 keyboard */
|
||||
/* type4 Sun type-4 keyboard */
|
||||
/* rs6000 IBM RS/6000 */
|
||||
/* dec3100 DECstation 3100 or 5000 */
|
||||
/* x generic X keyboard map */
|
||||
/* */
|
||||
/* */
|
||||
@@ -620,9 +583,6 @@ void keyboardtype(int fd)
|
||||
printf(" (one of type2, type3, type4, jle, or as3000j)");
|
||||
exit(0); /* exit to shell */
|
||||
#else
|
||||
#ifdef DECSTN
|
||||
type = KB_DEC3100;
|
||||
#else
|
||||
#ifdef RS6000
|
||||
type = KB_RS6000;
|
||||
#else
|
||||
@@ -639,8 +599,6 @@ void keyboardtype(int fd)
|
||||
|
||||
#endif /* RS6000 */
|
||||
|
||||
#endif /* DECSTN */
|
||||
|
||||
#endif /* FUJI */
|
||||
|
||||
#ifdef XWINDOW
|
||||
@@ -659,8 +617,6 @@ void keyboardtype(int fd)
|
||||
type = KB_JLE;
|
||||
else if (strcmp("rs6000", key) == 0)
|
||||
type = KB_RS6000;
|
||||
else if (strcmp("dec3100", key) == 0)
|
||||
type = KB_DEC3100;
|
||||
else if (strcmp("X", key) == 0)
|
||||
type = KB_X;
|
||||
else if (strcmp("x", key) == 0)
|
||||
@@ -698,9 +654,6 @@ void keyboardtype(int fd)
|
||||
SUNLispKeyMap = SUNLispKeyMap_RS6000;
|
||||
InterfacePage->devconfig |= KB_SUN3 - MIN_KEYTYPE; /* 8 */
|
||||
break;
|
||||
case KB_DEC3100:
|
||||
SUNLispKeyMap = SUNLispKeyMap_DEC3100;
|
||||
InterfacePage->devconfig |= KB_SUN3 - MIN_KEYTYPE; /* 9 */
|
||||
break;
|
||||
#ifdef XWINDOW
|
||||
case KB_X:
|
||||
|
||||
@@ -97,8 +97,6 @@ int read_hex(char *s1, long unsigned int *array) {
|
||||
/* convert key to numeric format*/
|
||||
#if defined(RS6000)
|
||||
*(array + i) = strtoul(ptr, NULL, 16); /* On RS/6000, must convert to unsigned */
|
||||
#elif defined(OSF1)
|
||||
*(array + i) = strtoul(ptr, NULL, 16); /* On Alpha, must convert to unsigned */
|
||||
#else
|
||||
*(array + i) = strtol(ptr, NULL, 16); /* On suns, this works OK */
|
||||
#endif
|
||||
|
||||
@@ -58,10 +58,10 @@ extern int errno;
|
||||
is going to expand or not */
|
||||
int Storage_expanded; /* T or NIL */
|
||||
|
||||
/* RISCOS and OSF1 don't have valloc, and malloc works OK there. */
|
||||
#if defined(SYSVONLY) || defined(OSF1) || defined(RISCOS)
|
||||
/* RISCOS doesn't have valloc, and malloc works OK there. */
|
||||
#if defined(SYSVONLY) || defined(RISCOS)
|
||||
#define valloc malloc
|
||||
#endif /* SYSVONLY || OSF1 || RISCOS */
|
||||
#endif /* SYSVONLY || RISCOS */
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
|
||||
@@ -28,7 +28,7 @@ static char *id = "$Id: mkvdate.c,v 1.5 2001/12/26 22:17:03 sybalsky Exp $ Copyr
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
#if defined(OSF1) || defined(LINUX)
|
||||
#if defined(LINUX)
|
||||
#include "time.h"
|
||||
#endif
|
||||
|
||||
|
||||
28
src/timer.c
28
src/timer.c
@@ -82,11 +82,6 @@ extern int ether_fd;
|
||||
#include <sys/fpcontrol.h>
|
||||
#endif /* AIXPS2 */
|
||||
|
||||
#ifdef OSF1
|
||||
/* This is where FPE_FLTOVF & friends are defined */
|
||||
#include <siginfo.h>
|
||||
#endif /* OSF1 */
|
||||
|
||||
#include "lispemul.h"
|
||||
#include "emlglob.h"
|
||||
#include "lspglob.h"
|
||||
@@ -821,13 +816,6 @@ void int_fp_service(int sig, int code, struct sigcontext *scp)
|
||||
case FPM_UNDERFLOW:
|
||||
case FPM_OVERFLOW:
|
||||
case FPM_PRECISION:
|
||||
#elif OSF1
|
||||
case FPE_FLTDIV:
|
||||
case FPE_FLTOVF:
|
||||
case FPE_FLTUND:
|
||||
case FPE_FLTRES:
|
||||
case FPE_FLTINV:
|
||||
case FPE_FLTSUB:
|
||||
#else
|
||||
#ifndef ISC
|
||||
case FPE_FLTDIV_TRAP:
|
||||
@@ -860,8 +848,6 @@ void int_fp_init() { /* first set up the signal handler */
|
||||
if (sigset(SIGFPE, int_fp_service))
|
||||
#elif OS5
|
||||
if (sigset(SIGFPE, int_fp_service))
|
||||
#elif OSF1
|
||||
if (SIG_ERR == sigset(SIGFPE, int_fp_service))
|
||||
#else
|
||||
if (ieee_handler("set", "all", int_fp_service))
|
||||
#endif /* AIXPS2 */
|
||||
@@ -1069,11 +1055,6 @@ static void int_panic_init() {
|
||||
sigset(SIGSYS, panicuraid);
|
||||
#endif
|
||||
sigset(SIGTERM, panicuraid);
|
||||
#ifndef FLTINT
|
||||
#ifdef OSF1
|
||||
sigignore(SIGFPE);
|
||||
#endif /* OSF1 */
|
||||
#endif /* FLTINT */
|
||||
#endif
|
||||
#else
|
||||
static struct sigvec panicv;
|
||||
@@ -1114,11 +1095,6 @@ static void int_panic_init() {
|
||||
|
||||
sigvec(SIGUSR1, &panicv, 0);
|
||||
sigvec(SIGUSR2, &panicv, 0);
|
||||
#ifndef FLTINT
|
||||
#ifdef OSF1
|
||||
sigignore(SIGFPE);
|
||||
#endif /* OSF1 */
|
||||
#endif
|
||||
#endif /* SYSVSIGNALS */
|
||||
|
||||
DBPRINT(("Panic interrupts enabled\n"));
|
||||
@@ -1140,10 +1116,6 @@ void int_init() {
|
||||
|
||||
#ifdef FLTINT
|
||||
int_fp_init(); /* Floating-point exception handler */
|
||||
#else
|
||||
#ifdef OSF1
|
||||
sigignore(SIGFPE);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int_unblock(); /* Turn on interrupts */
|
||||
|
||||
@@ -42,13 +42,6 @@ static char *id = "$Id: unixfork.c,v 1.6 2001/12/26 22:17:05 sybalsky Exp $ Copy
|
||||
#endif /* MACOSX or FREEBSD */
|
||||
#endif /* USETERMIOS */
|
||||
|
||||
#ifdef OSF1
|
||||
#define _CLOCK_ID_T
|
||||
typedef int clockid_t;
|
||||
#include "time.h"
|
||||
#include <sys/resource.h>
|
||||
#endif /* OSF1 */
|
||||
|
||||
#if defined(SYSVONLY) || defined(OS5) || defined(FREEBSD) || defined(MACOSX)
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
4
src/xc.c
4
src/xc.c
@@ -21,10 +21,6 @@ static char *id = "$Id: xc.c,v 1.4 2001/12/26 22:17:06 sybalsky Exp $ Copyright
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef OSF1
|
||||
#include "time.h"
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef DOS
|
||||
#include <i32.h> /* Defines "#pragma interrupt" */
|
||||
|
||||
@@ -25,10 +25,6 @@ static char *id = "$Id: xc.c,v 1.3 1999/05/31 23:35:47 sybalsky Exp $ Copyright
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
#ifdef OSF1
|
||||
#include "time.h"
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#ifdef DOS
|
||||
#include <i32.h> /* Defines "#pragma interrupt" */
|
||||
|
||||
Reference in New Issue
Block a user