From 70ef6fe52ec07f646416c0ec8b9f1415977b9c3d Mon Sep 17 00:00:00 2001 From: dtrg Date: Fri, 24 Jun 2005 21:42:11 +0000 Subject: [PATCH] Applied interim patches to make the interpreter compile on Linux. (Linux doesn't support struct sgtty; all this code should probably be rewritten to use termios instead, if I've understood it correctly.) --- util/int/m_ioctl.c | 6 ++++++ util/int/monstruct.c | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/util/int/m_ioctl.c b/util/int/m_ioctl.c index 57d652ba4..684260540 100644 --- a/util/int/m_ioctl.c +++ b/util/int/m_ioctl.c @@ -108,6 +108,11 @@ int do_ioctl(fd, req, addr) /****** Struct sgttyb ioctl's ********/ /*************************************/ +#if 0 + /* FIXME: I'm not entirely certain what these do; I think they have + * to do with serial port manipulation. If so, they need to be rewritten + * to use the Posix standards. ---dtrg */ + case TIOCGETP: /* Get fd's current param's and store at dsp2 */ if ( (e = ioctl(fd, req, (char *) &sg_buf)) == -1 @@ -136,6 +141,7 @@ int do_ioctl(fd, req, addr) /* These have no third argument. */ e = ioctl(fd, req, (char *) 0); break; +#endif #ifdef BSD_X /* from system.h */ /*************************************/ diff --git a/util/int/monstruct.c b/util/int/monstruct.c index ed28888c4..012a36471 100644 --- a/util/int/monstruct.c +++ b/util/int/monstruct.c @@ -85,6 +85,8 @@ int tms2mem(addr, tmsb) return 1; } +#if 0 +/* FIXME: see the related fixme in m_ioctlc. ---dtrg */ int sgttyb2mem(addr, sgttybb) ptr addr; struct sgttyb *sgttybb; @@ -98,6 +100,7 @@ int sgttyb2mem(addr, sgttybb) mem_stfld(addr, V7sg_flags, (long) sgttybb->sg_flags); return 1; } +#endif #ifdef BSD_X /* from system.h */ int tchars2mem(addr, tcharsb) @@ -143,6 +146,8 @@ PRIVATE unsigned long mem_ldfld(addr, offset, length) return mem_ldu(addr + offset, length); } +#if 0 +/* FIXME: see the related fixme in m_ioctlc. ---dtrg */ int mem2sgtty(addr, sgttybb) ptr addr; struct sgttyb *sgttybb; @@ -156,6 +161,7 @@ int mem2sgtty(addr, sgttybb) sgttybb->sg_flags = (short) mem_ldfld(addr, V7sg_flags); return 1; } +#endif #ifdef BSD_X /* from system.h */ int mem2tchars(addr, tcharsb)