/* -*-C-*-
-$Id: config.h,v 9.82 1993/10/27 01:41:39 gjr Exp $
+$Id: config.h,v 9.83 1993/11/08 06:14:41 gjr Exp $
Copyright (c) 1987-1993 Massachusetts Institute of Technology
#define FASL_APOLLO_68K 16
#define FASL_APOLLO_PRISM 17
#define FASL_ALPHA 18
+#define FASL_RS6000 19
\f
#ifdef vax
#define HAS_FLOOR
#define HAS_FREXP
#endif /* apollo */
+
+#ifdef _IBMR2
+#define MACHINE_TYPE "IBM RS6000"
+#define FASL_INTERNAL_FORMAT FASL_RS6000
+/* Heap is not in Low Memory. */
+#define FLONUM_MANTISSA_BITS 53
+#define FLONUM_EXPT_SIZE 10
+#define MAX_FLONUM_EXPONENT 1023
+#endif /* _IBMR2 */
\f
#ifdef NATIVE_CODE_IS_C
# ifndef HAS_COMPILER_SUPPORT
/* -*-C-*-
-$Id: oscond.h,v 1.14 1993/06/24 06:09:34 gjr Exp $
+$Id: oscond.h,v 1.15 1993/11/08 06:15:20 gjr Exp $
Copyright (c) 1990-1993 Massachusetts Institute of Technology
# define _BSD4_3
#endif
+#if defined(_AIX)
+# define _POSIX
+# define _BSD4_3
+#endif
+
#if defined(__hpux) && !defined(hpux)
#define hpux
#endif
#define _BSD4_2
#endif
-#if defined(_BSD4_2) || defined(_BSD4_3)
-#define _BSD
+#if defined(_BSD4_3)
+#define _BSD 43
+#else
+#if defined(_BSD4_2)
+#define _BSD 42
+#endif
#endif
#if defined(_BSD) && defined(_SYSV)
#!/bin/sh
# Configuration script for MIT Scheme
-# $Id: config,v 1.26 1993/11/03 22:37:12 cph Exp $
+# $Id: config,v 1.27 1993/11/08 06:12:49 gjr Exp $
# Modelled on the configuration script for GNU CC
# The section between lines is the copyright prefix from the GNU CC config.
#----------------------------------------------------------------------
echo "sun3 sun3-os3 sun3-nfp sun3-os3-nfp sun4 sparc"
echo "i386-sysv 386bsd umax"
echo "vax-bsd42 vax-bsd43 vax-ultrix"
+ echo "rs6000"
if [ -r config.out ]
then
cat config.out
system_file=sunos4
machine_file=sun4
;;
+ rs6000)
+ system_file=aix
+ machine_file=rs6000
+ ;;
umax) # Encore Multimax
system_file=umax
machine_file=umax
/* -*-C-*-
-$Id: ux.h,v 1.53 1993/10/27 22:17:55 gjr Exp $
+$Id: ux.h,v 1.54 1993/11/08 06:15:59 gjr Exp $
Copyright (c) 1988-1993 Massachusetts Institute of Technology
/* As specified by OSF/1 Programmer's reference: */
extern int EXFUN (ioctl, (int, unsigned long, ...));
#endif
-#ifndef _SUNOS4
+#if !(defined(_SUNOS4) || defined(_AIX))
extern int EXFUN (open, (const char *, int, ...));
#endif
extern int EXFUN (kill, (pid_t, int));
#endif /* _IRIX4 */
+#ifdef _AIX
+#define UNION_WAIT_STATUS
+#endif /* _AIX */
+
#else /* not _POSIX */
#ifdef _BSD
/* -*-C-*-
-$Id: uxterm.c,v 1.22 1993/04/19 08:27:29 cph Exp $
+$Id: uxterm.c,v 1.23 1993/11/08 06:17:10 gjr Exp $
Copyright (c) 1990-1993 Massachusetts Institute of Technology
(syscall_ioctl_TIOCSIGSEND,
(UX_ioctl ((CHANNEL_DESCRIPTOR (channel)), TIOCSIGSEND, sig)));
#else /* not TIOCSIGSEND */
-#ifdef HAVE_BSD_JOB_CONTROL
+#if defined(TIOCPGRP) && defined(HAVE_BSD_JOB_CONTROL)
int fd = (CHANNEL_DESCRIPTOR (channel));
int gid;
STD_VOID_SYSTEM_CALL
(syscall_ioctl_TIOCGPGRP, (UX_ioctl (fd, TIOCGPGRP, (&gid))));
STD_VOID_SYSTEM_CALL (syscall_kill, (UX_kill ((-gid), sig)));
-#else /* not HAVE_BSD_JOB_CONTROL */
+#else /* not TIOCGPGRP or not HAVE_BSD_JOB_CONTROL */
error_unimplemented_primitive ();
-#endif /* HAVE_BSD_JOB_CONTROL */
+#endif /* TIOCGPGRP and HAVE_BSD_JOB_CONTROL */
#endif /* TIOCSIGSEND */
}
/* -*-C-*-
-$Id: uxtrap.h,v 1.22 1993/09/09 18:24:19 gjr Exp $
+$Id: uxtrap.h,v 1.23 1993/11/08 06:18:02 gjr Exp $
Copyright (c) 1990-1993 Massachusetts Institute of Technology
}
#endif /* __alpha */
+
+#ifdef _AIX
+/* For now */
+#define SIGCONTEXT sigcontext
+#define SIGCONTEXT_SP(scp) 0
+#define SIGCONTEXT_PC(scp) 0
+#endif /* _AIX */
\f
#ifndef SIGINFO_T
#define SIGINFO_T int
#endif
#if !(defined (_NEXTOS) && (_NEXTOS_VERSION >= 20))
+#ifdef _AIX
+extern int _etext;
+#define get_etext() (&_etext)
+#else /* not _AIX */
#ifdef __linux
extern unsigned int etext;
-#else
+#else /* not __linux */
#if !(defined (_HPUX) && (_HPUX_VERSION >= 80) && defined (hp9000s300))
extern long etext;
-#endif
+#endif /* _HPUX ... */
#endif /* __linux */
+#endif /* _AIX */
+#ifndef get_etext
# define get_etext() (&etext)
-#endif
+#endif /* get_etext */
+#endif /* _NEXTOS */
\f
/* Machine/OS-independent section */
/* -*-C-*-
-$Id: wsize.c,v 9.32 1992/09/26 02:47:35 cph Exp $
+$Id: wsize.c,v 9.33 1993/11/08 06:20:11 gjr Exp $
-Copyright (c) 1989-1992 Massachusetts Institute of Technology
+Copyright (c) 1989-1993 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
#include <math.h>
#include <errno.h>
#include <signal.h>
-#include "config.h"
+#include "ansidecl.h"
+/* #include "config.h" */
#ifndef TYPE_CODE_LENGTH
/* This MUST match object.h */
#define true 1
extern int errno;
-extern char * malloc();
-extern free ();
+extern PTR EXFUN (malloc, ());
+extern void EXFUN (free, ());
/* The following hanky-panky courtesy of some buggy compilers. */
}
else
{
- count = (free (temp));
+ free (temp);
if (((unsigned long) temp) <
(1 << ((char_size * sizeof(long)) - TYPE_CODE_LENGTH)))
printf ("#define HEAP_IN_LOW_MEMORY 1\n");